Scripts

TR_m2_q_sc_ErvulScript

TR_Mainland.esm
Variables 5
Local Variables
TR_Map
control
controlQ
T_Local_NPC
NoLore
Source
1Begin TR_m2_q_sc_ErvulScript 2 3; For quest Complicated Competition 4 5short TR_Map 6short control 7short controlQ 8short T_Local_NPC 9short NoLore 10 11; controlQ 0: force greet 12; controlQ 1: get journal update 13; controlQ 2: move him back to his shop 14; controlQ 4: set through dialogue, after accusing player 15 16if ( controlQ == 0 ) 17 if ( GetJournalIndex TR_m2_TGi_ComplicatComp >= 40 ) 18 if ( GetJournalIndex TR_m2_TGi_ComplicatComp < 50 ) 19 if ( GetDistance Player < 256 ) 20 ForceGreeting 21 set controlQ to 1 22 endif 23 endif 24 endif 25elseif ( controlQ == 1 ) 26 if ( GetJournalIndex TR_m2_TGi_ComplicatComp >= 50 ) 27 set controlQ to 2 28 endif 29elseif ( controlQ == 2 ) 30 if ( CellChanged == 1 ) 31 PositionCell 4107 4150 14663 6600 "Tel Gilan, Ervul Dranoth: Enchanter" ;marker TR_m2_MARK_Ervul 32 set controlQ to 3 33 endif 34else 35 Return 36endif 37 38set TR_Map to 2 39 40End