summaryrefslogtreecommitdiff
path: root/example/scripts
diff options
context:
space:
mode:
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.lua2
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"