Posted by: AdrianeMapMaker - Thursday, October 5, 2017 12:43:44 AM
Like i wanted the player to capture a building -Technology Center-
If this building had been captured all of his tanks will be granted a plus 25 health
Is the General's Have This Logic?
Edit : I think i found it -
Strategy Center Logic But how can i use one of them
-Damage Scalar Only
What behavior can i use - is it battleplan behavior again pls need help.
Posted by: Unknown Editor - Thursday, October 5, 2017 2:31:58 AM
I don't think You can edit the Hold the Line Plan (or any other {If you Want to}) ...
They are all Specified in GameData.ini and I don't think can be done fine .
But for one thing if it is Possible to Gain an Upgrade by EVEN Capturing a Building , Well you sure can make it like this :
Set Grant Upgrade Module for your Really Specific Respective Building :
[code=csharp] AddModule
Behavior = GrantUpgradeCreate ModuleTag_UpHP
UpgradeToGrant = RocketBuggyToxinUpgrade ; as It's Useless
End
End
End[/code] AddModule
Behavior = GrantUpgradeCreate ModuleTag_UpHP
UpgradeToGrant = RocketBuggyToxinUpgrade ; as It's Useless
End
End
End[/code]
and then add this to your Units :
[code=csharp] AddModule
Behavior = MaxHealthUpgrade ModuleTag_MoreHP
TriggeredBy = RocketBuggyToxinUpgrade
AddMaxHealth = 25.0
ChangeType = ADD_CURRENT_HEALTH_TOO ; PRESERVE_RATIO SAME_CURRENTHEALTH
End
End
End[/code]
But for a Bug ... When You Loose the Building you sure can't get the rid of that extra HP :ashamed:
Maybe by another Upgrade and Conflicts with in the Behavior and a couple of Scripts [grin]
Edit : Now to be more Honest I can Only find Weapon Bonuses in GameData.ini for the BattlePlans ...
Health Bonuses are only for Veterancy Levels ... No idea where is Hold the Line Bonus Set [unamused]