Jump to content

Script blind.


antstubell

Recommended Posts

I need somebody to make me look stupid by showing me what's wrong with this script.

 

; organ = 1
; harp =2
; violin = 3
; drum = 4

GlobalVariable Property PreviousObjGlobal Auto; value to check against to continue
GlobalVariable Property ThisObjGlobal Auto; global for this object
; integers needed to input values to check
Int Property InputValue Auto
Int Property PreviousInputValue Auto

Event OnActivate(ObjectReference akActionRef)

If (PreviousObjGlobal.GetValue()) == (PreviousInputValue); previous object was activated in correct order
ThisObjGlobal.SetValue(InputValue); sets global with this object value 1 - 4
debug.notification("Correct")

ElseIf
ThisObjGlobal.SetValue(0)
debug.notification("Wrong")

EndIf
Chk()
EndEvent

Function Chk()
debug.notification("Check")
EndFunction

 

 

(20,6): no viable alternative at input '\\r\\n'

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...