| 07-17-2002, 02:47 AM | #1 |
Greetings. I'm new to wc3 scripting tho have scripted quests elsewhere. Anyway, I'm setting up one of my older concepts into a WC3 script and had some, probably, basic questions. How do I set a trigger to remove all the units that would belong to player X if player X hasn't joined the game at the start? (So there is no Teal player I want to remove all Teal units) And to do the above if Teal, for example, leaves can I use the trigger Player leaves with a defeat? Thanks |
| 07-17-2002, 03:52 AM | #2 |
Use player slot comparsion in condition Then remove all relevant unit! |
| 07-17-2002, 04:15 AM | #3 |
Thanks for replying but I wasn't able to get it .. At the moment my test trigger goes as Events Map init Conditions Player 3 Teal not equal to Player 3 Teal Actions Unit - Remove Mountain King I've just been guessing and experimenting from your comment to use player comparison in conditions. Can you/anyone spell it out further for me please? |
| 07-17-2002, 04:22 AM | #4 |
Ah think I got it by using the Condition Player Controller Comparison |
| 07-17-2002, 04:35 AM | #5 |
E.g E: Every 2sec C: Player1 slot status is has left the game A: Unit Group Pick every unit own by Player1 and do Unit - Remove Picked unit from the game. Or perhaps subsitute Player1 with Player(Player number of(Triggering Player)). |
