Scripts

TR_m7_Ns_CasinoPoisonWorker

TR_Mainland.esm
Variables 6
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
doonce
Source
1Begin TR_m7_Ns_CasinoPoisonWorker 2 3short TR_Map 4short control 5short controlQ 6short NoLore 7short T_Local_NPC 8 9short doonce 10 11; if you use an NPC with this script in your quest 12; and you require to check their death 13; make a separate script and a global called TR_m7_NAME_Dead 14; set the global to 1 in OnDeath and in TR_m7_JNS_PoisonDeploySc 15; use the global instead of GetDeadCount or Dead filter 16; see Vurvyn Othren's script for reference 17 18if ( GetJournalIndex TR_m7_JNS_TheBoss_BreathingOut == 100 ) 19 if ( GetDisabled == 0 ) 20 disable 21 endif 22elseif ( GetJournalIndex TR_m7_JNS_TheBoss_BreathingOutp >= 30 ) 23 if ( doonce < 2 ) 24 set doonce to 2 25 sethealth 0 26 endif 27elseif ( GetJournalIndex TR_m7_JNS_TheBoss_BreathingOutp >= 20 ) 28 if ( doonce < 1 ) 29 set doonce to 1 30 setfight 100 31 setflee 100 32 startcombat player 33 endif 34endif 35 36if ( TR_Map ) 37 return 38endif 39 40set TR_Map to 7 41 42End