Question about monster spawns

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
User avatar
TheLastOrder
Posts: 104
Joined: Wed Oct 17, 2012 1:56 am

Question about monster spawns

Post 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.

;)
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: Question about monster spawns

Post 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.
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
  • Message me to join in!
User avatar
Grimwold
Posts: 511
Joined: Thu Sep 13, 2012 11:45 pm
Location: A Dungeon somewhere in the UK

Re: Question about monster spawns

Post 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
User avatar
TheLastOrder
Posts: 104
Joined: Wed Oct 17, 2012 1:56 am

Re: Question about monster spawns

Post 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!! :D :mrgreen:

Someone else could help me about this???
User avatar
Grimwold
Posts: 511
Joined: Thu Sep 13, 2012 11:45 pm
Location: A Dungeon somewhere in the UK

Re: Question about monster spawns

Post 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")
Last edited by Grimwold on Thu Oct 18, 2012 1:16 am, edited 1 time in total.
User avatar
TheLastOrder
Posts: 104
Joined: Wed Oct 17, 2012 1:56 am

Re: Question about monster spawns

Post 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!!! :D

Tomorrow I'll tell you how it results! :)

Reaaally thanks a lot -again!- :)
User avatar
TheLastOrder
Posts: 104
Joined: Wed Oct 17, 2012 1:56 am

Re: Question about monster spawns

Post 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
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: Question about monster spawns

Post 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.
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
  • Message me to join in!
User avatar
Grimwold
Posts: 511
Joined: Thu Sep 13, 2012 11:45 pm
Location: A Dungeon somewhere in the UK

Re: Question about monster spawns

Post 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.
User avatar
TheLastOrder
Posts: 104
Joined: Wed Oct 17, 2012 1:56 am

Re: Question about monster spawns

Post by TheLastOrder »

You people are really great!!! :D

Thaaanks again! :)
Post Reply