Trigger Help

iPeez

Hot food far all world wide!
Reaction score
165
Code:
Events
    Player - Player 1 (Red) Selects a unit
    Player - Player 2 (Blue) Selects a unit
    Player - Player 3 (Teal) Selects a unit
    Player - Player 5 (Yellow) Selects a unit
    Player - Player 6 (Orange) Selects a unit
    Player - Player 7 (Green) Selects a unit
    Player - Player 9 (Gray) Selects a unit
    Player - Player 10 (Light Blue) Selects a unit

    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
       If - Conditions
           (Targeted unit) Equal to Firelord 0064 <gen>
       Then - Actions
           Game - Display to [COLOR="Red"](All players)[/COLOR] the text: Firelord  -Incinera...
       Else - Actions


How I change All Players to Player selecting unit? If you understand..


And how I make the heros in my AoS map not gain xp when the enemy computer units is killed by their allies's?
 

Alphabet

New Member
Reaction score
12
You 2 should take a look at it before trying to help. That takes an player group, and (Triggering player) isn't a player group, as you know.

I see 2 ways to solve this. You could split the trigger into 8 different triggers, that means making 1 for each player and then use the Player Group - Player 1 (Red) etc.
The second way, which I think is better, is using JASS (custom script trigger). Just one line is enough.
Code:
Custom script: call DisplayTextToPlayer( GetTriggerPlayer(), 0, 0, "Your message here." )
Just make sure your message is inside the " marks.

Edit: Oh damn, haven't noticed you can convert players to groups without using the presets. ^_^
 

Larcenist

REP: Respect, Envy, Prosperity?
Reaction score
211
Then use "All players matching (Matching Player) Equal to (Triggering Player)".

Edit: Or even easier: Display to (PlayerGroup(TriggeringPlayer)) The message...
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top