Scripts

T_ScNpc_Mw_NecromOrd

Tamriel_Data.esm
Variables 10
Local Variables
TR_Map
control
TR_NecromOrd
TR_ArmedPC
TR_SpelledPC
TR_RunningPC
TR_JumpingPC
TR_NecromOrdAct
T_Local_NPC
NoLore
Source
1Begin T_ScNpc_Mw_NecromOrd 2 3short TR_Map 4short control 5short TR_NecromOrd ;this is what tells the Dialogue system to use Ordinator voices 6short TR_ArmedPC ;these will make sure that the Ordinators police the players conduct: 7short TR_SpelledPC 8short TR_RunningPC 9short TR_JumpingPC 10short TR_NecromOrdAct ;prevents the Ordinators from firing off error-causing dialogue until MenuMode has been properly cleared 11short T_Local_NPC 12short NoLore 13 14if ( MenuMode == 0 ) 15 if ( TR_NecromOrdAct > 0 ) 16 set control to ( control + 1 ) 17 endif 18else 19 set TR_NecromOrdAct to 1 20 if ( control > 0 ) 21 set control to 0 22 endif 23endif 24 25If ( control >= 2 ) ;out of MenuMode for two consecutive frames == if MenuMode was dialogue, we're now out of dialogue 26 set control to 0 27 set TR_NecromOrdAct to 0 28Endif 29 30if ( GetDistance, player <= 512 ) ;none of this fires unless the player is close enough 31 32 if ( TR_ArmedPC != 1 ) 33 if ( player->GetWeaponDrawn == 1 ) 34 set TR_ArmedPC to 1 35 endif 36 else 37 if ( player->GetWeaponDrawn == 0 ) 38 set TR_ArmedPC to 0 39 endif 40 endif 41 42 if ( TR_SpelledPC != 1 ) 43 if ( player->GetSpellReadied == 1 ) 44 set TR_SpelledPC to 1 45 endif 46 else 47 if ( player->GetSpellReadied == 0 ) 48 set TR_SpelledPC to 0 49 endif 50 endif 51 52 53 if ( TR_RunningPC != 1 ) 54 if ( GetPCRunning == 1 ) 55 set TR_RunningPC to 1 56 endif 57 else 58 if ( GetPCRunning == 0 ) 59 set TR_RunningPC to 0 60 endif 61 endif 62 63 if ( TR_JumpingPC != 1 ) 64 if ( GetPCJumping == 1 ) 65 set TR_JumpingPC to 1 66 endif 67 else 68 if ( GetPCJumping == 0 ) 69 set TR_JumpingPC to 0 70 endif 71 endif 72 73endif 74 75if ( TR_Map ) 76 return 77endif 78 79set TR_Map to 2 80 81End