Scripts

TR_m4_NPC_Folcard

TR_Mainland.esm
Variables 8
Local Variables
TR_Map
control
controlQ
strikeControl
teleportOnce
NoLore
T_Local_NPC
T_Local_NoLore
Source
1begin TR_m4_NPC_Folcard 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 strikeControl 10short teleportOnce 11short NoLore 12short T_Local_NPC 13short T_Local_NoLore 14 15if ( OnDeath ) 16 set teleportOnce to -1 17 set TR_m4_UshuKur_D_Folcard.disableOnce to -1 18endif 19 20if ( teleportOnce < 0 ) 21 Return 22endif 23 24if ( TR_m4_FG_UshuFree == 2 ) 25 if ( GetDisabled == 0 ) 26 disable 27 endif 28endif 29 30if ( TR_m4_FG_UshuFree >= 3 ) 31 if ( GetDisabled == 1 ) 32 enable 33 endif 34endif 35 36if ( teleportOnce == 0 ) 37 if ( GetJournalIndex "TR_m4_FG_UshuKur4" >= 150 ) 38 if ( GetJournalIndex "TR_m4_FG_UshuKur4" <= 200 ) 39 PositionCell, -440, 2828, -1370, 7000, "Ushu-Kur Mine" 40 AiWander 0 0 10 5 0 10 0 0 0 41 set teleportOnce to 1 42 endif 43 endif 44endif 45 46if ( TR_Map == 4 ) 47 return 48endif 49 50set TR_Map to 4 51 52End