Scripts

TR_m3_OE_MG_DaedricStaff_script

TR_Mainland.esm
Variables 1
Local Variables
doonce
Source
1begin TR_m3_OE_MG_DaedricStaff_script 2 3short doonce 4 5if ( MenuMode ) 6 return 7endif 8 9if ( OnActivate ) 10else 11 return 12endif 13 14 if ( Player->GetSpellEffects, "trap_shock_killer" ) 15 MessageBox, "The staff still sparks under your touch." 16 elseif ( doonce == 1 ) 17 Activate 18 Player->StartScript, "TR_m3_OE_MG_DaedricStaff_remove" 19 else 20 if ( doonce == 0 ) 21 if ( player->GetSecurity > 50 ) 22 MessageBox, "Nudging the staff carefully before trying to lift it, you sense that the weight balance is off." 23 set doonce to -1 24 return 25 endif 26 endif 27 Cast, "trap_shock_killer", player 28 set doonce to 1 29 endif 30 31end