Posted by: skrinimator - Wednesday, February 3, 2010 10:57:53 AM
Hey im using world builder for generals. My question is, is there anyway to end a match when i kill a specific unit or destroy a specific building? Is there like an script for that or something??

Posted by: Drummin - Wednesday, February 3, 2010 3:57:18 PM
There are several options but the most simple is a script like this. *** IF *** Unit 'UnitX' has been destroyed. *** THEN *** Show 'Victorious' window and end game.

Posted by: skrinimator - Thursday, February 4, 2010 10:41:35 AM
I cant find that- under which category is it in? Unit? cause if so then i can't find it

Posted by: Drummin - Thursday, February 4, 2010 11:56:27 AM
You asked about using a specific unit or building and so I named it "UnitX" for the example. So name your object or building and use this name in your script. *The condition is down in the lower section under "[Unit] Unit is destroyed". *The action if TRUE part of the script is found under "[Multiplayer] Announce Victory".

Posted by: skrinimator - Thursday, February 4, 2010 2:30:18 PM
oh ok thank you that explains it much better :)