Scripts

TR_m4_TJ_Guardian_Kha_sc

TR_Mainland.esm
Variables 1
Local Variables
doOnce
Source
1Begin TR_m4_TJ_Guardian_Kha_sc 2 3short doOnce 4 5if ( MenuMode ) 6 Return 7endif 8 9if ( doOnce == 2 ) 10 Return 11elseif ( doOnce == 0 ) 12 Disable 13 set doOnce to 1 14 Return 15elseif ( doOnce == 1 ) 16 if ( CellChanged ) 17 if ( GetDeadCount TR_m4_TJ_Guardian > 0 ) 18 Enable 19 set doOnce to 2 20 endif 21 endif 22elseif ( doOnce == 3 ) 23 if ( CellChanged ) 24 set doOnce to 2 25 Disable 26 endif 27endif 28 29End