Fork me on GitHub
Inverse Phase Mask help!
Post: #1
Question 
Hi

I'm kind of confused regarding event_inverse_phase_mask:

I have a creature with 3 phases. ( 0, 1, 2 )

I dont want the actions in phase 0 to occur on the other phases so binary 011 = 3 decimal value.

I enter 3 as inverse phase mask for phase 0.

I dont want the actions in phase 1 to occure on the other phases so binary 101 = 5 decimal value.

I enter 5 as inverse phase mask for phase 1.

etc etc...

Can someone explain what I'm doing wrong here? Tongue

I followed documentation onhttps://github.com/cmangos/issues/wiki/Creature_ai_scripts
Reply
Post: #2
It's inverse phase mask. Like the wiki says "the field should contain all of the phases the event SHOULDN’T be triggered in".

So 011 (3) would only trigger in phase 2, 101 (5) would only trigger in phase 1 (assuming there are no more than three phases).

Not triggering in phase 0: 001 (1)
Not triggering in phase 1: 010 (2)
Only triggering in phase 0: 110 (6)
Only triggering in phase 1: 101 (5)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)

Continued MaNGOS | Return to Top | | Lite (Archive) Mode | RSS Syndication