Page 1 of 1
Question about monster spawns
Posted: Wed Oct 17, 2012 2:05 am
by TheLastOrder
Hi everybody!!
First of all, sorry about my english.
I've searched in the forum for half hour but I didn't find anything that helps me:
I'm designing a 3-levels really-well-planned dungeon; taking care about all details, elaborating different puzzles and planning the enemies apparitions.
But I don't know how to do one important thing: to set a SPAWN for upper level monsters. I mean, to spawn from a 'spawn point', with level 2, 3, 4 or 5 (else level 1, that is the predetermined).
Is there an especific script to do that?
By the way, I wish to know where I could see the parameters, for example, between a level 1 skeleton and a level 5 skeleton, to know their powerfull properly.
Really, really thanks for your time!!
I'll try to publish that dungeon as soon as I can.

Re: Question about monster spawns
Posted: Wed Oct 17, 2012 2:13 am
by Neikun
TheLastOrder wrote:Hi everybody!!
First of all, sorry about my english.
I've searched in the forum for half hour but I didn't find anything that helps me:
I'm designing a 3-levels really-well-planned dungeon; taking care about all details, elaborating different puzzles and planning the enemies apparitions.
But I don't know how to do one important thing: to set a SPAWN for upper level monsters. I mean, to spawn from a 'spawn point', with level 2, 3, 4 or 5 (else level 1, that is the predetermined).
Is there an especific script to do that?
By the way, I wish to know where I could see the parameters, for example, between a level 1 skeleton and a level 5 skeleton, to know their powerfull properly.
Really, really thanks for your time!!
I'll try to publish that dungeon as soon as I can.

I think you want a trigger on one level to spawn a monster on another level?
This can be done without scripting. Set up your trigger and spawner where you want them. Click Add Connecter from the trigger. Then cycle through your levels using the pageup or page down key. Click on the spawner.
Re: Question about monster spawns
Posted: Wed Oct 17, 2012 2:27 am
by Grimwold
Neikun wrote:
I think you want a trigger on one level to spawn a monster on another level?
This can be done without scripting. Set up your trigger and spawner where you want them. Click Add Connecter from the trigger. Then cycle through your levels using the pageup or page down key. Click on the spawner.
I think he's talking about spawning monsters of different difficulties... when adding monsters via the editor you can select monster levels 1 to 5, but when using a spawner, that option is not available.
Regarding the parameters for different monsters, I think the spreadsheets in this thread might be of interest:
viewtopic.php?f=14&t=3285
Re: Question about monster spawns
Posted: Wed Oct 17, 2012 3:20 am
by TheLastOrder
Grimwold wrote:Neikun wrote:
I think you want a trigger on one level to spawn a monster on another level?
This can be done without scripting. Set up your trigger and spawner where you want them. Click Add Connecter from the trigger. Then cycle through your levels using the pageup or page down key. Click on the spawner.
I think he's talking about spawning monsters of different difficulties... when adding monsters via the editor you can select monster levels 1 to 5, but when using a spawner, that option is not available.
Regarding the parameters for different monsters, I think the spreadsheets in this thread might be of interest:
viewtopic.php?f=14&t=3285
That's right!! Sorry, I wanted to say "difficulties"
Good thread, by the way. I use to thought that level 5 difficult would be better than real ones in enemies. I have seen that the differences in terms of health, attack and experience given are really small between 1 and 5 levels/difficulties.
By now I don't find anything about change difficult parameters in a spawn entity.
Thanks a lot anyway Grimwold and Neikun!!
Someone else could help me about this???
Re: Question about monster spawns
Posted: Wed Oct 17, 2012 3:36 am
by Grimwold
Just out of interest how much variation would you want? Because what you could do is clone some/all of the monsters in your monsters.lua file and modify the stats per the different levels... then any spawners you create could refer to a specific monster. This wouldn't be too bad if you wanted say easy, medium and hard monsters, but would be a lot of work if you wanted 5+ different grades of monster.
e.g.
monsters.lua
Code: Select all
cloneObject{
name = "level3_spider",
baseObject = "spider",
Health = 220
attackPower = 33
exp = 211
}
then your spawner could be (as seen in
dungeon.lua)
Code: Select all
spawn("spawner", x,y,f, "level3_spider_spawner_1")
:setSpawnedEntity("level3_spider")
Re: Question about monster spawns
Posted: Wed Oct 17, 2012 5:08 am
by TheLastOrder
Grimwold wrote:Just out of interest how much variation would you want? Because what you could do is clone some/all of the monsters in your monsters.lua file and modify the stats per the different levels... then any spawners you create could refer to a specific monster. This wouldn't be too bad if you wanted say easy, medium and hard monsters, but would be a lot of work if you wanted 5+ different grades of monster.
e.g.
monsters.lua
Code: Select all
cloneObject(
name = "level3_spider",
baseObject = "spider",
Health = 220
attackPower = 33
exp = 211
}
then your spawner could be (as seen in
dungeon.lua)
Code: Select all
spawn("spawner", x,y,f, "level3_spider_spawner_1")
:setSpawnedEntity("level3_spider")
That's perfect!!!!
That solution is exactly what I was asking for!!!
Tomorrow I'll tell you how it results!
Reaaally thanks a lot -again!-

Re: Question about monster spawns
Posted: Thu Oct 18, 2012 12:58 am
by TheLastOrder
Hello again!!
That script it's not working... i don't know why, but a message with "Could not open dungeon", telling that an unexpeted "ALL" is in the script. I delete ALL but the same error, now with a symbol...
Maybe that script is incomplete??
This is what I finally write in the "monsters.lua" of my project:
-- This file has been generated by Dungeon Editor 1.3.1
-- TODO: place your custom monster definitions here
code:selectall
cloneObject(
name = "level3_spider",
baseObject = "spider",
Health = 220
attackPower = 33
exp = 211)
end
Re: Question about monster spawns
Posted: Thu Oct 18, 2012 12:59 am
by Neikun
TheLastOrder wrote:Hello again!!
That script it's not working... i don't know why, but a message with "Could not open dungeon", telling that an unexpeted "ALL" is in the script. I delete ALL but the same error, now with a symbol...
Maybe that script is incomplete??
This is what I finally write in the "monsters.lua" of my project:
-- This file has been generated by Dungeon Editor 1.3.1
-- TODO: place your custom monster definitions here
code:selectall
cloneObject(
name = "level3_spider",
baseObject = "spider",
Health = 220
attackPower = 33
exp = 211)
end
I see you problem. You have included the words "code:selectall" in your script. That should not be there.
Re: Question about monster spawns
Posted: Thu Oct 18, 2012 1:18 am
by Grimwold
Neikun is correct you have copied an extra line from the forum post... however I also made a mistake with an incorrect opening bracket I put ( when I meant {
I have corrected my original post to avoid confusion for anyone else who reads this thread.
Re: Question about monster spawns
Posted: Thu Oct 18, 2012 1:47 am
by TheLastOrder
You people are really great!!!
Thaaanks again!
