http://www.creationkit.com/Variables_and_Properties#Getting_Properties_of_a_quest_script
But I keep getting a
no viable alternative at input '='error.
Here are my two scripts...
The quest script.
Scriptname PMExtInebriationQuestScript extends QuestInt property InebriationLevel autoImageSpaceModifier property Drunk1 autoImageSpaceModifier property Drunk2 autoImageSpaceModifier property Drunk3 autoImageSpaceModifier property Drunk4 autoEvent OnReset()InebriationLevel = 0RegisterForUpdate(1)EndEventEvent OnUpdate()Drunk1.Remove()Drunk2.Remove()Drunk3.Remove()Drunk4.Remove()If (InebriationLevel>0 && InebriationLevel<3) Drunk1.Apply()EndIfIf (InebriationLevel>=3 && InebriationLevel<4) Drunk2.Apply()EndIfIf (InebriationLevel>=4 && InebriationLevel<6) Drunk3.Apply()EndIfIf (InebriationLevel>=6 && InebriationLevel<8) Drunk4.Apply()EndIfEndEvent
The outside script.
Scriptname PMExtIncreaseInebriation extends ActiveMagicEffectInt Property AlcoholLevel AutoPMExtInebriationQuestScript property myQuest automyQuest = GetOwningQuest() as PMExtInebriationQuestScriptEvent OnEffectStart(Actor akTarget, Actor akCaster)If (akTarget == Game.GetPlayer()) myQuest.InebriationLevel += AlcoholLevelEndIfEndEvent

