Jump to content

Want to make a small edit on a mod's script and not sure how


jwells0504

Recommended Posts

Hey Guys

So I've been tinkering with this mods script, more perks trying to make the perk cancerous growth a lot slower with timers. The original perk allowed a broken limb to be healed immediately and fully recovered in less than a min. Way to overpowered and quite game breaking. So I've made some changes to the script and so far I've made the recovery a lot slower but unfortunately my character won't limp even though according to his pipboy his leg is practically at zero health. This is the script I've got so far. Just made some changes using the script technique used by the solar powered script. What I'm trying to do now is add a timer. Something that tells the script to do no healing for at least a few hours in game before it starts to healing process. I've tried figuring this out myself but the more I read the more I realize I'm in over my head :). So any help is much appreciated. Thanks guys

scn DreePerkCancerousGrowScript

float MicroRegen

begin ScriptEffectUpdate

;****** If Player's main health is below 100%
if (GetHealthPercentage < 1)
Set MicroRegen to ScriptEffectElapsedSeconds / 200
Player.RestoreAV Health MicroRegen
endif

; ***** If Player's head condition is below 100%
if (GetAV PerceptionCondition < 100)
Set MicroRegen to ScriptEffectElapsedSeconds / 200
Player.RestoreAV PerceptionCondition MicroRegen
endif

; ***** If Player's chest condition is below 100%
if (GetAV EnduranceCondition < 100)
Set MicroRegen to ScriptEffectElapsedSeconds / 200
Player.RestoreAV EnduranceCondition MicroRegen
endif

; ***** If Player's right leg condition is below 100%
if (GetAV RightMobilityCondition < 100)
Set MicroRegen to ScriptEffectElapsedSeconds / 200
Player.RestoreAV RightMobilityCondition MicroRegen
endif

; ***** If Player's left leg condition is below 100%
if (GetAV LeftMobilityCondition < 100)
Set MicroRegen to ScriptEffectElapsedSeconds / 200
Player.RestoreAV LeftMobilityCondition MicroRegen
endif

; ***** If Player's right arm condition is below 100%
if (GetAV RightAttackCondition < 100)
Set MicroRegen to ScriptEffectElapsedSeconds / 200
Player.RestoreAV RightAttackCondition MicroRegen
endif

; ***** If Player's left arm condition is below 100%
if (GetAV LeftAttackCondition < 100)
Set MicroRegen to ScriptEffectElapsedSeconds / 200
Player.RestoreAV LeftAttackCondition MicroRegen
endif

end

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...