Scripts

TR_m4_NPC_BanditDuo2

TR_Mainland.esm
Variables 6
Local Variables
TR_Map
control
controlQ
OnPCHitMe
T_Local_NPC
NoLore
Source
1Begin TR_m4_NPC_BanditDuo2 2; This short script is there to allow dialogue to be filtered on the TR_Map local variable, 3; allowing for regional topics such as "Morrowind Lore" or "Geographic Regions" to be 4; appropriate to the location the NPC is. 5 6short TR_Map 7short control 8short controlQ 9short OnPCHitMe 10short T_Local_NPC 11short NoLore 12 13if ( MenuMode ) 14 return 15endif 16 17if ( OnDeath ) 18 "TR_m4_Venatria Salvo"->ForceGreeting 19 return 20endif 21 22if ( CellChanged ) 23 if ( GetJournalIndex "TR_m4_wil_BanditDuo" >= 100 ) 24 if ( GetDisabled == 0 ) 25 Disable 26 endif 27 endif 28endif 29 30if ( OnPCHitMe == 1 ) 31 if ( "TR_m4_Venatria Salvo".controlQ == 0 ) 32 if ( GetItemCount "dire flamesword" == 0 ) 33 AddItem "iron dagger" 1 34 "TR_m4_Venatria Salvo"->AddItem "steel dagger" 1 35 set "TR_m4_Venatria Salvo".controlQ to 10 36 else 37 set "TR_m4_Venatria Salvo".controlQ to 11 38 endif 39 if ( GetJournalIndex "TR_m4_wil_BanditDuo" == 50 ) 40 "TR_m4_Venatria Salvo"->ForceGreeting 41 return 42 endif 43 endif 44endif 45 46if ( TR_Map == 4 ) 47 return 48endif 49 50set TR_Map to 4 51 52End