Scripts

TR_m7_NPC_nightmother_sc

TR_Mainland.esm
Variables 7
Local Variables
TR_Map
control
controlQ
T_Local_NPC
T_Local_NoLore
NoLore
OnPCHitMe
Source
1Begin TR_m7_NPC_nightmother_sc 2 3short TR_Map 4short control 5short controlQ 6short T_Local_NPC 7short T_Local_NoLore 8short NoLore 9short OnPCHitMe 10 11if ( GetJournalIndex, "TR_m7_DB_Special1" >= 75 ) 12 if ( GetDisabled == 0 ) 13 disable 14 endif 15endif 16 17if ( controlQ == 0 ) 18 if ( GetJournalIndex, "TR_m7_MT_Special4" >= 10 ) 19 if ( GetDistance, player <= 300 ) 20 if ( player->GetPos, Z >= 14900 ) ; make sure she doesn't forcegreet through floors 21 ForceGreeting 22 set controlQ to 1 23 endif 24 endif 25 endif 26endif 27 28if ( OnDeath ) 29 if ( GetJournalIndex, "TR_m7_MT_Special4" >= 10 ) 30 Journal TR_m7_MT_Special4 55 31 endif 32endif 33 34if ( OnPCHitMe ) 35 if ( TR_m7_nightmotherattack == 0 ) 36 set TR_m7_nightmotherattack to 1 37 endif 38endif 39 40if ( TR_m7_nightmotherattack >= 2 ) 41 if ( CellChanged ) ; nice try trying to wait it out. i'm one step ahead of you. 42 cast, "TR_m7_MT_nightmotherveil", "TR_m7_O_Jeanne Duchamp" 43 endif 44endif 45 46if ( TR_m7_nightmotherattack == 1 ) 47 cast, "TR_m7_MT_nightmotherveil", "TR_m7_O_Jeanne Duchamp" 48 set TR_m7_nightmotherattack to 2 49 setfight 100 50 PlaceAtPC "TR_m7_O_haniri_dbass_a" 1 200 1 51 PlaceAtPC "TR_m7_O_haniri_dbass_b" 1 200 2 52 PlaceAtPC "TR_m7_O_haniri_dbass_c" 1 200 3 53endif 54 55if ( TR_Map ) 56 return 57endif 58 59set TR_Map to 7 60 61End