Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home3/tedson/public_html/metalshard/header.php on line 14

Warning: Cannot modify header information - headers already sent by (output started at /home3/tedson/public_html/metalshard/header.php:14) in /home3/tedson/public_html/metalshard/header.php on line 23

Warning: Cannot modify header information - headers already sent by (output started at /home3/tedson/public_html/metalshard/header.php:14) in /home3/tedson/public_html/metalshard/header.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /home3/tedson/public_html/metalshard/header.php:14) in /home3/tedson/public_html/metalshard/header.php on line 25

Warning: Cannot modify header information - headers already sent by (output started at /home3/tedson/public_html/metalshard/header.php:14) in /home3/tedson/public_html/metalshard/header.php on line 26
Pocket PC Forum page 1 topic 597 at MetalShard
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




Reply


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