Jump to content

Need Scripting Help OBSE


apocalypse1138

Recommended Posts

So poking around trying to re-break into the world of scripting, and of course running into a wall within the first five minutes. :P

Trying to create a script for a shield where if the block key is held with it equipped, you will gain 100 to spellreflectchance. Took the example given and ended up with this mass failure of a script, but I hope it conveys my general idea...

 

scn MirrorShieldScirpt

float origvalue

float origvalue2

float modvalue

float curkey

 

begin gamemode

if ( curkey && iscontrolpressed curkey)

return

else

setcurkey to 0

endif

 

if ( iscontrolpressed 6 )

set origvalue to player.getactorvalue spellreflectchance

set modvalue to origvalue + 100

set curkey to 6

endif

end

Link to comment
Share on other sites

  • Recently Browsing   0 members

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