Scripts

TR_m2_KaishiScript

TR_Mainland.esm
Variables 8
Local Variables
TR_Map
control
controlQ
KaishiWander
T_Local_NPC
T_Local_Khajiit
NoLore
doonce
Source
1Begin TR_m2_KaishiScript 2 3short TR_Map 4short control 5short controlQ ;used to determine whether she gives the player her lamp or not 6short KaishiWander 7short T_Local_NPC 8short T_Local_Khajiit 9short NoLore 10short doonce 11 12if ( doonce == 0 ) 13 if ( T_Local_Khajiit == 0 ) 14 set T_Local_Khajiit to 1 15 set TR_Map to 2 16 set doonce to 1 17 endif 18endif 19 20if ( ondeath == 1 ) 21 if ( Getjournalindex TR_M2_MG_Areanne2 == 60 ) 22 Journal TR_M2_MG_Areanne2 65 23 endif 24endif 25 26if ( GetJournalIndex TR_M2_MG_Areanne2 >= 65 ) 27 return 28endif 29 30if ( GetPCCell "Ebunammidan, Outer Shrine" == 1 ) 31 if ( GetCurrentAIPackage == 3 ) 32 if ( GetPos X > 3000 ) 33 if (GetPos Y > 3250 ) 34 Set KaishiWander to -1 35 ForceGreeting 36 endif 37 endif 38 endif 39endif 40 41End