Jump to content

Lowhealth=High hits script


Recommended Posts

Hello.

 

I've been modding oblivion for quite some time but i've never really managed to get my head around scripting. I understand basic scripting techniques but putting it together I'm no good at.

 

I'm trying to create a script for a weapon so that once the players health falls below 25 points they're able to hit very high.

 

Here is the script so far:

 

scn WeaponScript

 

Begin GameMode

if player.getav health <=25

player.setav strength 255

player.setav blade 255

else

endif

end

 

But once my health regenerates past 25 poitns the strength and blade value stay the same, what can I do to fix this?

Link to comment
Share on other sites

Try adding a spell to the player that fortifies their strength and blade skills, instead of directly modifying them. Then make it so that the spell is removed from the player when their health is higher.

 

Begin GameMode

if player.getav health <=25

player.addspell SomeAbility

else

player.removespell SomeAbility

endif

end

 

I'm not sure about how well the gamemode blocks would work for this, you could experiment with begin OnHit.

Link to comment
Share on other sites

Try adding a spell to the player that fortifies their strength and blade skills, instead of directly modifying them. Then make it so that the spell is removed from the player when their health is higher.

 

Begin GameMode

if player.getav health <=25

player.addspell SomeAbility

else

player.removespell SomeAbility

endif

end

 

I'm not sure about how well the gamemode blocks would work for this, you could experiment with begin OnHit.

 

Hi,

 

Thanks for replying. Sorry for the late reply :biggrin: I've got the script working now and it's running fine. Thanks for the help guys.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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