Jump to content

Scripting help needed


northfield

Recommended Posts

Hi everyone,

 

Ok I'll try and post this request here as well. I posted it on the FO3 forum but there isn't much life there at the moment ;)

 

I'm trying to add some training equipment for workout and fitness. The idea is that the player should get +1 strength and +30 carry weight at a one-time cost of hunger, dehydration and sleep for a period of 24m. So far all menus turn up correctly in-game, but when I activate nothing happens - the effects are not added to the player. Do I need other things than the script, the "spell" and the activator?

 

Can someone please confirm that the script is functional and/or point me in the right direction. Thanks.

 

scn 01DumbellRackSCRIPT

short hitbutton

begin onactivate
showmessage 01DumbellRackMessage1
end

begin gamemode
       set HitButton to GetButtonPressed

       if ( HitButton >0 )

               if HitButton == 1
CastImmediateOnSelf 01RRRDumbellRackEffect
showmessage 01DumbellRackMessage2
endif

if hitbutton == 2
endif

endif
end

Link to comment
Share on other sites

  • Recently Browsing   0 members

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