• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

correctly identify the name of the player ?

Status
Not open for further replies.
Level 3
Joined
Feb 14, 2013
Messages
26
I want to create a trigger example:
-Events
Player - Player 1 (Red) types a chat message containing-bt as A substring

when any player (red) (blue) (green) ... types a chat message-bt
-Conditions
trigger correctly identify the name of the player for example: nhattuanbl then activate the action.
-Actions
Unit - Add Holy Light to (Triggering unit)

some body help me determine the player's name
player's name must be nhattuanbl then active the action
sorry my english is bad
 
Level 17
Joined
Feb 11, 2011
Messages
1,860
Just copy this for each player:

  • Player - Player 1 (Red) types a chat message containing-bt as A substring
  • Player - Player 2 (Blue) types a chat message containing-bt as A substring
  • Player - Player 3 (Teal) types a chat message containing-bt as A substring
I don't have World Editor here, so I can't check the condition part, but it is possible.
 
Level 3
Joined
Feb 14, 2013
Messages
26
I understand the Events
but my question is determine the player's name in Conditions or Actions, player's name must be nhattuanbl then active the action.
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
Condition: String Comparison.
  • (Name of (Triggering player)) Equal to nhattuanbl
Action: instead of "Triggering Unit", you should have a unit variable with array where the heroes are stored.
This would look something like:
  • Unit - Add Holy Light to Hero[(Player number of (Triggering player))]
Hero[1] = Hero of Player 1 (Red)
Hero[2] = Hero of Player 2 (Blue)
You can fill in the rest, I believe?
 
Status
Not open for further replies.
Top