Scripts

TR_m3_Sabinescript

TR_Mainland.esm
Variables 4
Local Variables
doOnce
doDelay
amuletDestroyed
oldHealth
Source
1Begin TR_m3_Sabinescript 2 3short doOnce 4short doDelay 5short amuletDestroyed 6float oldHealth 7 8if ( doOnce == 0 ) 9 if ( GetHealth < 360 ) ; it seems that GetAttacked doesn't work on creatures, hence this workaround 10 StartCombat player 11 SetFight 100 12 if ( GetDeadCount "TR_m3_Reynard Valtienne" < 1 ) 13 "TR_m3_Reynard Valtienne"->StartCombat player 14 "TR_m3_Reynard Valtienne"->SetFight 100 15 endif 16 Set doOnce to 1 17 endif 18endif 19 20if ( GetDeadCount "TR_m3_Sabine Valtienne" == 0 ) 21 if ( amuletDestroyed == 1 ) 22 if ( player->GetItemCount TR_m3_LichLocket > 0 ) 23 player->RemoveItem TR_m3_LichLocket 1 24 endif 25 if ( doDelay == 0 ) 26 Set doDelay to 1 27 elseif ( GetHealth > oldHealth ) 28 RemoveSpell "TR_m3_Sabine unlife" 29 endif 30 Set oldHealth to GetHealth 31 endif 32endif 33 34if ( OnDeath ) 35 if ( GetDeadCount "TR_m3_Reynard Valtienne" > 0 ) 36 Journal TR_m3_TT_RuinousKeep 70 37 endif 38endif 39 40End