diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-04-13 12:32:22 +0200 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-08-26 22:56:45 +0200 |
commit | 9ff69160ea1c3c64ea7012cd70a3b50ff4373264 (patch) | |
tree | 05b11f2a1eb323c1809267a0a8fc08b5e2f279ac /example/scripts | |
parent | f162b9780fad3de2b5d85fbfceb6e4d4e22a2bfd (diff) | |
download | manaserv-9ff69160ea1c3c64ea7012cd70a3b50ff4373264.tar.gz manaserv-9ff69160ea1c3c64ea7012cd70a3b50ff4373264.tar.bz2 manaserv-9ff69160ea1c3c64ea7012cd70a3b50ff4373264.tar.xz manaserv-9ff69160ea1c3c64ea7012cd70a3b50ff4373264.zip |
[Abilities] Renamed specials to abilities
Diffstat (limited to 'example/scripts')
-rw-r--r-- | example/scripts/abilities.lua (renamed from example/scripts/special_actions.lua) | 14 | ||||
-rw-r--r-- | example/scripts/main.lua | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/example/scripts/special_actions.lua b/example/scripts/abilities.lua index e18299a2..35cc1d25 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 b43dd420..7093f112 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" |