| 10-16-2002, 07:39 AM | #1 |
Guest | I have the trigger working perfectly except for one thing... you can select another players structures and sell them. I need to make it so that you can only sell your own structures. Here is the code, can you see a way that I can fix this (it has to remain in essence the same trigger eg. escape to sell!) Event: Player - Player 1 (Red) skips cinematic sequence Player - Player 2 (Blue) skips cinematic sequence etc... Conditions: None Actions: Unit Group - Pick every unit in (Units currently selected by (triggering player)) and do (Player - Add (Point-value of (Picked unit)) to (Triggering Player) current gold) Unit Group - Pick ever unit in (Units currently selcted by (triggering player)) and do (Unit - Remove (Picked Unit) for the game) So does anyone know (most likely with conditions), how to make it so that if you select a building and sell it, that it will only sell if you own it. Thanx and hope you can help :P |
| 10-16-2002, 10:14 AM | #2 |
put this above ur pick every unit then do trigger... if (triggering player currently selected unit owner = triggering player) then (do nothing) else (skip remaining actions) |
| 10-16-2002, 10:53 AM | #3 |
Guest | ??? I can't find that trigger anywhere, is it a boolean or an integer trigger or what. Could you be more specific and copy the trigger exactly as you would see it. Because as far as I can tell there is no "triggering player currently selected unit owner" trigger. Thanx |
