antstubell Posted July 11, 2021 Share Posted July 11, 2021 I need somebody to make me look stupid by showing me what's wrong with this script. ; organ = 1; harp =2; violin = 3; drum = 4GlobalVariable Property PreviousObjGlobal Auto; value to check against to continueGlobalVariable Property ThisObjGlobal Auto; global for this object; integers needed to input values to checkInt Property InputValue AutoInt Property PreviousInputValue AutoEvent OnActivate(ObjectReference akActionRef)If (PreviousObjGlobal.GetValue()) == (PreviousInputValue); previous object was activated in correct orderThisObjGlobal.SetValue(InputValue); sets global with this object value 1 - 4debug.notification("Correct")ElseIfThisObjGlobal.SetValue(0)debug.notification("Wrong")EndIfChk()EndEventFunction Chk()debug.notification("Check")EndFunction (20,6): no viable alternative at input '\\r\\n' Link to comment Share on other sites More sharing options...
IsharaMeradin Posted July 11, 2021 Share Posted July 11, 2021 You have an "ElseIf" without a condition. Either add a condition or convert it into "Else". Link to comment Share on other sites More sharing options...
antstubell Posted July 12, 2021 Author Share Posted July 12, 2021 (edited) Like I said I'm an ass.Thank you. Edited July 12, 2021 by antstubell Link to comment Share on other sites More sharing options...
Recommended Posts