Posted by: rey - Saturday, November 7, 2015 9:57:33 AM
i'm trying to modify a vehicle-healing unit. it uses object for field auto-heal:
[quote] Behavior = AutoHealBehavior ModuleTag_Repair01
HealingAmount = 8.0
Radius = 150.0
HealingDelay = 400
StartsActive = Yes
KindOf = VEHICLE
ForbiddenKindOf = AIRCRAFT
SkipSelfForHealing = No
End[/quote]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)
Posted by: Gameanater - Saturday, November 7, 2015 1:06:11 PM
Just copy the USA Ambulance's module. Boom, done. :D
(Just remove "INFANTRY" in the untis it can heal)
Posted by: rey - Sunday, November 8, 2015 5:32:06 AM
i found only this block in INIZH.big
[quote] 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[/quote]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?
[b]add:[/b] made it, StartsActive=Yes(need No) was the culprit. still can't make it be "triggered" by GP, RequiredScience = SCIENCE_name only 'causes crash.(
Posted by: matthewandnathan - Wednesday, November 25, 2015 2:33:13 AM
You might be able to have a gp grant the ability to buy an upgrade.
Posted by: rey - Wednesday, November 25, 2015 1:59:40 PM
yeah, already understood that there is only such uncomfortable way, not worth the effort./ (at least 4 .ini to modify)