summaryrefslogtreecommitdiffstats
path: root/example/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'example/scripts')
-rw-r--r--example/scripts/items/candy.lua2
-rw-r--r--example/scripts/monster/testmonster.lua4
-rw-r--r--example/scripts/status/jump.lua2
-rw-r--r--example/scripts/status/plague.lua2
4 files changed, 5 insertions, 5 deletions
diff --git a/example/scripts/items/candy.lua b/example/scripts/items/candy.lua
index a740ce6..5ab7c9a 100644
--- a/example/scripts/items/candy.lua
+++ b/example/scripts/items/candy.lua
@@ -12,6 +12,6 @@
-- under the terms of the GNU General Public License as published by the Free --
-- Software Foundation; either version 2 of the License, or any later version. --
----------------------------------------------------------------------------------
-function use(user)
+function use_candy(user)
mana.being_say(user, "*munch*munch*munch*")
end
diff --git a/example/scripts/monster/testmonster.lua b/example/scripts/monster/testmonster.lua
index 9938943..fa094a8 100644
--- a/example/scripts/monster/testmonster.lua
+++ b/example/scripts/monster/testmonster.lua
@@ -8,14 +8,14 @@
-- Software Foundation; either version 2 of the License, or any later version. --
----------------------------------------------------------------------------------
-function update(mob)
+function update_monster(mob)
local r = math.random(0, 200);
if r == 0 then
mana.being_say(mob, "Roar! I am a boss")
end
end
-function strike(mob, victim, hit)
+function on_maggot_strike(mob, victim, hit)
if hit > 0 then
mana.being_say(mob, "Take this! "..hit.." damage!")
mana.being_say(victim, "Oh Noez!")
diff --git a/example/scripts/status/jump.lua b/example/scripts/status/jump.lua
index 3410747..10ad928 100644
--- a/example/scripts/status/jump.lua
+++ b/example/scripts/status/jump.lua
@@ -12,7 +12,7 @@
----------------------------------------------------------------------------------
-function tick(target, ticknumber)
+function tick_jump(target, ticknumber)
if (ticknumber % 10 == 0) then
mana.being_say(target, "I have the jumping bug!")
end
diff --git a/example/scripts/status/plague.lua b/example/scripts/status/plague.lua
index 5f98268..5f33eb8 100644
--- a/example/scripts/status/plague.lua
+++ b/example/scripts/status/plague.lua
@@ -12,7 +12,7 @@
-- Software Foundation; either version 2 of the License, or any later version. --
----------------------------------------------------------------------------------
-function tick(target, ticknumber)
+function tick_plague(target, ticknumber)
if (ticknumber % 10 == 0) then
mana.being_say(target, "I have the plague! :( = " .. ticknumber)
end