Aller au contenu

Photo

encounters. Help pls


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
Cursed Eclipse

Cursed Eclipse
  • Members
  • 70 messages

Let's suppose that i have five encounters in an area.
Every encounters counts 4 different creatures (hostile faction).

 

I would like a creature at random between those present in the econunters covers the role of the boss of the area.

I have already a function that takes care of changing the name and the size of the creature,but my problem is that I do not know when and how to execute it.

 

i was thinking to something like:

if(Random(10) > (8))
     {
    ExecuteScript("custom_script" OBJECT_SELF) //script change name and size. 
    }

In OnSpawn(nw_c2_default9) of the creature

 

 

but doing this way I might have more bosses in one area,  when i want just one boss for area.

 

I have already set the variables on the creatures but they serve for another system that I use: http://nwvault.ign.c...2#commentmarker

maybe they can be recycled? ...

 

Any idea?



#2
Proleric

Proleric
  • Members
  • 2 361 messages
Set a local int on the area when the first boss has been created. Check its value OnSpawn to prevent a second boss.

#3
Cursed Eclipse

Cursed Eclipse
  • Members
  • 70 messages
i did like Proleric suggest. Work fine thanks.



I was wondering if it was possible to set a local int on the monster that spawn from the encounter when activated (maybe using OnEnter or OnUser define event ?)