So one day I woke up and decided to make a trigger that checks the owners of the 2 last remaining HEROIC units and create a text at the chat area that says.... "(Owner of the one unit) versus (Owner of the other unit)"....
Guess what!I spent the whole day trying to figure that out...The result was an EPIC FAIL!!!
Ok I did the event and the condition but I cant find a way to check the owners of the 2 last remaining heroic units to write the text!!!
I made the trigger for the combined text like this: .....
UI - Display ((Combine ((Name of player 1))) + (" VERSUS " + (Name of player 2))) for (All players) to Chat area
The fields with the player names are the things that I cant figure out...Plzzz help me :'(
If you didnt understand a word of what im saying then ask me!!
SC2MapsterEventsLocalVariablesHeroics=(Emptyunitgroup)<UnitGroup>p1=0<Integer>p2=0<Integer>ConditionsActionsVariable-SetHeroics=(Anyunitsin(Entiremap)ownedbyplayerAnyPlayermatchingRequired:Heroic;Excluded:Dead,withatmostAnyAmount)General-If(Conditions)thendo(Actions)elsedo(Actions)If(NumberofAnyunitsinHeroics)==2ThenVariable-Setp1=(Ownerof(Unit1fromHeroics))Variable-Setp2=(Ownerof(Unit2fromHeroics))UI-Display(Combine((Nameofplayerp1)," versus ",(Nameofplayerp2)))for(Allplayers)toSubtitleareaElse
Tell me if something is not clear.
Note that it doesn't work when 1 player has 2 heroic units. That's a bit more complicated but still not impossible.
So one day I woke up and decided to make a trigger that checks the owners of the 2 last remaining HEROIC units and create a text at the chat area that says.... "(Owner of the one unit) versus (Owner of the other unit)".... Guess what!I spent the whole day trying to figure that out...The result was an EPIC FAIL!!! Ok I did the event and the condition but I cant find a way to check the owners of the 2 last remaining heroic units to write the text!!! I made the trigger for the combined text like this: .....
UI - Display ((Combine ((Name of player 1))) + (" VERSUS " + (Name of player 2))) for (All players) to Chat area
The fields with the player names are the things that I cant figure out...Plzzz help me :'( If you didnt understand a word of what im saying then ask me!!
@CosmaOne:
I’m a little confused as to what exactly the problem is.. Will it not work, or do you just it understand how to do it?
@CosmaOne: Go
Something like this?
Tell me if something is not clear.
Note that it doesn't work when 1 player has 2 heroic units. That's a bit more complicated but still not impossible.
@RandomNoExit: Go
thats exactly what i wanted. ty i owe you one. I'll try it and let you know if it works xD