CnCGeneralsAddict
16 years ago
I found the "QuantityModifier = " line in the Chinese Barracks code, that allows 2 Red Guard to appear after clicking ONCE on the Red Guard button. How do I make this work for a Chinese War Factory?

Behavior = ProductionUpdate ModuleTag_XX
  QuantityModifier = ChinaTankBattlemaster 2
End
Sponsor
CommieDog
16 years ago
I think it should work.
UserPostedImage 
CommieDog: Because someone has to do your dirty work for you
Annihilationzh
16 years ago
Why are you asking us instead of trying it out for yourself?
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
Drummin
16 years ago
I agree, let us know how you do with it.
Annihilationzh
16 years ago
The problem likely lies with creating a new ProductionUpdate when it already has one. Remove the one that you added & change the original one from:

  Behavior = ProductionUpdate ModuleTag_12
    NumDoorAnimations            = 1
    DoorOpeningTime              = 4000  ;in mSeconds
    DoorWaitOpenTime             = 2000  ;in mSeconds
    DoorCloseTime                = 5000  ;in mSeconds
    ConstructionCompleteDuration = 1500  ;in mSeconds
  End

into this:
  Behavior = ProductionUpdate ModuleTag_12
    QuantityModifier = ChinaTankBattleMaster   2
    NumDoorAnimations            = 1
    DoorOpeningTime              = 4000  ;in mSeconds
    DoorWaitOpenTime             = 2000  ;in mSeconds
    DoorCloseTime                = 5000  ;in mSeconds
    ConstructionCompleteDuration = 1500  ;in mSeconds
  End

This worked fine on my computer.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
CnCGeneralsAddict
16 years ago
I've finally got it to work. I am using the following lines to release 2 Battlemasters at one time:

  Behavior = ProductionUpdate ModuleTag_12
    QuantityModifier = ChinaTankBattleMaster 2
    NumDoorAnimations = 2 ;the number must be at least 2 in order for QuantityModifier to work.
    DoorOpeningTime = 4000  
    DoorWaitOpenTime = 2000  
    DoorCloseTime = 5000  
    ConstructionCompleteDuration = 1500
  End
Sky Demon
16 years ago
Doesn't the use of the QuantityModifier cause problems when two units are created on top of each other?
Surely if you were to change the number to anything higher than 2 they would get stuck ontop of each other or jammed in the factory?
Annihilationzh
16 years ago
The way Generals works, not much can get stuck. Units can go through each other, but try to avoid it.

I'll never understand why he thought that setting NumDoorAnimations to 2 would make any difference. It's pure superstition. The war factory doesn't have two doors to animate and the code works fine without the pointless change.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
CommieDog
16 years ago

Doesn't the use of the QuantityModifier cause problems when two units are created on top of each other?
Surely if you were to change the number to anything higher than 2 they would get stuck ontop of each other or jammed in the factory?

Sky Demon wrote:


The China Barracks's ProductionUpdate module has a ExitDelay= flag that is commented to indicate that it helps with the multiple Red Guards. If it was that big of an issue, I suppose you could use it.
UserPostedImage 
CommieDog: Because someone has to do your dirty work for you
garek007
2 months ago

The problem likely lies with creating a new ProductionUpdate when it already has one. Remove the one that you added & change the original one from:

  Behavior = ProductionUpdate ModuleTag_12
    NumDoorAnimations            = 1
    DoorOpeningTime              = 4000  ;in mSeconds
    DoorWaitOpenTime             = 2000  ;in mSeconds
    DoorCloseTime                = 5000  ;in mSeconds
    ConstructionCompleteDuration = 1500  ;in mSeconds
  End

into this:
  Behavior = ProductionUpdate ModuleTag_12
    QuantityModifier = ChinaTankBattleMaster   2
    NumDoorAnimations            = 1
    DoorOpeningTime              = 4000  ;in mSeconds
    DoorWaitOpenTime             = 2000  ;in mSeconds
    DoorCloseTime                = 5000  ;in mSeconds
    ConstructionCompleteDuration = 1500  ;in mSeconds
  End

This worked fine on my computer.

Originally Posted by: Annihilationzh 



This fixed it for me as well. I was able to get two Humvees as the Air Force General.

Users browsing this topic