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 - Will changing default movement affect the AI?
Pages: [1] Messages 1 - 4 of 4
Posted By: Andrew (2007-03-19 14:49:52)

For my personal playability I have changed the default move for several units in the script. Will this change affect the AI?

Posted By: Anonymous (2007-03-19 20:32:59)

I went and looked at the AIs. Sometimes it overrides what it wants the units to do, but most of the time it relies on the units knowing what they should do (i.e. the default move types being correct.) So yes changing this will have an effect on the AIs. What you can do is build a city script and attach that to the cities you take. You can model it after the AI city scripts. Basically, you want your script to catch the unitBuilt( unitLeaving ) function and then for every unit built, check it's type and modify it's move to whatever you want. You will have to assign the script to every city you capture, though if you are really clever you can create a unit script that makes a unit assign the script to cities it captures, and have the city script assign the unit script to units it makes. Then basically you would have an in-game viral script running.
Posted By: Andrew (2007-03-20 01:47:03)

Any kind of documentation available on varibles, functions, events and such?
Posted By: Anonymous (2007-03-20 07:23:19)

yes on your pc go to Start -> All Programs -> MetalShard and under that menu you will see Help. In the help is a section called Script Reference that has all the script commands and what they can do.
Pages: [1] Messages 1 - 4 of 4


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