Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support
myvariable=1
box1=1
myvariable2=1
myvariable3=1
myvariable4=1
If myvariable>0 Then
Box1=0
End If
If myvariable=4 Then
myvariable=0
End If
Select Case myvariable
Case 0
color="BLACKBOX.jpg"
Case 1
color= "GREENBOX.jpg"
Case 2
color= "REDBOX.jpg"
Box1=1
Case 3
color= "BLUEBOX.jpg"
End Select
Action.LoadAPicture Hotspot(1),color
myvariable = myvariable+1
Box2=0
If myvariable2=4 Then
myvariable2=0
End If
Select Case myvariable2
Case 0
color="BLACKBOX.JPG"
Case 1
color="GREENBOX.JPG"
Box2=1
Case 2
color="REDBOX.JPG"
Case 3
color="BLUEBOX.JPG"
End Select
Action.LoadAPicture Hotspot(2), color
myvariable2=myvariable2+1
Box3=0
If myvariable3=4 Then
myvariable3=0
End If
Select Case myvariable3
Case 0
color="BLACKBOX.JPG"
Case 1
color="GREENBOX.JPG"
Case 2
color="REDBOX.JPG"
Case 3
color="BLUEBOX.JPG"
Box3=1
End Select
Action.LoadAPicture Hotspot(3), color
myvariable3=myvariable3+1
Box4=0
If myvariable4=4 Then
myvariable4=0
End If
Select Case myvariable4
Case 0
color="BLACKBOX.JPG"
Box4=1
Case 1
color="GREENBOX.JPG"
Case 2
color="REDBOX.JPG"
Case 3
color="BLUEBOX.JPG"
End Select
Action.LoadAPicture Hotspot(4), color
myvariable4=myvariable4+1
All boxes=Box1+Box2+Box3+Box4
If all boxes=4 Then
Action.GoToFrame "Solid01"
Else
Action.Message "Wrong Sequence"
End IF
[color=red]This is where I get error message, expected "Then" error[/color]
If myvariable>0 Then
box1=0
End If
If myvariable=4 Then
myvariable=0
End If
Select Case myvariable
Case 0
color="BLACKBOX.jpg"
Case 1
color= "GREENBOX.jpg"
Case 2
color= "REDBOX.jpg"
box1=1
Case 3
color= "BLUEBOX.jpg"
End Select
Action.LoadAPicture Hotspot(1),color
myvariable = myvariable+1
box2=0
If myvariable2=4 Then
myvariable2=0
End If
Select Case myvariable2
Case 0
color="BLACKBOX.JPG"
Case 1
color="GREENBOX.JPG"
box2=1
Case 2
color="REDBOX.JPG"
Case 3
color="BLUEBOX.JPG"
End Select
Action.LoadAPicture Hotspot(2), color
myvariable2=myvariable2+1
box3=0
If myvariable3=4 Then
myvariable3=0
End If
Select Case myvariable3
Case 0
color="BLACKBOX.JPG"
Case 1
color="GREENBOX.JPG"
Case 2
color="REDBOX.JPG"
Case 3
color="BLUEBOX.JPG"
box3=1
End Select
Action.LoadAPicture Hotspot(3), color
myvariable3=myvariable3+1
box4=0
If myvariable4=4 Then
myvariable4=0
End If
Select Case myvariable4
Case 0
color="BLACKBOX.JPG"
box4=1
Case 1
color="GREENBOX.JPG"
Case 2
color="REDBOX.JPG"
Case 3
color="BLUEBOX.JPG"
End Select
Action.LoadAPicture Hotspot(4), color
myvariable4=myvariable4+1
All boxes=box1+box2+box3+box4
If all boxes=4 Then
Action.GoToFrame "Solid01"
Else
Action.Message "Wrong Sequence"
End If
myvariable=1
box1=1
myvariable2=1
myvariable3=1
myvariable4=1
mercedes wrote:
EXIT hotspot to leave the screen...where i'm getting "THEN" ERROR
- Code: Select all
All boxes=box1+box2+box3+box4
If all boxes=4 Then
Action.GoToFrame "Solid01"
Else
Action.Message "Wrong Sequence"
End If
myvariable=1
box1=1 ------------------why is this here..?..I wondered about this.
myvariable2=1
myvariable3=1
myvariable4=1
Return to Adventure Maker Technical Support and Bug Reports
Users browsing this forum: No registered users and 0 guests