Scripts

TR_m2_q_27_AmiroSCN

TR_Mainland.esm
Variables 13
Local Variables
TR_Map
control
controlQ
T_Local_NPC
NoLore
T_Local_NoLore
hozgub
bandits
coverblown
falsetrail
alchemy
placeOnce
disappearOnce
Source
1Begin TR_m2_q_27_AmiroSCN 2 3short TR_Map 4short control 5short controlQ 6short T_Local_NPC 7short NoLore 8short T_Local_NoLore 9 10; TR_m2_FG_Amiro1 quest variables: 11short hozgub 12; hozgub == 0 means the player hasn't found Hozgub yet. 13; hozgub == 1 means the player has found but not questioned Hozgub yet. 14; hozgub == 2 means the player has questioned Hozgub but not told Amiro yet. 15; hozgub == 3 means the player has told Amiro about Hozgub's resignation already. 16short bandits 17; bandits == 0 means the player hasn't yet informed Amiro about the untimely demise of the Seranassid bandits. 18; bandits == 1 means the player has informed Amiro about that already. 19; Note that variables like this can be set from other scripts (including dialogue result scripts) provided 20; that the player has already has Amiro recorded in his savegame (that is, has already visited the Akamora 21; Fighters Guild). The latter premise is satisfied in this case because Amiro is the questgiver. 22; The above variables hozgub and bandits are used to condition dialogue entries. 23; hozgub should be set simultaneously with the identically named variable in 24; TR_m3_q_27_HozgubSCN. 25 26; TR_m2_FG_Amiro3 quest variables: 27short coverblown 28; coverblown == 0 means the player didn't talk to any guards or overseers about escaped slaves. 29; coverblown == 1 means he did. 30short falsetrail 31; falsetrail == 1 means the player has distracted the guard by laying a false trail (dropping slave key in the Indaren-Veri egg mine). 32; falsetrail == 0 means he didn't. 33short alchemy 34; alchemy == 1 means the player used alchemy to free the slaves. 35; alchemy == 0 means he didn't. 36short placeOnce 37; placeOnce becomes 1 when the quest starts. 38; placeOnce becomes 2 when the door to Miner's Residence has been unlocked and the guard has been moved 39; to the crossing. 40; placeOnce becomes 3 when the player has returned to Amiro and talked to him about the quest. 41; placeOnce becomes 4 when post-quest cleanup has been done. 42short disappearOnce 43; disappearOnce becomes 1 when Amiro is to disappear (due to getting fired when the player fails too hard), 44; and becomes 2 when he disappears. 45 46if ( placeOnce == 0 ) ; slaves hide in Miner's Residence 47 if ( getJournalIndex TR_m2_FG_Amiro3 == 10 ) 48 TR_m2_q_27_Amiro1door->unlock 49 TR_m2_q_27_Amiro2door->unlock 50 TR_m2_q_27_mineguard_f->positioncell 260122 -100793 2581 0 "Mephalan Vales" ;TR_m2_MARK_q_27_mineguard_f 51 TR_m2_q_27_Lijarra->enable 52 TR_m2_q_27_heelkur->enable 53 TR_m2_q_27_SBlijarra->enable 54 TR_m2_q_27_SBheelkur->enable 55 TR_m2_q_27_slavekeystatic->enable 56 set placeOnce to 1 57 endif 58elseif ( placeOnce == 3 ) ; after-quest cleanup 59 TR_m2_q_27_mineguard_f->positioncell 266542 -89784 3072 0 "Mephalan Vales" ;TR_m2_MARK_q_27_mineguard_f 60 TR_m2_q_27_SBheelkur->disable 61 TR_m2_q_27_SBlijarra->disable 62 TR_m2_q_27_slavekeystatic->disable 63 if ( GetDeadCount TR_m2_q_27_Lijarra == 0 ) 64 TR_m2_q_27_Lijarra->disable 65 endif 66 if ( getJournalIndex TR_m2_FG_Amiro3 < 200 ) ; case when player freed the slaves 67 if ( GetDeadCount TR_m2_q_27_heelkur == 0 ) 68 TR_m2_q_27_heelkur->disable 69 endif 70 else ; case when player returned the slaves 71 if ( GetDeadCount TR_m2_q_27_heelkur == 0 ) 72 TR_m2_q_27_heelkur->enable 73 TR_m2_q_27_heelkur->positioncell 220 -460 15265 0 "Akamora, Aravel-Senim Egg Mine" ;TR_m2_MARK_HeelKur 74 TR_m2_q_27_heelkur->AiWander 0 0 0 0 0 0 0 0 0 0 0 0 75 set TR_m2_q_27_heelkur.dontforcegreet to 11 76 endif 77 endif 78 set placeOnce to 4 79endif 80 81if ( disappearOnce == 1 ) 82 disable 83 set TR_m2_Laalalvo_Irano.rant to 1 84 set disappearOnce to 2 85endif 86 87if ( TR_Map == 2 ) 88 return 89endif 90 91set TR_Map to 2 92 93End