diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-04-13 12:32:22 +0200 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-05-08 14:02:50 +0200 |
commit | 708896008ad8ea391d542ce37b9871318a84fb97 (patch) | |
tree | 30c862cb18d354f879ffb0b426d5ff133d2bde3b /example | |
parent | e2b6a4efe72333ab0e0761f4e9e8ce9eb29a5335 (diff) | |
download | manaserv-708896008ad8ea391d542ce37b9871318a84fb97.tar.gz manaserv-708896008ad8ea391d542ce37b9871318a84fb97.tar.xz manaserv-708896008ad8ea391d542ce37b9871318a84fb97.zip |
[Abilities] Renamed specials to abilities
Diffstat (limited to 'example')
-rw-r--r-- | example/abilities.xml (renamed from example/specials.xml) | 14 | ||||
-rw-r--r-- | example/permissions.xml | 8 | ||||
-rw-r--r-- | example/scripts/abilities.lua (renamed from example/scripts/special_actions.lua) | 14 | ||||
-rw-r--r-- | example/scripts/main.lua | 2 | ||||
-rw-r--r-- | example/settings.xml | 2 |
5 files changed, 20 insertions, 20 deletions
diff --git a/example/specials.xml b/example/abilities.xml index dfcfab7..317a473 100644 --- a/example/specials.xml +++ b/example/abilities.xml @@ -1,14 +1,14 @@ <?xml version="1.0" encoding="utf-8"?> -<specials> - <special-set name="Magic"> - <special +<abilities> + <ability-set name="Magic"> + <ability id="1" name="Test Spell 1" rechargeable="true" needed="100" rechargespeed="10" /> - <special + <ability id="2" name="Test Spell 2" rechargeable="true" @@ -16,7 +16,7 @@ rechargespeed="10" target="being" /> - <special + <ability id="3" name="Test Spell 3" rechargeable="true" @@ -24,5 +24,5 @@ rechargespeed="10" target="point" /> - </special-set> -</specials> + </ability-set> +</abilities> diff --git a/example/permissions.xml b/example/permissions.xml index 4c46af1..6385d50 100644 --- a/example/permissions.xml +++ b/example/permissions.xml @@ -25,10 +25,10 @@ <allow>@killmonsters</allow> <allow>@getpos</allow> <allow>@effect</allow> - <allow>@givespecial</allow> - <allow>@takespecial</allow> - <allow>@rechargespecial</allow> - <allow>@listspecials</allow> + <allow>@giveability</allow> + <allow>@takeability</allow> + <allow>@rechargeability</allow> + <allow>@listabilities</allow> </class> <class level="4"> <alias>gm</alias> diff --git a/example/scripts/special_actions.lua b/example/scripts/abilities.lua index e18299a..35cc1d2 100644 --- a/example/scripts/special_actions.lua +++ b/example/scripts/abilities.lua @@ -1,22 +1,22 @@ --[[ - Special action script file + Abilities script file - This file allows you to implement your special action system. The system can + This file allows you to implement your ability action system. The system can for example implement magic, physical attack or also such mundane things as showing emoticons over the characters heads. --]] -local spell1 = get_special_info("Magic_Test Spell 1") -spell1:on_use(function(user, target, specialid) +local spell1 = get_ability_info("Magic_Test Spell 1") +spell1:on_use(function(user, x, y, abilityId) target = target or user target:say("Kaaame...Haaame... HAAAAAA!") - user:set_special_mana(specialid, 0) + user:set_ability_mana(abilityId, 0) end) spell1:on_recharged(function(ch) ch:say("Hoooooooo...") end) -local spell2 = get_special_info(2) +local spell2 = get_ability_info(2) spell2:on_use(function(user) user:say("HAA-DOKEN!") end) -get_special_info(3):on_use(function(user) user:say("Sonic BOOM") end) +get_ability_info(3):on_use(function(user) user:say("Sonic BOOM") end) diff --git a/example/scripts/main.lua b/example/scripts/main.lua index b43dd42..7093f11 100644 --- a/example/scripts/main.lua +++ b/example/scripts/main.lua @@ -7,7 +7,7 @@ -- At the moment the event handlers are split up over the following files: require "scripts/global_events" -require "scripts/special_actions" +require "scripts/abilities" require "scripts/crafting" require "scripts/attributes" diff --git a/example/settings.xml b/example/settings.xml index c2ba755..002eabd 100644 --- a/example/settings.xml +++ b/example/settings.xml @@ -1,8 +1,8 @@ <settings> + <include file="abilities.xml" /> <include file="maps.xml" /> <include file="attributes.xml" /> <include file="skills.xml" /> - <include file="specials.xml" /> <include file="equip.xml" /> <include file="items.xml" /> <include file="monsters.xml" /> |