MetalShard, inc.
Pocket PC and Windows Games and Software

Pocket War (Game) Forum

This is a message in the Pocket War (Game) forum. If you would like to reply to this subject then fill in your reply in the box at the bottom of the page and click the Reply button. To get back to the main page for this forum click the Topics button.

Subject - Mod help
Pages: [1] Messages 1 - 6 of 6
Posted By: Anonymous (2005-09-08 08:00:05)

i am making a unit which can create other units..
how can i make it kick the units out automatically like cities?
Posted By: Tully (2005-09-08 08:30:51)

Override unitBuilt( tile unitThatWasBuilt ) for the unit that will be building new units then in that method use kickOutStored( tile container, int indexOfUnitBuilt ) to push out the new unit. The easiest way is to use -1 for indexOfUnitBuilt which kicks out all stored units.

Posted By: Anonymous (2005-09-08 16:55:26)

i tried that but it is not working
Posted By: Tully (2005-09-08 18:33:12)

you have to make a seperate js file with the unitBuilt command in it and then at the time you build the main unit (in the city script) add the new script to that unit using setScript( tile tileToScript, stirng scriptName )

Posted By: Tully (2005-09-08 18:33:40)

If I get a chance I will block this out for you tonight
Posted By: Anonymous (2005-09-09 09:23:28)

i dont understand how that works
Pages: [1] Messages 1 - 6 of 6


Attach File (zip and pwg files only)

you must be logged in to post
Copyright 2003-2010 MetalShard, inc. Games for Windows and Pocket PCs pocket war forums, automation software freegames