Scripts

TR_m7_TheStinkyCurse_Ring_sc

TR_Mainland.esm
Variables 2
Local Variables
OnPCEquip
doonce
Source
1Begin TR_m7_TheStinkyCurse_Ring_sc 2 3short OnPCEquip 4short doonce 5 6if ( doonce == 1 ) 7 return 8endif 9 10if ( Player->GetItemCount "TR_m7_q_TheStinkyCurse_Ring" == 0 ) 11 return 12endif 13 14if ( GetDeadCount "TR_m7_q_BnwG_stinky" > 0 ) 15 set doonce to 1 16 return 17endif 18 19if ( OnPCEquip == 1 ) 20 if ( Player->GetDistance, "TR_m7_q_Ocrulun" >= 2500 ) 21 "TR_m7_q_BnwG_stinky"->Enable 22 if ( GetDeadCount, "TR_m7_q_BnwG_stinky" < 1 ) 23 if ( GetDeadCount, "TR_m3_q_Bazark" < 1 ) 24 "TR_m7_q_Ocrulun"->SetHealth 0 25 set "TR_m3_q_Bazark".control to 1 26 endif 27 endif 28 else 29 "TR_m7_q_BnwG_stinky"->Enable 30 "TR_m7_q_BnwG_stinky"->StartCombat "TR_m7_q_Ocrulun" 31 "TR_m7_q_Ocrulun"->StartCombat "TR_m7_q_BnwG_stinky" 32 endif 33 set doonce to 1 34endif 35 36End