Scripts

TR_m3_NPC_OE_OtrebusDelagia

TR_Mainland.esm
Variables 9
Local Variables
TR_Map
control
controlQ
toast
PoisonOnce
NoLore
T_Local_NPC
T_Local_NoLore
state
Source
1Begin TR_m3_NPC_OE_OtrebusDelagia 2 3; Script on NPC T_ScNpc_Mw_Map3_OE_OtrebusDelagia for quest TR_m3_TG_Moranie2. 4 5short TR_Map 6short control 7short controlQ 8short toast 9short PoisonOnce 10short NoLore 11short T_Local_NPC 12short T_Local_NoLore 13 14short state ; dialogue state 15; 0 - default, "join Delagia's gang" topic 16; 1 - offered to kill the TG, "Thieves Guild" topic 17; 2 - refused to kill the TG, "leave Old Ebonheart" topic 18; 3 - threatened him, "listen to reason" topic 19; 4 - blackmailed him, "listen to reason" topic 20 21if ( GetJournalIndex "TR_m3_TG_Moranie2" >= 200 ) 22 if ( GetDisabled ) 23 enable 24 endif 25elseif ( GetJournalIndex "TR_m3_TG_Moranie2" >= 100 ) 26 if ( GetDisabled == 0 ) 27 disable 28 endif 29elseif ( GetDisabled ) 30 enable 31endif 32 33if ( PoisonOnce == 0 ) 34 if ( GetItemCount "TR_m3_OE_TG_PoisonedWine" >= 1 ) 35 removeitem "TR_m3_OE_TG_PoisonedWine" 1 36 set toast to 3 37 AddSpell "TR_m3_OE_HhontRatPoison" 38 SetAlarm 0 ;sets Alarms to zero, lest the player get a bounty 39 "TR_m3_Norri"->SetAlarm 0 40 "TR_m3_Pulso Pollex"->SetAlarm 0 41 "TR_m3_Gura gra-Lagrob"->SetAlarm 0 42 SetHello 0 43 set PoisonOnce to 1 44 endif 45endif 46 47if ( GetJournalIndex "TR_m3_TG_Moranie2" >= 10 ) 48 if ( GetJournalIndex "TR_m3_TG_Moranie2" < 90 ) 49 if ( OnDeath == 1 ) 50 Journal "TR_m3_TG_Moranie2" 90 51 "TR_m3_Norri"->SetAlarm 100 52 "TR_m3_Pulso Pollex"->SetAlarm 100 53 "TR_m3_Gura gra-Lagrob"->SetAlarm 100 54 endif 55 endif 56endif 57 58if ( TR_Map == 3 ) 59 return 60endif 61 62set TR_Map to 3 63 64End