hey dose anybody know how to do a code like if you type only a spacific number into a gui something will happen
like if you type nothing or anything else this will hapan but if you type 238 this will happen
Not too hard. You can set up a textbox GUI and compare an entered string against a specific one.
if (gTextPad.Text == "238")
Display("Whoo, Jackpot!");
else
Display("Code Not Accepted!");
"pacific number" is a highlight on these forums thus far.
Heh. (http://www.youtube.com/watch?feature=player_detailpage&v=c3y0CD2CoCs#t=47s)
Why isn't this in Beginner's Technical Questions...? (roll)
There's also InputBox() (http://www.adventuregamestudio.co.uk/manual/Game.InputBox.htm).
String text = InputBox("What's the password?");
if (text == "pacific") ...
else ...
thanks and were is a warm welcome back lol
lol indeed
We put as much effort into your warm welcome as you put into your posts! :)
ƨ ƨ ƨ ƨ
welcome back