| 02-07-2004, 03:27 PM | #1 |
My event looks liks this: Code:
Events
Unit - Big Bad Wolf <gen> Is selectedI made the assumption that "Triggering player" is the proper way to find out what player selected that lil furry beast.. But I need to know how to see what unit I have selected (yes I know that I could just pick the unit from the game, but I will need to copy and paste this thing 30 times so it's a pain..) |
| 02-07-2004, 03:30 PM | #2 |
Triggering Unit? |
| 02-07-2004, 03:38 PM | #3 |
Do I sense sarcasm? :o I was just getting used to using Event response - target unit of ability being cast etc.. never even thought of triggering unit. :x also could you write me a jass trigger how to make birds fly over a corpse and then go down and eat the flesh, and also..i would like them to then go to a town hall and i get blood instead of lumber.. also change the GUI so that lumber looks like a blood drop.. and also.................................................... ................. ................ ..................nothing.. thanks for help |
| 02-07-2004, 03:39 PM | #4 |
I've had problems with that trigger a while ago. I think I used "Player # Selects a unit" instead, it worked fine with Triggering Player. |
| 02-07-2004, 03:46 PM | #5 |
Also could I make a little note.. It doesn't work with triggering unit.. :o Maybe it's just my trigger that's Stupid I'll double check it.. for your pleasure Edit ok thanks D, I'll do taht insdead.... i can't remeber the name ;o EditII: Wow this really made my day, now my hero selection system is as easy as ever.. and it's also sexy.. wow I like it.. I think i'm going afk for some sexuel pleasure.. :o |
| 02-09-2004, 12:44 AM | #6 |
Wait the words trigger works and sexual pleasure... ok I'm gonna have nightmare's now... |
| 02-09-2004, 12:53 AM | #7 |
Triggering Player _only_ returns a value if the Event refers to Player somewhere in the event. Ie if the event wasn't in the Player section or doesn't read A Unit owned by Player 1 dies, then Triggering Player will give you nothing. But hey, that's what the "Owner of ()" function is for. As for your problem if you are trying to catch the Player information then you should use the Player 1 Selects a Unit event, and simply check that selected unit is equal to Big Bad Wolf. Note that Triggering Unit wouldn't work for that event either as the only actors in the event are A. the Triggering Player, and B. the Selected Unit. No other event response variables will give any information under that event. EDIT: Note != not |
| 02-09-2004, 02:14 PM | #8 |
Both Selection Events have triggering player, but (unit is selected)'s triggering player will return the owner of the unit (even if another player selected that unit), so use Player Selects a unit with some conditions like Events Player 1 selects a unit Player 2 selects a unit ... Player 12 selects a unit Conditions (triggering unit) equal to Big bad wolf Actions .... |
