rey
  • rey
  • 52.5% (Neutral)
  • Major Topic Starter
10 years ago
i'm trying to modify a vehicle-healing unit. it uses object for field auto-heal:

Behavior = AutoHealBehavior ModuleTag_Repair01
HealingAmount = 8.0
Radius = 150.0
HealingDelay = 400
StartsActive = Yes
KindOf = VEHICLE
ForbiddenKindOf = AIRCRAFT
SkipSelfForHealing = No
End

plan is to upgrade it to repair additionally buildings. i know i can just add STRUCTURE to KindOf but that's too bold = requirement for upgrade, or even better GP would be wonderful!(like Repair Rank2)
Sponsor
Gameanater
10 years ago
Just copy the USA Ambulance's module. Boom, done. :D

(Just remove "INFANTRY" in the untis it can heal)
Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
rey
  • rey
  • 52.5% (Neutral)
  • Major Topic Starter
10 years ago
i found only this block in INIZH.big

Behavior = AutoHealBehavior ModuleTag_22
HealingAmount = 4
HealingDelay = 1000 ; msec
Radius = 100.0f
StartsActive = Yes
KindOf = INFANTRY
End
Behavior = AutoHealBehavior ModuleTag_23
HealingAmount = 5
HealingDelay = 1000 ; msec
Radius = 100.0f
StartsActive = Yes
KindOf = VEHICLE
ForbiddenKindOf = AIRCRAFT
SkipSelfForHealing = Yes
End

but there is no upgrade dependance here(in Ambulance block at all). i changed respectively VEHICLE for 22 and STRUCTURE for 23, added TriggeredBy = Upgrade_name to ModuleTag_23 = no luck, unit repairs both from the start.
yet, is it possible at all to make GP be required?

add: made it, StartsActive=Yes(need No) was the culprit. still can't make it be "triggered" by GP, RequiredScience = SCIENCE_name only 'causes crash.(
matthewandnathan
10 years ago
You might be able to have a gp grant the ability to buy an upgrade.
"Overlord Moving."
rey
  • rey
  • 52.5% (Neutral)
  • Major Topic Starter
10 years ago
yeah, already understood that there is only such uncomfortable way, not worth the effort./ (at least 4 .ini to modify)