Scripts

TR_m2_q_28_Miros_SCN

TR_Mainland.esm
Variables 5
Local Variables
TR_Map
control
controlQ
T_Local_NPC
NoLore
Source
1Begin TR_m2_q_28_Miros_SCN 2; Script on NPC TR_m2_Miros for the "easter egg" in quest TR_m2_FG_Leonos2. 3; Makes sure that if you raise Miros's intelligence to (at least) 60 after giving him the 4; spellbook, he reads the spellbook and thanks you for the help. 5 6short TR_Map 7short control 8short controlQ 9short T_Local_NPC 10short NoLore 11; controlQ becomes 1 when you give him the spellbook. 12; controlQ becomes 3 when you raise his intelligence to 60 or more. 13; controlQ becomes 4 when he has thanked you. 14 15if ( controlQ == 1 ) 16 if ( getIntelligence >= 60 ) 17 if ( getItemCount T_Bk_AdventuresEndTR >= 1 ) ; if you steal the book, raising his int won't help him 18 set controlQ to 3 19 forcegreeting ; it's a greeting 1 20 endif 21 endif 22endif 23 24if ( TR_Map == 2 ) 25 return 26endif 27 28set TR_Map to 2 29 30End