Scripts

TR_m3_NPC_RoaDyr7_Summoner

TR_Mainland.esm
Variables 5
Local Variables
TR_Map
control
controlQ
T_Local_NPC
NoLore
Source
1Begin TR_m3_NPC_RoaDyr7_Summoner 2 3short TR_Map 4short control 5short controlQ 6short T_Local_NPC 7short NoLore 8 9if ( MenuMode ) 10 return 11endif 12 13if ( OnDeath ) 14 set TR_m3_HI_RoaDyr7_rip to 1 15 if ( GetJournalIndex TR_m3_HI_RoaDyr7 >= 10 ) 16 if ( GetJournalIndex TR_m3_HI_RoaDyr7 < 100 ) 17 Journal TR_m3_HI_RoaDyr7 150 18 return 19 endif 20 endif 21endif 22 23if ( GetJournalIndex TR_m3_HI_RoaDyr7 == 30 ) 24 if ( controlQ == 0 ) 25 set controlQ to 1 26 AiTravel -2066 2534 -255 ; TR_m3_MARK_Rathvam 27 elseif ( controlQ == 1 ) 28 if ( GetAIPackageDone ) 29 AiWander 0 0 0 30 Cast TR_m3_HI_RoaDyr7_summon player 31 set controlQ to 2 32 endif 33 elseif ( controlQ == 2 ) 34 if ( GetSpellEffects TR_m3_HI_RoaDyr7_summon ) 35 set controlQ to 3 36 endif 37 elseif ( controlQ == 5 ) 38 Cast TR_m3_HI_RoaDyr7_summon player 39 set controlQ to 6 40 elseif ( controlQ == 6 ) 41 if ( GetSpellEffects TR_m3_HI_RoaDyr7_summon ) 42 set controlQ to 7 43 endif 44 elseif ( controlQ == 10 ) 45 Cast TR_m3_HI_RoaDyr7_summon player 46 set controlQ to 11 47 elseif ( controlQ == 11 ) 48 if ( GetSpellEffects TR_m3_HI_RoaDyr7_summon ) 49 set controlQ to 12 50 endif 51 endif 52endif 53 54if ( TR_Map ) 55 return 56endif 57 58set TR_Map to 3 59 60End