Scripts

TR_m7_PauperAndPrince_sc

TR_Mainland.esm
Variables 8
Local Variables
TR_Map
control
controlQ
T_Local_NPC
T_Local_NoLore
NoLore
teleport
timer
Source
1Begin TR_m7_PauperAndPrince_sc 2 3short TR_Map 4short control 5short controlQ 6short T_Local_NPC 7short T_Local_NoLore 8short NoLore 9short teleport 10 11float timer 12 13if ( OnDeath ) 14 if ( getjournalindex tr_m7_hl_pauperandprince >= 10 ) 15 if ( getjournalindex tr_m7_hl_pauperandprince < 100 ) 16 journal tr_m7_hl_pauperandprince 110 17 endif 18 endif 19endif 20 21if ( control == -1 ) 22 return 23endif 24 25if ( getjournalindex tr_m7_hl_pauperandprince == 60 ) 26 if ( teleport == 1 ) 27 if ( control == 0 ) 28 set control to 1 29 set timer to 0 30 cast "almsivi intervention" player 31 return 32 endif 33 34 if ( MenuMode == 1 ) 35 return 36 endif 37 38 set timer to ( timer + GetSecondsPassed ) 39 if ( timer >= 2 ) 40 set control to -1 41 Positioncell 4177 4965 15680 19860 "Hlerynhul, Temple" ; TR_m7_MARK_HL_Bolor 42 AiWander 0 0 0 0 0 0 0 0 0 0 0 0 43 set T_Local_NoLore to 1 44 return 45 endif 46 endif 47endif 48 49set TR_Map to 7 50 51End