Jump to content
⚠ Known Issue: Media on User Profiles ×

Deleted5420501User

Account closed
  • Posts

    7
  • Joined

  • Last visited

Reputation

0 Neutral

Nexus Mods Profile

  1. The problem is sometimes for example shouts are working and I get healed or some weapons for example axes don't work.
  2. Again I getting errors... Starting 1 compile threads for 1 files... Compiling "CH_LifeLeechScript"... steamapps\common\skyrim\Data\Scripts\Source\temp\CH_LifeLeechScript.psc(11,65): IsHostileToActor is not a function or does not exist steamapps\common\skyrim\Data\Scripts\Source\temp\CH_LifeLeechScript.psc(13,18): GetEquippedItemType is not a function or does not exist steamapps\common\skyrim\Data\Scripts\Source\temp\CH_LifeLeechScript.psc(13,41): cannot compare a none to a int (cast missing or types unrelated) steamapps\common\skyrim\Data\Scripts\Source\temp\CH_LifeLeechScript.psc(13,63): GetEquippedItemType is not a function or does not exist steamapps\common\skyrim\Data\Scripts\Source\temp\CH_LifeLeechScript.psc(13,86): cannot compare a none to a int (cast missing or types unrelated) steamapps\common\skyrim\Data\Scripts\Source\temp\CH_LifeLeechScript.psc(13,108): GetEquippedItemType is not a function or does not exist steamapps\common\skyrim\Data\Scripts\Source\temp\CH_LifeLeechScript.psc(13,131): cannot compare a none to a int (cast missing or types unrelated) steamapps\common\skyrim\Data\Scripts\Source\temp\CH_LifeLeechScript.psc(13,153): GetEquippedItemType is not a function or does not exist steamapps\common\skyrim\Data\Scripts\Source\temp\CH_LifeLeechScript.psc(13,176): cannot compare a none to a int (cast missing or types unrelated) steamapps\common\skyrim\Data\Scripts\Source\temp\CH_LifeLeechScript.psc(13,198): GetEquippedItemType is not a function or does not exist steamapps\common\skyrim\Data\Scripts\Source\temp\CH_LifeLeechScript.psc(13,221): cannot compare a none to a int (cast missing or types unrelated) steamapps\common\skyrim\Data\Scripts\Source\temp\CH_LifeLeechScript.psc(16,15): RestoreAV is not a function or does not exist No output generated for CH_LifeLeechScript, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed. Failed on CH_LifeLeechScript
  3. Read my first post. Scriptname CH_LifeLeechScript extends ActiveMagicEffect Actor User ; could be the player or not, i dont know who you are applying this effect to Event OnEffectStart(Actor akTarget, Actor akCaster) User = akTarget EndEvent Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked) IF akAggressor != User && User.IsInCombat() && akAggressor.IsHostileToActor(User) If (akAggressor.GetEquippedItemType(0) != 7) && (akAggressor.GetEquippedItemType(0) != 8) && (akAggressor.GetEquippedItemType(0) != 9) && (akAggressor.GetEquippedItemType(1) != 8) && (akAggressor.GetEquippedItemType(0) != 9) && (akProjectile == None) Debug.Notification("user was hit by a melee attack") Float RP = Game.GetPlayer().GetLevel() ;restore health based on player level Attacker.RestoreAV("Health", RP+15) endif Endif EndEvent I can't even compile this, throws errors. EDIT: Sorry for post under post I choosed wrong post window.
  4. EDIT: I managed to fix this, but I have another problem. I want to heal only attackers, which attack in close combat (no any projectiles including spells), but this not work - when I cast fireball, I get healed. Can anyone help me please? Here is my script: Scriptname CH_LifeLeechScript extends ActiveMagicEffect Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked) Actor Attacker = (akAggressor As Actor) Float RP = Game.GetPlayer().GetLevel() ;restore health based on player level if (akSource as Spell) == None && akProjectile == None Attacker.RestoreAV("Health", RP+15) endif EndEvent
×
×
  • Create New...