eloytoro
New Member
- Reaction score
- 4
Im creating a trigger to set the player's name as (the player name) + ((Hero's name)) in the respective player's color. But the only way i finded to do this is to create 10 differents if/then/else actions like this:
Plz help me so i dont have to do this!
Code:
TavernPicking
Events
Unit - A unit Sells a unit
Conditions
((Sold unit) is A Hero) Equal to True
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Sold unit)) Equal to Player 1 (Red)
Then - Actions
Set PlayerName[1] = ((|cffff0000 + ((Name of (Owner of (Sold unit))) + ((Name of (Sold unit)) + |r))))
Else - Actions
Plz help me so i dont have to do this!