hellbot455 Posted August 4, 2018 Share Posted August 4, 2018 (edited) I have a script that relies on a single function that has currently 4 different states. So far, the code has compiled correctly and given no obvious problems when in the creation kit. However, when loaded into the game, the logs indicated: error: Cannot call GetValue() on a None object, aborting function call stack: [Active effect 2 on (00000014)].HamonScale.Incriment() - "HamonScale.psc" Line 22 [Active effect 2 on (00000014)].HamonScale.OnInit() - "HamonScale.psc" Line 8 I checked whether or not the object at the line (being a float variable linked property), and I am unsure as to why my property is being declared as a none object. Scriptname HamonScale extends activemagiceffect GlobalVariable Property HamonLevel auto GlobalVariable Property HamonArmor auto Event OnInit() GotoState ("idlehamon") Incriment () Debug.Trace("Hamon Initialized",2) EndEvent function Incriment () endFunction auto state idlehamon function Incriment () float primaryValue = 3.333333 float TempVar = HamonLevel.GetValue() while (HamonLevel.GetValue() > 1) TempVar -= PrimaryValue HamonLevel.SetValue(TempVar) Utility.Wait(0.001) endwhile endFunction endState state chargehamon function Incriment () float secondaryValue = 200.000000 while (HamonLevel.GetValue() < 1000000.000) float TempVar = HamonLevel.GetValue() if (TempVar < 1000000.000) TempVar += secondaryValue HamonLevel.SetValue(TempVar) Utility.Wait(0.001) else HamonLevel.SetValue(1000000.000) endif endwhile float checkingvalueprimary = HamonLevel.GetValue() if (checkingvalueprimary == 1000000.00) debug.trace ("Hamon Is Full",2) endif endFunction endState state idlemaskhamon function Incriment () float tertiaryValue = 3.333333 while (HamonLevel.GetValue() < 1000000.000) float TempVar = HamonLevel.GetValue() TempVar += tertiaryValue HamonLevel.SetValue(TempVar) Utility.Wait(0.001) endwhile if (HamonLevel.GetValue() > 1000000.000) HamonLevel.SetValue(1000000.000) endif endFunction endState state chargemaskhamon function Incriment () float quaternaryValue = 333333.333 while (HamonLevel.GetValue() < 1000000) float TempVar = HamonLevel.GetValue() if (TempVar <1000000.000) TempVar += quaternaryValue HamonLevel.SetValue(TempVar) Utility.Wait(1.0) else HamonLevel.SetValue(1000000.000) endif endwhile float checkingvaluesecondary = HamonLevel.GetValue() if (checkingvaluesecondary == 1000000.00) debug.trace ("Hamon Is Full",2) endif endFunction endState Edited August 4, 2018 by hellbot455 Link to comment Share on other sites More sharing options...
hellbot455 Posted August 5, 2018 Author Share Posted August 5, 2018 Nevermind, found the problem. I am mildly retarded. Link to comment Share on other sites More sharing options...
Recommended Posts