ScriptName BagOfHoldingPlayerAliasScript extends ReferenceAliasImport InputFormList Property BagOfHoldingItemFLST AutoInt Property iAutoStashKey = 48 Auto ConditionalObjectReference Property BagOfHoldingREF AutoAuto State AutoStash Event OnItemAdded(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akSourceContainer) If BagOfHoldingItemFLST.HasForm(akBaseItem) ElseIf IsKeyPressed(iAutoStashKey) GetActorReference().RemoveItem(akBaseItem, aiItemCount, True, BagOfHoldingREF) EndIf EndEventEndState
Game.AddHavokBallAndSocketConstraint(Game.GetPlayer(), "Some node on the player", Self, "Some node on self")
Game.AddHavokBallAndSocketConstraint(Game.GetPlayer(), "Some node on the player", Self, "Some node on self")
Event OnEffectStart(Actor akTarget, Actor akCaster);do stuffEndEventFunction AdvanceSkill(string asSkillName, float afMagnitude)game.AdvanceSkill("Destruction", 100.0)EndFunctionEvent OnDying(Actor myKiller) actorHealth = selfRef.GetAV("Health") as int if actorHealth <= 0 wait (2.0) selfRef.PlaceAtMe(FXSoulSparkExplosion) game.AdvanceSkill("Destruction", 100.0)endifEndEvent
Scriptname Example extends ActiveMagicEffectEvent OnEffectStart(Actor akTarget, Actor akCaster) Game.AdvanceSkill("Destruction", 100.0)EndEvent