Scripts

TR_m4_NPC_Rels_Uvalor

TR_Mainland.esm
Variables 6
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
Source
1Begin TR_m4_NPC_Rels_Uvalor 2 3short TR_Map 4short control 5short controlQ 6short NoLore 7short T_Local_NPC 8short T_Local_NoLore 9 10; change a variable under Command effect, used in dialogue 11if ( controlQ == 0 ) 12 if ( GetEffect sEffectCommandHumanoids ) 13 set controlQ to 1 14 endif 15elseif ( GetEffect sEffectCommandHumanoids != 1 ) 16 set controlQ to 0 17endif 18 19if ( OnDeath ) 20 if ( GetJournalIndex TR_m4_VA_Ibinai >= 10 ) 21 if ( GetJournalIndex TR_m4_VA_Ibinai < 100 ) 22 Journal TR_m4_VA_Ibinai 130 23 elseif ( GetJournalIndex TR_m4_VA_Ibinai == 150 ) 24 ; re-enables TR_m4_V_Shinammu, don't change to Journal 25 SetJournalIndex TR_m4_VA_Ibinai 130 26 endif 27 endif 28endif 29 30if ( CellChanged ) 31 if ( GetJournalIndex TR_m4_VA_Ibinai >= 100 ) 32 if ( GetDisabled == 0 ) 33 disable 34 endif 35 elseif ( GetDisabled ) 36 enable 37 endif 38endif 39 40if ( TR_Map ) 41 return 42endif 43 44set TR_Map to 4 45 46End