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/scripts | |
parent | e2b6a4efe72333ab0e0761f4e9e8ce9eb29a5335 (diff) | |
download | manaserv-708896008ad8ea391d542ce37b9871318a84fb97.tar.gz manaserv-708896008ad8ea391d542ce37b9871318a84fb97.tar.xz manaserv-708896008ad8ea391d542ce37b9871318a84fb97.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 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" |