blob: 42cf1d2d6e6621b68ddae1e8fba2e0cdcec7f517 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
--[[
Example monster script.
Makes the monster boost about his abilities and makes both the monster and
the player talkative during battle.
--]]
local function update(mob)
local r = math.random(0, 200);
if r == 0 then
mob:say("Roar! I am a boss")
end
end
local maggot = get_monster_class("maggot")
maggot:on_update(update)
|