blob: 2701d24eedf1b03e57012f52df11274e44460399 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
--[[
Example monster script.
Makes the monster boost about his abilities and makes both the monster and
the player talkative during battle.
--]]
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 on_maggot_strike(mob, victim, hit)
if hit > 0 then
mana.being_say(mob, "Take this! "..hit.." damage!")
mana.being_say(victim, "Oh Noez!")
else
mana.being_say(mob, "Oh no, my attack missed!")
mana.being_say(victim, "Whew...")
end
end
|