Scripts

TR_m7_Rasbanyi_sc

TR_Mainland.esm
Variables 4
Local Variables
attackstate
OnPCHitMe
control
timer
Source
1Begin TR_m7_Rasbanyi_sc 2 3float timer 4short attackstate 5short OnPCHitMe 6short control 7 8if ( OnDeath ) 9 ModPCCrimeLevel 1000 10 return 11endif 12 13if ( OnPCHitMe ) 14 if ( control == 0 ) 15 set control to 1 16 ModPCCrimeLevel 40 17 endif 18 set attackstate to 1 19 set OnPCHitMe to 0 20endif 21 22if ( control == 1 ) 23 if ( GetPCCrimeLevel == 0 ) 24 set control to 0 25 endif 26endif 27 28 29if ( attackstate == 1 ) 30 StartCombat player 31 set timer to ( timer + GetSecondsPassed ) 32 if ( timer >= 1 ) 33 set timer to 0 34 "TR_m7_K'Laraaj"->StartCombat Player 35 "TR_m7_Valeru Surendil"->StartCombat Player 36 set attackstate to 0 37 endif 38endif 39 40End