Making new monster Groups

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
User avatar
Baddock
Posts: 12
Joined: Tue Nov 04, 2014 8:28 pm

Making new monster Groups

Post by Baddock »

Has anyone had any success with making a monster group?

This has been my best attempt so far:

Code: Select all

	
defineObject{
	name = "mummy_pair",
        baseObject = "base_monster_group",
        components = {
			class = "MonsterGroup",
			name = "monstergroup",
         monster = {"mummy", "mummy_1"},
			monsterType = "mummy",
			level = "1"
		}
	}
While I do get a new entity to place in the editor, I don't end up with any monsters their when I test it. Anyone have any ideas on how to fix this? Thanks in advance.
User avatar
Sutekh
Posts: 126
Joined: Sun Nov 25, 2012 9:58 am
Location: UK

Re: Making new monster Groups

Post by Sutekh »

It took a while, but I finally managed to figure this one out, thanks to John Wordsworth's asset definitions:

Code: Select all

defineObject{
   baseObject = "base_monster_group",
   name = "mummy_pair",
   components = {
      {
         class = "MonsterGroup",
         name = "monstergroup",
         count = 2,
         monsterType = {
            "mummy1",
            "mummy2"
            }
         }
      }
   }
User avatar
Aisuu
Posts: 61
Joined: Fri Oct 31, 2014 2:07 pm

Re: Making new monster Groups

Post by Aisuu »

Is there any way to give different loot to each monster in group?
I gave to monster1 lootA and moster2 no loot. I put them into group. But both monsters drop lootA.
Its bug?

Or how do I check when monster group die? I would just spawn items on place where the last living group member die, but I dont know how to script that :(

EDIT: my bad, solved..
Last edited by Aisuu on Tue Nov 25, 2014 8:05 pm, edited 1 time in total.
User avatar
Baddock
Posts: 12
Joined: Tue Nov 04, 2014 8:28 pm

Re: Making new monster Groups

Post by Baddock »

Awesome, thanks Sutekh!
Post Reply