;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment ;NEXT FRAGMENT INDEX 7 Scriptname eqPerkActivationScript Extends Perk Hidden ;BEGIN FRAGMENT Fragment_5 Function Fragment_5(ObjectReference akTargetRef, Actor akActor) ;BEGIN CODE ; Activate Living Actor (Hostile, Fleeing) Int result = eqQuestMain.ShowMessage(eqMsgDoYouWantToRestrain, akTargetRef, aiLevel = 0) if result == 0 (akTargetRef as Actor).AddSpell(eqAbilityRestrained) endif ;END CODE EndFunction ;END FRAGMENT ;BEGIN FRAGMENT Fragment_6 Function Fragment_6(ObjectReference akTargetRef, Actor akActor) ;BEGIN CODE ; Activate Living Actor (Restrained) Int result = eqQuestMain.ShowMessage(eqMsgWhatDoYouWantToDo, akTargetRef, aiLevel = 0) if result == 0 Int h = ModEvent.Create("emOpenContainer") if h ModEvent.PushForm(h, akTargetRef) ModEvent.Send(h) endif Utility.Wait(0.5) String cmd = "\"" + PO3_SKSEFunctions.IntToString(akTargetRef.GetFormID(), true) + "\".openactorcontainer 1" ConsoleUtil.ExecuteCommand(cmd) elseif result == 1 (akTargetRef as Actor).RemoveSpell(eqAbilityRestrained) endif ;END CODE EndFunction ;END FRAGMENT ;END FRAGMENT CODE - Do not edit anything between this and the begin comment Message Property eqMsgDoYouWantToRestrain Auto Message Property eqMsgWhatDoYouWantToDo Auto Spell Property eqAbilityRestrained Auto