Scripts

TR_m1_IL_Darnellscript

TR_Mainland.esm
Variables 7
Local Variables
TR_Map
control
TR_m1_IL_Darnelltalked2
doonce
controlQ
T_Local_NPC
NoLore
Source
1Begin TR_m1_IL_Darnellscript 2;this script is for both governing Darnell's dialogue topics and making him forcegreet at various points of the questline. 3 4short TR_Map 5short control 6short TR_m1_IL_Darnelltalked2 7short doonce 8short controlQ 9short T_Local_NPC 10short NoLore 11 12if ( TR_map == 0 ) 13 set TR_Map to 1 14endif 15 16if ( getjournalindex "TR_m1_IL_Pahunsabi" > 0 ) 17 if ( getjournalindex "TR_m1_IL_Pahunsabi" < 110 ) 18 if ( ondeath == 1 ) 19 journal TR_m1_IL_Darnelldied 5 20 endif 21 endif 22endif 23 24if ( menumode ) 25 return 26endif 27 28if ( getjournalindex "TR_m1_IL_Nivalis" > 0 ) 29 if ( control == 0 ) 30 if ( getinterior == 0 ) 31 if ( getdistance player < 325 ) 32 if ( player->getitemcount "TR_m1_bk_IL_Tiberianote" >= 1 ) 33 forcegreeting 34 set control to 1 35 endif 36 endif 37 endif 38 endif 39endif 40 41if ( getjournalindex "TR_m1_IL_Pahunsabi" > 0 ) 42 if ( GetPCCell "Sunad Mora Region" == 1 ) 43 if ( control <= 1 ) ; <= 1 instead of = because the player can technically avoid the forcegreeting before it 44 if ( getdistance player < 400 ) 45 forcegreeting 46 set control to 2 47 endif 48 endif 49 endif 50endif 51 52if ( getjournalindex "TR_m1_IL_Pahunsabi" == 20 ) 53 if ( player->getitemcount TR_m1_IL_Vyciusletter >= 1 ) 54 if ( TR_m1_IL_Darnelltalked2 == 0 ) 55 set TR_m1_IL_Darnelltalked2 to 1 56 forcegreeting 57 endif 58 endif 59endif 60 61End