scn MyQuestScriptShort DoOnceFloat OldHealthFloat NewHealthBegin GameMode If DoOnce == 0 Set OldHealth to player.GetAV Health Set DoOnce to 1 Endif Set NewHealth to player.getav Health If NewHealth < OldHealth && Player.IsInCombat ;Do stuff when player has taken damage while in combat Endif Set OldHealth to NewHealthEnd
scn MyQuestScriptShort DoOnceFloat OldHealthFloat NewHealthBegin GameMode If DoOnce == 0 Set OldHealth to player.GetAV Health Set DoOnce to 1 Endif Set NewHealth to player.getav Health If NewHealth < OldHealth && Player.IsInCombat;Do stuff when player has taken damage while in combat Endif Set OldHealth to NewHealthEnd
Player.RestoreAV Health 5
Player.RestoreAV Health 5
scn DamageReduction10Short IsWearingFloat OldHealthFloat NewHealthRef SelfBegin OnEquip Set Self to GetContainer Set IsWearing to 1EndBegin OnUnEquip Set IsWearing to 0EndBegin GameMode If (IsWearing) Set NewHealth to self.getav Health If NewHealth < OldHealth && self.IsInCombat self.RestoreAV Health 50 Endif Set OldHealth to NewHealth EndIfEnd
scn DamageReduction10Short IsWearingFloat OldHealthFloat NewHealthRef SelfBegin OnEquip Set Self to GetContainer Set IsWearing to 1EndBegin OnUnEquip Set IsWearing to 0EndBegin GameMode If (IsWearing) Set NewHealth to self.getav Health If NewHealth < OldHealth && self.IsInCombat self.RestoreAV Health 50 Endif Set OldHealth to NewHealth EndIfEnd
Short DoOnceBegin OnLoad If DoOnce == 0 Set self to getcontainer self.UnequipItem ArmorPowerOutcast self.EquipItem ArmorPowerOutcast Set Doonce to 1 EndifEnd
scn DamageReduction10Short DoOnceShort IsWearingFloat OldHealthFloat NewHealthRef SelfBegin OnLoad If DoOnce == 0 Set Self to GetContainer self.UnequipItem ArmorPowerOutcast self.EquipItem ArmorPowerOutcast Set IsWearing to 1;this line makes the two above obsolete, but should ensure that the effect will work for your test Set Doonce to 1 EndifEndBegin OnEquip Set IsWearing to 1EndBegin OnUnEquip Set IsWearing to 0EndBegin GameMode If (IsWearing) Set NewHealth to self.getav Health If NewHealth < OldHealth && self.IsInCombat self.RestoreAV Health 50 Endif Set OldHealth to NewHealth EndIfEnd
scn UCDamageReduction10Short IsWearingFloat OldHealthFloat NewHealthRef SelfBegin OnUnEquip Set IsWearing to 0EndBegin GameMode Set Self to GetContainer If Self.Getequipped ArmorPowerOutcast && IsWearing == 0 Set IsWearing to 1 ElseIf Self.GetEquipped ArmorPowerOutcast == 0 && IsWearing Set IsWearing to 0 Endif If (IsWearing) Set NewHealth to self.getav Health If NewHealth < OldHealth && self.IsInCombat self.RestoreAV Health 50 Endif Set OldHealth to NewHealth EndIfEnd