Can someone tell me why this trigger doesn't work.

wardenblack

Member
Reaction score
1
It does work only on Player1 (Red). Not the rest of them why?

Trigger:
  • Vizibility Effect
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Sound - Play Orc 3
      • For each (Integer A) from 1 to 5, do (Actions)
        • Loop - Actions
          • Visibility - Create an initially Enabled visibility modifier for (Player((Integer A))) emitting Visibility across vizibility Alliance <gen>
          • Wait 10.00 seconds
          • Visibility - Destroy (Last created visibility modifier)
      • For each (Integer B) from 7 to 11, do (Actions)
        • Loop - Actions
          • Visibility - Create an initially Enabled visibility modifier for (Player((Integer B))) emitting Visibility across vizibility Alliance <gen>
          • Wait 10.00 seconds
          • Visibility - Destroy (Last created visibility modifier)
 

Tyrulan

Ultra Cool Member
Reaction score
37
It's waiting 10 seconds, then sets visibility for blue, then another 10 seconds, sets visibility for teal, etc.
 

undead_me77

New Member
Reaction score
5
I'm assuming your trying to show all players except player 6 an area for 10 seconds only?

What you should do if this is the case is create a variable visibility array.
Trigger:
  • Melee Initialization
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Sound - Play Orc 3
      • For each (Integer A) from 1 to 5, do (Actions)
        • Loop - Actions
          • Visibility - Create an initially Enabled visibility modifier for (Player((Integer A))) emitting Visibility across Region 000 <gen>
          • Set Visibility[(Integer A)] = (Last created visibility modifier)
      • For each (Integer A) from 7 to 11, do (Actions)
        • Loop - Actions
          • Visibility - Create an initially Enabled visibility modifier for (Player((Integer A))) emitting Visibility across Region 000 <gen>
          • Set Visibility[(Integer A)] = (Last created visibility modifier)
      • Wait 10.00 seconds
      • For each (Integer A) from 1 to 11, do (Actions)
        • Loop - Actions
          • Visibility - Disable Visibility[(Integer A)]
          • Visibility - Destroy Visibility[(Integer A)]

What this will do is create visibility for players 1 2 3 4 5 7 8 9 10 11, wait 10 seconds, then remove that visibility.
 

wardenblack

Member
Reaction score
1
that was the problem ! Thanks dude. I used the option describe above but instead of Disable visibility[(integer A)] I used Disable visibility (last created visibility). Now its fixed thanks man
 

wardenblack

Member
Reaction score
1
Yeah you actually helped me did figure it out.
I thought that that action makes all players in the (Integer A) to loop action at once.
not loop action per each player.

now I know thanks
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top