BFME 2 - ROTWK Code Refence  1.0
ReplenishUnitsBehavior Class Reference

Public Attributes

Boolean StartsActive
 
UnsignedInteger ReplenishDelay
 
FloatingPoint ReplenishRadius
 
FloatingPoint NoReplenishIfEnemyWithinRadius
 
FXList ReplenishFXList
 
ObjectStatus ReplenishStatii
 
Boolean ReplenishHordeMembersOnly
 
Upgrades TriggeredBy
 
Upgrades ConflictsWith
 
Boolean RequiresAllTriggers
 
Boolean RequiresAllConflictingTriggers
 
AnimAndDuration CustomAnimAndDuration
 
Boolean Permanent
 

Detailed Description

Behavior = ReplenishUnitsBehavior ModuleTag_TheReplenishUnitsBehavior

; L01F3A228:   
StartsActive = No; SUB_L006D3400:Boolean //Requires upgrade to turn on
ReplenishDelay = 5000; SUB_L00E6CB10:Unsigned Integer Value //How often can I replenish a unit?
ReplenishRadius = 120.0; SUB_L006D46C0:Float Point Value //Only replenish needed units if they are this close.
NoReplenishIfEnemyWithinRadius = 200.0f; SUB_L006D46C0:Float Point Value //If enemies are this close, don't replenish!
ReplenishFXList = FX_SpellHealUnitHealBuff; SUB_L00E6BD90:FXList //Triggers an FXList when unit is replenished (sound and/or particle system)
ReplenishStatii = RIDERLESS; SUB_L00C118B0: BitStatus //Only objects with this status can get replenished.
ReplenishHordeMembersOnly = Yes; SUB_L006D3400:Boolean //Only replenish these horde's members?
;L01E97D40:    
TriggeredBy = Upgrade_ElvenGift Upgrade_RohanFireArrows; L00BE9600: List of Upgrades //Must have these upgrades
ConflictsWith = Upgrade_TheodenKingsFavor Upgrade_TheodenLeadership; L00BE9600: List of Upgrades //May not have these upgrades
RequiresAllTriggers = Yes; SUB_L006D3400:Boolean //All "TriggeredBy" Upgrades required! (meaning that if only one is present the module is not active)
RequiresAllConflictingTriggers = Yes; SUB_L006D3400:Boolean //All "ConflictsWith" Upgrades required! (meaning that if only one is present the module is not 'disabled')
CustomAnimAndDuration = AnimState : USER_3 AnimTime : 0 TriggerTime : 0; L010ED8E0: Animation State - Time - Delay // Animtime:0 = set flag forever
Permanent = Yes; SUB_L006D3400:Boolean //For ever... and ever... and ever, even if the upgrades are lost...

End

Member Data Documentation

◆ StartsActive

Boolean StartsActive

Requires upgrade to turn on

◆ ReplenishDelay

UnsignedInteger ReplenishDelay

How often can I replenish a unit?

◆ ReplenishRadius

FloatingPoint ReplenishRadius

Only replenish needed units if they are this close.

◆ NoReplenishIfEnemyWithinRadius

FloatingPoint NoReplenishIfEnemyWithinRadius

If enemies are this close, don't replenish!

◆ ReplenishFXList

FXList ReplenishFXList

Triggers an FXList when unit is replenished (sound and/or particle system)

◆ ReplenishStatii

ObjectStatus ReplenishStatii

Only objects with this status can get replenished.

◆ ReplenishHordeMembersOnly

Boolean ReplenishHordeMembersOnly

Only replenish these horde's members?

◆ TriggeredBy

Upgrades TriggeredBy

List of Upgrades
Must have these upgrades

◆ ConflictsWith

Upgrades ConflictsWith

List of Upgrades
May not have these upgrades

◆ RequiresAllTriggers

Boolean RequiresAllTriggers

All "TriggeredBy" Upgrades required! (meaning that if only one is present the module is not active)

◆ RequiresAllConflictingTriggers

Boolean RequiresAllConflictingTriggers

All "ConflictsWith" Upgrades required! (meaning that if only one is present the module is not 'disabled')

◆ CustomAnimAndDuration

AnimAndDuration CustomAnimAndDuration

Animation State - Time - Delay
Animtime:0 = set flag forever

◆ Permanent

Boolean Permanent

For ever... and ever... and ever, even if the upgrades are lost...