From 53167ad7742070c8dabc26e7fdc8beae507748a9 Mon Sep 17 00:00:00 2001 From: Philipp Sehmisch Date: Mon, 7 Jul 2008 20:14:20 +0000 Subject: changed function naming to be consistent with the rest of the script API and improved commenting. --- data/test.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'data/test.lua') diff --git a/data/test.lua b/data/test.lua index 75a903e..cd62482 100644 --- a/data/test.lua +++ b/data/test.lua @@ -125,11 +125,11 @@ function npc5_talk(npc, ch) m3 = tmw.monster_create(1, x + TILESIZE, y - TILESIZE) m4 = tmw.monster_create(1, x - TILESIZE, y - TILESIZE) - onDeath(m1, function() tmw.being_say(npc, "NOOO!") end) - onDeath(m2, function() tmw.being_say(npc, "Please stop this violence!") end) - onDeath(m3, function() tmw.being_say(npc, "Stop slaughtering my scorpions!") end) - onDeath(m4, function() tmw.being_say(npc, "Leave my scorpions alone!") end) - onDeath(m4, function() tmw.being_say(m4, "AAARGH!") end) + on_death(m1, function() tmw.being_say(npc, "NOOO!") end) + on_death(m2, function() tmw.being_say(npc, "Please stop this violence!") end) + on_death(m3, function() tmw.being_say(npc, "Stop slaughtering my scorpions!") end) + on_death(m4, function() tmw.being_say(npc, "Leave my scorpions alone!") end) + on_death(m4, function() tmw.being_say(m4, "AAARGH!") end) end end -- cgit