Scripts

TR_m1_q_RR_MQ_MithrasDouble

TR_Mainland.esm
Variables 7
Local Variables
TR_Map
control
state
NoLore
T_Local_NPC
T_Local_NoLore
timer
Source
1Begin TR_m1_q_RR_MQ_MithrasDouble 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. This version is for "NoLore" NPCs. 5 6short TR_Map 7short control 8short state 9float timer 10short NoLore 11short T_Local_NPC 12short T_Local_NoLore 13 14; The if-block for control being 2 has been edited to address the unreliability of 15; GetSoundPlaying. -- arvisrend, 11 Nov 2012 16 17if ( OnDeath ) 18 set TR_m1_HT_MithrasDead to 1 19endif 20 21If ( GetDisabled == 0 ) 22 If ( GetJournalIndex TR_m1_RR_MQ_10 < 30 ) 23 disable 24 Endif 25Endif 26 27if ( TR_m1_q_SimethFollow->GetCurrentAiPackage == 3 ) 28 set state to 1 29else 30 set state to 0 31endif 32 33if ( GetDistance TR_m1_q_SimethFollow >= 850 ) 34 set state to 0 35else 36 set state to 1 37endif 38 39If ( MenuMode ) 40 return 41Endif 42 43If ( control == 1 ) 44 cast telekinesis TR_m1_q_Mithras_Double 45 removeitem torch_infinite_time 1 46 set control to 2 47Endif 48 49If ( control == 2 ) 50 If ( GetSoundPlaying "mysticism hit" == 1 ) 51 disable 52 TR_m1_T_Mithras->enable 53 set control to 3 54 set timer to 0 55 return 56 Endif 57 set timer to ( timer + GetSecondsPassed ) 58 if ( timer >= 3 ) 59 disable 60 TR_m1_T_Mithras->enable 61 set control to 3 62 set timer to 0 63 endif 64Endif 65 66if ( TR_Map == 1 ) 67 return 68endif 69 70set TR_Map to 1 71 72End