Jump to content


Photo

Upgrade to Supply Center


  • Please log in to reply
1 reply to this topic

#1 SaxMeister13

SaxMeister13
  • Members
  • 24 posts
  • Location:USA
  • Projects:The Republic
  •  Intermediate Modder

Posted 26 November 2008 - 03:56 AM

I'm trying to add an upgrade to a supply center to allow it to produce cash (like a Black Market). Code:

Behavior = AutoDepositUpdate ModuleTag_Cash
	DepositTiming		 = 1000; in milliseconds
	DepositAmount		 = 100 ; cash amount to deposit every DepositTiming
	InitialCaptureBonus   = 0   ; no initial bonus (doesn't really apply here, like Oil Rig)
	TriggeredBy		   = Upgrade_ChinaSupplyCash; THIS LINE IS THE PROBLEM
  End

By commenting/uncommenting stuff, I discovered that everything works fine except for the final line - the money is produced, and the upgrade can be purchased (though it doesn't do anything :p ). The TriggeredBy line, however, causes the game to fail to launch.

Can anyone help me figure out what I'm doing wrong?
Writing with a broken pencil is kind of...you know...pointless.

#2 beng

beng
  • Members
  • 93 posts

Posted 11 August 2009 - 12:25 PM

AutoDepositUpdate cannot take a TriggeredBy line, what made you think it could?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users