summaryrefslogtreecommitdiff
path: root/example/scripts/monster/testmonster.lua
diff options
context:
space:
mode:
Diffstat (limited to 'example/scripts/monster/testmonster.lua')
-rw-r--r--example/scripts/monster/testmonster.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/example/scripts/monster/testmonster.lua b/example/scripts/monster/testmonster.lua
index 86d1592f..21b6a7b2 100644
--- a/example/scripts/monster/testmonster.lua
+++ b/example/scripts/monster/testmonster.lua
@@ -10,17 +10,17 @@
local function update(mob)
local r = math.random(0, 200);
if r == 0 then
- being_say(mob, "Roar! I am a boss")
+ mob:say("Roar! I am a boss")
end
end
local function strike(mob, victim, hit)
if hit > 0 then
- being_say(mob, "Take this! "..hit.." damage!")
- being_say(victim, "Oh Noez!")
+ mob:say("Take this! "..hit.." damage!")
+ victim:say("Oh Noez!")
else
- being_say(mob, "Oh no, my attack missed!")
- being_say(victim, "Whew...")
+ mob:say("Oh no, my attack missed!")
+ victim:say("Whew...")
end
end