Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline Resist  
#1 Posted : Wednesday, April 19, 2017 9:49:53 PM(UTC)
Resist
Private
Joined: 4/19/2017(UTC)
Posts: 28

Thanks: 10 times
Was thanked: 3 time(s) in 3 post(s)
How can I use modules ? take, for example,
Changing a unit's cost ?
or If I want to make an american barracks gives money -like black market- is this called behavior ?
Help me please if there is any tutorial.
Thanks a lot
Sponsor
Offline Resist  
#2 Posted : Thursday, April 20, 2017 3:35:58 PM(UTC)
Resist
Private
Joined: 4/19/2017(UTC)
Posts: 28

Thanks: 10 times
Was thanked: 3 time(s) in 3 post(s)
Originally Posted by: Resist Go to Quoted Post


or If I want to make an american barracks gives money -like black market- is this called behavior ?


Code:
Object AmericaBarracks
AddModule ModuleTag_24
Behavior              = AutoDepositUpdate ModuleTag_24_Override
DepositTiming       = 10000
DepositAmount       = 50
InitialCaptureBonus = 800
End
End
End


here is a code that I made, I'm new to this things but I'm learning fast.
Offline mr_hymn_  
#3 Posted : Thursday, April 20, 2017 9:32:08 PM(UTC)
mr_hymn_
Major
Joined: 2/28/2017(UTC)
Posts: 410
Thailand
Location: Bangkok

Thanks: 63 times
Was thanked: 145 time(s) in 127 post(s)
Correct but please add only
Code:

Behavior              = AutoDepositUpdate ModuleTag_24_Override
DepositTiming       = 10000
DepositAmount       = 50
InitialCaptureBonus = 800
End
End


Addmodule is needed for map.ini but if you're editing factionbuilding.ini you don't need addmodule tag.
Offline Resist  
#4 Posted : Friday, April 21, 2017 3:31:58 AM(UTC)
Resist
Private
Joined: 4/19/2017(UTC)
Posts: 28

Thanks: 10 times
Was thanked: 3 time(s) in 3 post(s)
Originally Posted by: Mr_Hymn_ Go to Quoted Post
Correct but please add only
Code:

Behavior              = AutoDepositUpdate ModuleTag_24_Override
DepositTiming       = 10000
DepositAmount       = 50
InitialCaptureBonus = 800
End
End


Addmodule is needed for map.ini but if you're editing factionbuilding.ini you don't need addmodule tag.



okay thanks for info, actually it's fr map.ini i'm not editing.
Offline mr_hymn_  
#5 Posted : Friday, April 21, 2017 6:01:55 AM(UTC)
mr_hymn_
Major
Joined: 2/28/2017(UTC)
Posts: 410
Thailand
Location: Bangkok

Thanks: 63 times
Was thanked: 145 time(s) in 127 post(s)
Try this please. All of your buildings, units etc... cost you for free.

Code:

AddModule ModuleTag_010
    Behavior         = GrantUpgradeCreate ModuleTag_010
    UpgradeToGrant = Upgrade_CostReduction
  End
End

AddModule ModuleTag_05
  Behavior       = CostModifierUpgrade ModuleTag_05
    TriggeredBy  = Upgrade_CostReduction
    EffectKindOf = VEHICLE
    Percentage   = -100%
  End
End

AddModule ModuleTag_06
  Behavior       = CostModifierUpgrade ModuleTag_06
    TriggeredBy  = Upgrade_CostReduction
    EffectKindOf = AIRCRAFT
    Percentage   = -100%
  End
End

AddModule ModuleTag_07
  Behavior       = CostModifierUpgrade ModuleTag_07
    TriggeredBy  = Upgrade_CostReduction
    EffectKindOf = INFANTRY
    Percentage   = -100%
  End
End

AddModule ModuleTag_08
  Behavior       = CostModifierUpgrade ModuleTag_08
    TriggeredBy  = Upgrade_CostReduction
    EffectKindOf = STRUCTURE
    Percentage   = -100%
  End
End
Offline Resist  
#6 Posted : Friday, April 21, 2017 7:14:17 AM(UTC)
Resist
Private
Joined: 4/19/2017(UTC)
Posts: 28

Thanks: 10 times
Was thanked: 3 time(s) in 3 post(s)
Originally Posted by: Mr_Hymn_ Go to Quoted Post
Try this please. All of your buildings, units etc... cost you for free.

Code:

AddModule ModuleTag_010
    Behavior         = GrantUpgradeCreate ModuleTag_010
    UpgradeToGrant = Upgrade_CostReduction
  End
End

AddModule ModuleTag_05
  Behavior       = CostModifierUpgrade ModuleTag_05
    TriggeredBy  = Upgrade_CostReduction
    EffectKindOf = VEHICLE
    Percentage   = -100%
  End
End

AddModule ModuleTag_06
  Behavior       = CostModifierUpgrade ModuleTag_06
    TriggeredBy  = Upgrade_CostReduction
    EffectKindOf = AIRCRAFT
    Percentage   = -100%
  End
End

AddModule ModuleTag_07
  Behavior       = CostModifierUpgrade ModuleTag_07
    TriggeredBy  = Upgrade_CostReduction
    EffectKindOf = INFANTRY
    Percentage   = -100%
  End
End

AddModule ModuleTag_08
  Behavior       = CostModifierUpgrade ModuleTag_08
    TriggeredBy  = Upgrade_CostReduction
    EffectKindOf = STRUCTURE
    Percentage   = -100%
  End
End



it works perfectly, Thanks !
Users browsing this topic
Guest
Similar Topics
Help Needed! I Need help of how to make the bullet object fire from the barrel! (C&C Generals and Zero Hour)
by ZirconWolf 1/3/2018 5:30:16 PM(UTC)
GenerateMinefieldBehavior parameters help needed (Generals: Modding)
by rey 4/19/2017 6:49:31 PM(UTC)
intro help needed (Generals: Maps and World Builder)
by SUPER-G 7/3/2012 2:02:48 PM(UTC)
General help needed with certain specifics for AOD map (Generals: Maps and World Builder)
by kdreamland 4/28/2012 12:49:52 PM(UTC)
Little help needed if it is okay :) (Generals: Modding)
by glumurr 3/29/2011 3:13:30 PM(UTC)
Help needed on own map (Generals: Maps and World Builder)
by General Gerard 1/10/2011 5:30:10 PM(UTC)
Help needed on own map (Generals: Maps and World Builder)
by General Gerard 1/10/2011 5:27:44 PM(UTC)
HELP NEEDED with map (Generals: Maps and World Builder)
by killer kip 12/4/2010 4:20:22 PM(UTC)
making a supply truck,help needed (Generals: Modding)
by joey55 7/9/2010 7:31:43 AM(UTC)
camera problem help needed (Generals: Maps and World Builder)
by joey55 5/29/2010 8:23:23 AM(UTC)
Help Needed For.... (Generals: Modding)
by xXUnslicedxToastXx 7/26/2009 4:18:17 AM(UTC)
Help needed with C&C Generals LeafletDrop (Generals: Modding)
by Guest 7/5/2009 3:34:32 PM(UTC)
first map problem help needed (Generals: Maps and World Builder)
by doomkid 2/27/2009 12:44:31 PM(UTC)
Help needed for making Windows XP Custom Cursors (Off-Topic)
by Guest 6/7/2008 9:58:50 AM(UTC)
Infantry tutorial help needed (Generals: Maps and World Builder)
by DamienHell 8/27/2007 11:38:50 AM(UTC)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.