Scripts

TR_m3_NPC_TedrasFelas

TR_Mainland.esm
Variables 5
Local Variables
TR_Map
control
controlQ
T_Local_NPC
NoLore
Source
1Begin TR_m3_NPC_TedrasFelas 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 T_Local_NPC 10short NoLore 11 12if ( control == 0 ) 13 if ( GetSpellEffects "TR_m3_TedrasScamps_1" ) 14 set control to 1 15 endif 16elseif ( control == 1 ) 17 cast "TR_m3_TedrasScamps_2" Player 18 if ( GetSpellEffects "TR_m3_TedrasScamps_2" ) 19 set control to 2 20 endif 21elseif ( control == 2 ) 22 cast "TR_m3_TedrasScamps_3" Player 23 if ( GetSpellEffects "TR_m3_TedrasScamps_3" ) 24 set control to 3 25 endif 26elseif ( control == 3 ) 27 if ( GetSpellEffects "TR_m3_TedrasScamps_1" == 0 ) 28 set control to 0 29 endif 30endif 31 32if ( TR_Map ) 33 return 34endif 35 36set TR_Map to 3 37 38End