View Single Post
Old 01-29-2004, 06:26 AM   #1 (permalink)
Kameiccillo
Member
 
Join Date: Apr 2003
Location: Australia
Posts: 30
Send a message via ICQ to Kameiccillo Send a message via MSN to Kameiccillo
Default Want to make a science that allows squads to be produced

Hi,

I'm trying to make the infantry general have a science that allows him to build 3xMiniGunners or 2xTankHunters.

I know there is the ProductionUpdate module for the barracks that needs to be edited but how would I create a duplicate module that changes to the correct numbers when a science is purchased, also could be done with upgrade if required to be done that way.

Here is what I want it to look like:

Code:
  Behavior = ProductionUpdate ModuleTag_10
    QuantityModifier = Infa_ChinaInfantryMiniGunner   1
  End

  Behavior = ProductionUpdate ModuleTag_28
    QuantityModifier = Infa_ChinaInfantryMiniGunner   3
    QuantityModifier = Infa_ChinaInfantryTankHunter   2
    ScienceRequired = Infa_SCIENCE_SquadTraining
  End
When I run it with that code in there it just crashes when loading and the error is just that it had problems parsing the infa_chinabarracks. (AND YES I HAVE THE APPROPRIATE CODE FOR THE SCIENCE IN THERE)

PLEASE CAN SOMEONE HELP ME WORK THIS OUT!!!!!!

Thanks for any help.
Kameiccillo is offline   Reply With Quote