Page 1 of 1

Making new monster Groups

Posted: Sun Nov 09, 2014 7:34 pm
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.

Re: Making new monster Groups

Posted: Fri Nov 21, 2014 3:24 am
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"
            }
         }
      }
   }

Re: Making new monster Groups

Posted: Mon Nov 24, 2014 9:31 pm
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..

Re: Making new monster Groups

Posted: Tue Nov 25, 2014 7:17 pm
by Baddock
Awesome, thanks Sutekh!