Need help![solved]

This forum is meant for requesting technical support or reporting bugs.

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support

Need help![solved]

Postby Suicune » Fri Dec 25, 2009 3:12 pm

ok so i used the simple script listed here to easily learn how to code "number pad" puzzles:

http://www.adventuremaker.com/phpBB2/vi ... php?t=5353

however, that script doesnt seem to work for if a number button needs to be pressed more than 1 time, for example if my code is: "515529"

so instead of simply putting:

If puzzle=0 then
puzzle=1
Else
puzzle=0
End If

for the "5" button hotspot, i need to somehow tell it to increment my variable by 1 when "puzzle" is equal to 0, 2, and 3. i dont know how to do this though, so can anyone help me? thanks!

i tried experimenting and putting this entire thing in the advanced tab:

If puzzle=0 then
puzzle=1
End If

If puzzle=1 then
puzzle=0
End If

If puzzle=2 then
puzzle=3
End If

If puzzle=3 then
puzzle=4
End If

If puzzle=4 then
puzzle=0
End If

If puzzle=5 then
puzzle=0
End If

If puzzle=6 then
puzzle=0
End If

but it fails to work...
Suicune
Member
 
Posts: 29
Joined: Fri Dec 25, 2009 2:59 pm

Postby Mystery » Fri Dec 25, 2009 3:26 pm

Not sure but what if you add this:

Code: Select all
If puzzle=0 then
  puzzle=1
ElseIf puzzle=2 then
  puzzle=3
ElseIf puzzle=3 then
  puzzle=4
Else
  puzzle=0
End If


Got to test it myself :P
User avatar
Mystery
Forum Admin and Games Page admin
 
Posts: 2990
Joined: Sat Feb 04, 2006 8:12 am
Location: Switzerland

Postby Suicune » Fri Dec 25, 2009 3:42 pm

wow it worked! :shock:

ty once again mystery! now i learned how to use the elseif command lol
Suicune
Member
 
Posts: 29
Joined: Fri Dec 25, 2009 2:59 pm

Postby Mystery » Fri Dec 25, 2009 3:51 pm

Yay! :D
You're very welcome :)

And welcome to the Adventure Maker forums :)
User avatar
Mystery
Forum Admin and Games Page admin
 
Posts: 2990
Joined: Sat Feb 04, 2006 8:12 am
Location: Switzerland


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests

cron