How do we get an event that uses "Any player"?

MintJulep

New Member
Reaction score
4
Like for example, I want a trigger that's like,

Code:
Events:
A player selects a unit.

Conditions:
(Triggering unit) equal to Unit 5050.

Actions:
Send to (All Players) the Quest Message: "This is working!"

The problem is, the only choices available for all the Player events are Player 1 (Red), Player 2 (Blue), Neutral Hostile, and so on. There's no "Any Player" function. I know a lot of maps are able to use triggers like this, like any RPG map where you click on an NPC and it talks to you.
 

adeoin

Member
Reaction score
11
well if all the players are allied to player 1 i think u can do this.

A player allied to player red 1 types message containing "start"



or you could make seperate triggers for each player
 

MintJulep

New Member
Reaction score
4
I don't see the "Players allied to Player x" function in the choices for the event; I think it only applies to anything using player groups...
 

saw792

Is known to say things. That is all.
Reaction score
280
You can't. You have to make a separate event for each player, ie:
Code:
Events
   Player 1 (Red) selects a unit
   Player 2 (Blue) selects a unit
   ...
Actions
  //Your actions
 

vypur85

Hibernate
Reaction score
803
Another way is to add event. This would seem easy for some while some would prefer the method used in Post#4. Either way would work the same :).

Code:
Event
 Map Initialisation
Condition
Action
 Player Group - Pick all players in All Players and do multiple actions
  Loop - actions
   Trigger - Add to Selection <gen> [del]to[/del] the event (Picked Player) selects a unit

Code:
Selection
 Event
 Condition
 Actions
  -Your actions-

Triggering Player = The selecting player
Triggering unit = Selected unit

Edit (For post below):
Lol... Fineeeee... Fixed it.... >.<
 

saw792

Is known to say things. That is all.
Reaction score
280
@Vypur

Add a trigger to an event? Lol.

Wrong way around in your freehand :p
 

woot

New Member
Reaction score
8
You can't. You have to make a separate event for each player, ie:
Code:
Events
   Player 1 (Red) selects a unit
   Player 2 (Blue) selects a unit
   ...
Actions
  //Your actions

this is your answer


(Triggering Player) will give you the player
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
@Woot: Vypur's method will work just fine. It picks all players and adds those players into the event. It's the same as adding them in manually, but much shorter.
 
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