Jump to content

Adding script to potion - Take II


TangerineDog

Recommended Posts

I've tried adding this script to a magic effect and the effect to an ale bottle. But when I drink the ale, the spell remains in my active effects. Do you know of a potion that uses a script or how to fix mine?

 

Script:

ScriptName ScriptAleTest extends activemagiceffect

Spell Property SpellHunger01 Auto

Event OnEffectStart(Actor akTarget, Actor akCaster)

If Game.GetPlayer().HasSpell(SpellHunger01)
Game.GetPlayer().RemoveSpell(SpellHunger01)
Endif


EndEvent

 

 

EDIT: I've found the blood potion script from Dawnguard, it's not that different:

Scriptname DLC1BloodPotionEffectScript extends ActiveMagicEffect

PlayerVampireQuestScript Property PlayerVampireQuest Auto

Event OnEffectStart(Actor akTarget, Actor akCaster)
PlayerVampireQuest.VampireFeed()
EndEvent

 

Edited by TangerineDog
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...