Jump to content

Walk/Run AP useage


KTcraft

Recommended Posts

  • 2 weeks later...

Here's something that will get you to where you want to go:

 

1). Create a perk (call it anything you want; For this example, we'll call it "Forced Walking"). We'll get back to this perk later.

 

2). Create an effect script that is something to the effect of:

scn RunningDamagesAP

Begin ScriptEffectUpdate

float HowMuchAP

set HowMuchAP to player.GetAV ActionPoints

if player.isrunning  ; If the player is running
 if HowMuchAP > 0 ; if the player has more than 1 AP
 player.damageav actionpoints 1 ; Temporarily reduce their AP amount by 1 point
 endif
endif

End

3). Make a new base effect and attach the script to that base effect.

 

4). Make a new ability and use that base effect in it.

 

5). Attach the ability to the perk that was made earlier.

 

6). Give your player the perk.

 

I know that this isn't exactly what you had wanted (you want the character to also be forced to walk in low AP situations). However, this was the most that I could think of in about 10 minutes time. I'm not certain how to achieve the other part but maybe someone else can assist you with that. Good luck with your mod.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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