Scripts

TR_m3_q_A7_YannibScript

TR_Mainland.esm
Variables 7
Local Variables
TR_Map
control
controlQ
NoLore
state
T_Local_NPC
T_Local_NoLore
Source
1Begin TR_m3_q_A7_YannibScript 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 NoLore 10short state 11short T_Local_NPC 12short T_Local_NoLore 13 14if ( state == 10 ) 15 if ( OnActivate ) ; looks superfluous, but due to MW's weirdness about the OnActivate below the return, it's not 16 Activate 17 endif 18 19 if ( TR_m3_ZanammuLock->GetPos Z >= 12372 ) 20 TR_m3_ZanammuLock->MoveWorld Z -1000 21 endif 22 23 return 24endif 25 26ModFatigue -250 27 28if ( OnActivate ) 29 if ( GetDeadCount TR_m3_q_A7_bosskelP >= 2 ) 30 if ( GetDeadCount TR_m3_q_A7_bosskelW >= 2 ) 31 MessageBox "It seems that he is starting to come around." "OK" 32 set state to 1 33 return 34 endif 35 endif 36 MessageBox "It seems he is unconscious." "OK" 37endif 38 39if ( state == 1 ) 40 SetFatigue 245 41 set state to 10 42endif 43 44if ( TR_Map == 3 ) 45 return 46endif 47 48set TR_Map to 3 49 50End