Scripts

TR_m4_NPC_SaylenusPatrol

TR_Mainland.esm
Variables 9
Local Variables
disableOnce
attackOnce
TR_SaylenusPatrolman
NoLore
control
controlQ
TR_Map
T_Local_NPC
T_Local_NoLore
Source
1Begin TR_m4_NPC_SaylenusPatrol 2 3short disableOnce 4short attackOnce 5short TR_SaylenusPatrolman 6short NoLore 7short control 8short controlQ 9short TR_Map 10short T_Local_NPC 11short T_Local_NoLore 12 13if ( MenuMode ) 14 return 15endif 16 17if ( OnDeath ) 18 set "TR_m4_RR_HlaaluPatrol_1".controlQ to 1 19 set "TR_m4_RR_HlaaluPatrol_2".controlQ to 1 20endif 21 22if ( CellChanged ) 23 if ( controlQ == 1 ) 24 return 25 elseif ( GetJournalIndex "TR_m4_wil_SkeletonWizardC" >= 100 ) 26 if ( GetDisabled == 0 ) 27 disable 28 set TR_m4_SkelWiz_HlaaluEnabled to 0 29 endif 30 return 31 elseif ( GetJournalIndex "TR_m4_wil_SkeletonWizard" >= 20 ) 32 if ( GetDisabled == 0 ) 33 disable 34 set TR_m4_SkelWiz_HlaaluEnabled to 0 35 endif 36 return 37 elseif ( GetJournalIndex "TR_m4_wil_SkeletonWizard" >= 5 ) 38 if ( getDisabled ) 39 enable 40 set TR_m4_SkelWiz_HlaaluEnabled to 1 41 endif 42 elseif ( GetDisabled == 0 ) 43 disable 44 set TR_m4_SkelWiz_HlaaluEnabled to 0 45 else 46 return 47 endif 48endif 49 50if ( TR_Map ) 51 return 52endif 53 54set TR_Map to 4 55 56end