Scripts

TR_m4_menaan_int_8_script02

TR_Mainland.esm
Variables 1
Local Variables
doOnce
Source
1begin TR_m4_menaan_int_8_script02 2 3;this script activates a trap 4;the player is hit by an electric shock when they pick up a key 5 6short doOnce 7 8if ( MenuMode == 1 ) 9 return 10endif 11 12if ( OnActivate == 1 ) 13 if ( doOnce == 0 ) 14 "TR_m4_menaan_int8_trap"->Cast "shocking touch" player ;this spell does the damage 15 "TR_m4_menaan_int8_trap"->ExplodeSpell "TR_m4_menaan_int8_shock" ;this spell does no damage, but makes for better visuals 16 activate 17 set doOnce to 1 18 endif 19endif 20 21if ( OnActivate == 1 ) 22 if ( doOnce == 1 ) 23 Activate 24 endif 25endif 26 27end