Umm, A little help would be appreciated

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
Anacondas1
Posts: 4
Joined: Fri Sep 14, 2012 10:21 pm

Umm, A little help would be appreciated

Post by Anacondas1 »

Hello, sorry to bother - but I am really new to scripting things, and am having a bit of trouble this to work:

cloneObject{
name = "Matrov",
baseObject = "snail",
movesound = "slime_walk",
attackPower = 50,
health = 360,
immunities = "poison",
onAttack = function(self)
spawn ("poison_cloud", self.level, self.x, self.y, self.facing)
onDie = function(self)
hudPrint("Matrov, the Putrid Prince has be Defeated!")
end,
}

I have probably done some really obvious thing wrong, but I just can't see it myself.
If you can help, it would be greatly appreciated :D
Thanks
Stephen
User avatar
Shroom
Posts: 98
Joined: Tue Mar 27, 2012 6:37 pm
Location: UK

Re: Umm, A little help would be appreciated

Post by Shroom »

Anacondas1 wrote:Hello, sorry to bother - but I am really new to scripting things, and am having a bit of trouble this to work:

cloneObject{
name = "Matrov",
baseObject = "snail",
movesound = "slime_walk",
attackPower = 50,
health = 360,
immunities = "poison",
onAttack = function(self)
spawn ("poison_cloud", self.level, self.x, self.y, self.facing)
onDie = function(self)
hudPrint("Matrov, the Putrid Prince has be Defeated!")
end,
}

I have probably done some really obvious thing wrong, but I just can't see it myself.
If you can help, it would be greatly appreciated :D
Thanks
Stephen
missing an end

cloneObject{
name = "Matrov",
baseObject = "snail",
movesound = "slime_walk",
attackPower = 50,
health = 360,
immunities = "poison",
onAttack = function(self)
spawn ("poison_cloud", self.level, self.x, self.y, self.facing)
end,
onDie = function(self)
hudPrint("Matrov, the Putrid Prince has be Defeated!")
end,
}

havent tested it, but thats what it looks like to me.
Anacondas1
Posts: 4
Joined: Fri Sep 14, 2012 10:21 pm

Re: Umm, A little help would be appreciated

Post by Anacondas1 »

Yep that worked, Thought it was something blindingly obvious :P

Thank you very much
Post Reply