Page 1 of 1

Spawning higher level monsters

Posted: Sat Mar 02, 2013 6:48 am
by Grimfan
Straightforward question people.

Is it possible to spawn higher level monsters (such as a level 5 snail or level 2 ogre) via a script?

By the way, I know I can just define a more powerful creature and spawn that, but I'm talking about a generic scripts that would alleviate the need to do this.

Re: Spawning higher level monsters

Posted: Sat Mar 02, 2013 10:07 am
by Sutekh
Yes, you can set the level of the monster. Just figure out which level, x, y and facing you want and it's pretty simple:

Code: Select all

function spawnHerder1()
   spawn("herder", 1,17,15,3)
   :setLevel(5)
end

Re: Spawning higher level monsters

Posted: Sat Mar 02, 2013 12:17 pm
by Grimfan
Sutekh wrote:Yes, you can set the level of the monster. Just figure out which level, x, y and facing you want and it's pretty simple:

Code: Select all

function spawnHerder1()
   spawn("herder", 1,17,15,3)
   :setLevel(5)
end
Thanks Sutekh. I knew the answer was going to be straightforward. :)