Scripts

TR_m2_q_27_LijarraSCN

TR_Mainland.esm
Variables 7
Local Variables
NoLore
doOnce
forcegreet
T_Local_NPC
T_Local_NoLore
TR_Map
T_Local_Khajiit
Source
1begin TR_m2_q_27_LijarraSCN 2 3; quest NPC for quest TR_m2_FG_Amiro3. 4 5short NoLore 6short doOnce 7short forcegreet 8short T_Local_NPC 9short T_Local_NoLore 10short TR_Map 11short T_Local_Khajiit 12; forcegreet is a variable that should be set to 1 or 2 on particular occasions, and set back to 0 from dialogue 13; immediately after. 14; forcegreet should be set to 1 if you talk to Lijarra without having talked to Heel-Kur before. As a 15; consequence, Heel-Kur will forcegreet you. 16; forcegreet should be set to 2 if you try to force Heel-Kur back into slavery. Lijarra will forcegreet and 17; attack then. 18 19if ( TR_Map != 2 ) 20 set TR_Map to 2 21 set T_Local_Khajiit to 1 22endif 23 24if ( doOnce == 0 ) ; disable the slaves until the quest has started. 25 if ( getJournalIndex TR_m2_FG_Amiro3 == 0 ) 26 disable 27 TR_m2_q_27_slavekeystatic->disable 28 TR_m2_q_27_SBheelkur->disable 29 TR_m2_q_27_SBlijarra->disable 30 TR_m2_q_27_heelkur->disable 31 endif 32 set doOnce to 1 33endif 34 35if ( onDeath == 1 ) ; killing her convinces Heel-Kur to follow you... 36 if ( getDeadCount TR_m2_q_27_heelkur == 0 ) 37 journal TR_m2_FG_Amiro3 200 38 TR_m2_q_27_heelkur->AIFollow Player 0 0 0 0 0 39 endif 40endif 41 42; the rest of this script handles the forcegreetings: 43 44if ( MenuMode == 1 ) ; don't run forcegreetings in menumode 45 return 46endif 47 48if ( forcegreet == 0 ) 49 return 50endif 51 52if ( forcegreet == 1 ) 53 TR_m2_q_27_heelkur->Forcegreeting 54 return 55else 56 Forcegreeting 57 return 58endif 59 60end