Scripts

TR_m2_q_AB_Adrosu

TR_Mainland.esm
Variables 13
Local Variables
TR_Map
control
controlQ
NoLore
noattack
nohit
nohello
noidle
noflee
doOnce
doOnce2
T_Local_NPC
T_Local_NoLore
Source
1Begin TR_m2_q_AB_Adrosu 2 3; Script on NPC "TR_m2_Adrosu Balmayn" for quest 4; "TR_m2_wil_tongue". 5 6short TR_Map 7short control 8short controlQ 9short NoLore 10short noattack 11short nohit 12short nohello 13short noidle 14short noflee 15short doOnce 16short doOnce2 17short T_Local_NPC 18short T_Local_NoLore 19 20if ( doOnce == 0 ) 21 if ( OnDeath == 1 ) 22 if ( GetJournalIndex "TR_m2_wil_Tongue" < 60 ) ;in case the player kills Adrosu before the quest endgame 23 if ( GetJournalIndex "TR_m2_wil_Tongue" > 0 ) 24 Journal "TR_m2_wil_Tongue" 75 25 set doOnce to 1 26 endif 27 endif 28 endif 29endif 30 31if ( doOnce2 == 0 ) ; check if player steals/loots the potion from Teris 32 if ( GetJournalIndex "TR_m2_wil_Tongue" > 0 ) 33 if ( GetJournalIndex "TR_m2_wil_Tongue" >= 40 ) 34 set doOnce2 to 1 35 return 36 elseif ( player->GetItemCount "TR_m2_q_AB_RegrowthPotion" >= 1 ) 37 set doOnce2 to 1 38 addtopic "regrowth potion" 39 Journal "TR_m2_wil_Tongue" 50 40 endif 41 endif 42endif 43 44if ( TR_Map == 2 ) 45 return 46endif 47 48set TR_Map to 2 49 50end