Scripts

TR_m4_NPC_LlorissaFaali

TR_Mainland.esm
Variables 9
Local Variables
TR_Map
control
controlQ
AizuhrSuur
NoLore
doOnce
TeleportAway
T_Local_NPC
T_Local_NoLore
Source
1Begin TR_m4_NPC_LlorissaFaali 2 3; Script on NPC "TR_m4_Llorissa Faali" for quest "TR_m4_wil_Emmurbalpitu". 4 5short TR_Map 6short control 7short controlQ 8short AizuhrSuur 9short NoLore 10short doOnce 11short TeleportAway 12short T_Local_NPC 13short T_Local_NoLore 14 15if ( OnDeath == 1 ) 16 Journal "TR_m4_wil_Emmurbalpitu" 90 17endif 18 19if ( GetJournalIndex "TR_m4_wil_Emmurbalpitu" >= 40 ) 20 if ( GetJournalIndex "TR_m4_wil_Emmurbalpitu" < 60 ) 21 if ( OnDeath == 1 ) 22 Journal "TR_m4_wil_Emmurbalpitu" 60 23 endif 24 endif 25endif 26 27if ( GetJournalIndex "TR_m4_wil_Emmurbalpitu" >= 120 ) 28 if ( doOnce == 0 ) 29 if ( TeleportAway == 1 ) 30 if ( MenuMode == 1 ) 31 return 32 endif 33 PlaySound "mysticism hit" 34 PlaceAtMe "T_Glb_Var_SummonFX" 1 0 0 35 PositionCell 5355.14 3325.52 769 18000 "Almas Thirr, Monastery of St. Veloth" 36 AIWander 0 0 0 0 60 20 10 10 0 0 0 0 37 SetAlarm 100 38 set TeleportAway to 0 39 set doOnce to 1 40 endif 41 42 if ( CellChanged == 1 ) 43 PositionCell 5355.14 3325.52 769 18000 "Almas Thirr, Monastery of St. Veloth" 44 AIWander 0 0 0 0 60 20 10 10 0 0 0 0 45 SetAlarm 100 46 set doOnce to 1 47 endif 48 endif 49endif 50 51if ( AizuhrSuur == 0 ) 52 if ( GetJournalIndex "TR_m4_wil_Emmurbalpitu" == 110 ) 53 if ( GetDistance player <= 1200 ) 54 set AizuhrSuur to 1 55 PlaySound "mysticism hit" 56 PlaceAtMe "TR_m4_cr_Aizuhr-Suur2" 1 64 1 57 ;startcombat "TR_m4_cr_Aizuhr-Suur2" ; doesn 't work, no reference, but there's a script on the Daedra so should be fine 58 endif 59 endif 60endif 61 62if ( TR_Map == 3 ) 63 return 64endif 65 66set TR_Map to 3 67 68End