Im working on a duel Trigger . This is how i want it to work:
A Player writes "-duel" in the game chat and the trigger should storage this player in a variable (no problem so far) and then check if the player has a unit selected and if this unit is a friendly hero storage this unit in a variable. Don't care about the rest for now.
Now here is my problem: How do I know which unit the player typing the message has selected? There is no such thing as "Unit - selected Unit". I've thought about working with the event "Player Player (1-12) selects a Unit" but I don't think that i can then work with "Unit - Triggering Unit" as this is a player event. I hope you get what my Problem is, I've searched this forum for "duel" and "select unit" but didn't get any helpful information. I'm sorry if my english isn't that great and I don't have the english world editor, so some labels might be wrong.
A Player writes "-duel" in the game chat and the trigger should storage this player in a variable (no problem so far) and then check if the player has a unit selected and if this unit is a friendly hero storage this unit in a variable. Don't care about the rest for now.
Now here is my problem: How do I know which unit the player typing the message has selected? There is no such thing as "Unit - selected Unit". I've thought about working with the event "Player Player (1-12) selects a Unit" but I don't think that i can then work with "Unit - Triggering Unit" as this is a player event. I hope you get what my Problem is, I've searched this forum for "duel" and "select unit" but didn't get any helpful information. I'm sorry if my english isn't that great and I don't have the english world editor, so some labels might be wrong.