blob: 6070ecd3b314dfabe292260fb68e2f5d4a17764d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--[[
Special action script file
This file allows you to implement your special 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)
target = target or user
being_say(target, "Kaaame...Haaame... HAAAAAA!")
chr_set_special_mana(user, specialid, 0)
end)
spell1:on_recharged(function(ch) being_say(ch, "Hoooooooo...") end)
local spell2 = get_special_info(2)
spell2:on_use(function(user) being_say(user, "HAA-DOKEN!") end)
get_special_info(3):on_use(function(user) being_say(user, "Sonic BOOM") end)
|