Scripts

TR_m4_NPC_HH_RedoranWorker

TR_Mainland.esm
Variables 6
Local Variables
TR_Map
control
controlQ
T_Local_NPC
NoLore
TR_m4_HH_RedoranWorker
Source
1Begin TR_m4_NPC_HH_RedoranWorker 2; Script for the Redoran workers in Omaynis. Will only be enabled during certain stages of the Omaynis Inn quest. 3 4short TR_Map 5short control 6short controlQ 7short T_Local_NPC 8short NoLore 9short TR_m4_HH_RedoranWorker ; identifier 10 11if ( MenuMode ) 12 return 13endif 14 15if ( TR_m4_Oma_InnStage != 1 ) 16 if ( GetHealth >= 1 ) 17 if ( GetDisabled == 0 ) 18 Disable 19 endif 20 endif 21elseif ( TR_m4_HH_WorkerDisable == 1 ) 22 if ( GetDisabled == 0 ) 23 Disable 24 endif 25elseif ( GetDisabled ) 26 Enable 27endif 28 29if ( OnDeath ) 30 ; count the number of dead workers 31 Set TR_m4_HH_WorkerDeathCounter to ( TR_m4_HH_WorkerDeathCounter + 1 ) 32 if ( TR_m4_HH_WorkerDeathCounter == 4 ) 33 ; all dead 34 ModPCFacRep -3 "Redoran" 35 Journal TR_m4_HH_AND_OmaynisInn2 70 36 endif 37endif 38 39if ( TR_Map > 0 ) 40 return 41endif 42 43set TR_Map to 4 44 45End