| 12-22-2004, 12:45 AM | #1 |
So, I have a Neutral Passive unit on a map and I want to display a text message to the player who selects it. The problem is that "Game - Display to (Player group((Triggering player))) the text: Explanation of Doom..." Doesn't seem to work. I've come to the conclusion (by testing Display to "All players" instead) that the problem lies in the "Triggering player" part, but I can't find anything appropriate to put there instead of it, so I need some help on a different solution to this. If you know how to solve this or just have a hint that may help, please don't hesitate to reply :) |
| 12-22-2004, 09:30 AM | #2 |
Guest | Owner of Triggering Unit <> Triggering Player. The first half is the correct way to do it. The event is a unit event, so the parameters must match. |
| 12-22-2004, 10:49 AM | #3 |
The problem is that the owner of the triggering unit is Neutral Passive, and I want to display the text message to whoever selects it, regardless of whom it might be. I'll try the "Owner of triggering unit" but I doubt it will work. I'm open for other solutions aswell. |
| 12-22-2004, 03:04 PM | #4 |
Guest | I tested it and you can use "triggering player" to refer to the player that selcts the unit. Try to post your code. |
| 12-22-2004, 05:32 PM | #5 |
My trigger looks like this: Code:
Unit - Warrior 0005 <gen> Is selected Game - Display to (Player group((Triggering player))) the text: Warrior Defense: H... Edit: It doesn't work at all o_O |
| 12-22-2004, 06:20 PM | #6 |
Guest | I found out what you did wrong. You simply used the wrong event. Use: Code:
Player - Player 1 (Red) Selects a unit Player - Player 2 (Blue) Selects a unit Player - Player 3 (Teal) Selects a unit etc. It is not located in generic or specific unit event, just in the first trigger menu. |
| 12-22-2004, 10:27 PM | #7 |
Thanks alot man. Now I can get on working with my map without thinking about that trigger all the time. I knew there was a way to do this, because I've done it before. I just couldn't put my mind on what I did wrong. Lucky me there are forums. |
