Jump to content

Toggle effect by keypress - How?


NaimaR

Recommended Posts

Hi all.

 

I'm looking for a way to toggle an effect* via a keypress.

I've downloaded and installed NVSE, as I heard it was required to support custom keypress actions, but I'm not sure where to go from here.

Any assistance would be appreciated. :)

 

(*Specifically, I want to create a perk which gives you the ability to heal 10 health per second, at the cost of 5 rads per second, as a toggle.)

Link to comment
Share on other sites

Hi all.

 

I'm looking for a way to toggle an effect* via a keypress.

I've downloaded and installed NVSE, as I heard it was required to support custom keypress actions, but I'm not sure where to go from here.

Any assistance would be appreciated. :)

 

(*Specifically, I want to create a perk which gives you the ability to heal 10 health per second, at the cost of 5 rads per second, as a toggle.)

 

there is a good tutorial

http://www.cipscis.com/fallout/tutorials/detecting_keypresses.aspx

Link to comment
Share on other sites

Hm, that looks quite a bit more complicated than I thought it would be.

Well, thanks anyway.

 

Edit:

if GetKeyPress == XX (you'll have to find the code of the key in question)

do whatever you want it to do

endif

 

Because I'm such a nice guy, have a cup of tea and a biscuit :thumbsup:

Edited by Demeggy
Link to comment
Share on other sites

Edit:

if GetKeyPress == XX (you'll have to find the code of the key in question)

do whatever you want it to do

endif

 

Because I'm such a nice guy, have a cup of tea and a biscuit :thumbsup:

Wow. Well, that is quite simple afterall. I should be able to do something with that.

Thank you so much. :)

 

I would have PM'd you instead of bumping the thread, but you have PM's disabled, apparently?

Link to comment
Share on other sites

Edit:

if GetKeyPress == XX (you'll have to find the code of the key in question)

do whatever you want it to do

endif

 

Because I'm such a nice guy, have a cup of tea and a biscuit :thumbsup:

Wow. Well, that is quite simple afterall. I should be able to do something with that.

Thank you so much. :)

 

I would have PM'd you instead of bumping the thread, but you have PM's disabled, apparently?

 

No probs, I guess I do? I don't come on that often these days, just when I'm feeling charitable or needy, lol

Link to comment
Share on other sites

  • Recently Browsing   0 members

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