+Mickey and Goofy Posted August 30, 2011 Share Posted August 30, 2011 Maybe I got up to early today...... I need to have a player input their name or a name and have the game remember it so it can be called up from time to time? Like assign the name to a variable.... Quote Link to comment
+Mickey and Goofy Posted August 30, 2011 Author Share Posted August 30, 2011 Maybe I got up to early today...... I need to have a player input their name or a name and have the game remember it so it can be called up from time to time? Like assign the name to a variable.... OK I got up too early! This was too easy I'll go and get a coffee now. Quote Link to comment
snoyes Posted August 30, 2011 Share Posted August 30, 2011 You might post the answer anyway (create a variable, create an Input assigned to that variable, write a script for when the player inputs data, display it with ]]..VariableName..[[ ), for future users with the same question. Quote Link to comment
+Fish!! Posted July 4, 2012 Share Posted July 4, 2012 I have a similar problem: I've written script for player to answer a question by inputting data. This works in the emulator, but the following line: if zvariable equal ... Has no effect. Anybody got any idea what I'm missing? Quote Link to comment
+jonny65 Posted July 4, 2012 Share Posted July 4, 2012 A missing else ? GC Builder ? Jesus ! Declare an input, set the typ (probably text), pick object typ (zvariable), pick the variable (type string). Now define what should happen (when a player inputs data) if answer equal ABC set task complete true show a message to the player (correct) [...] else show a message to the player (wrong) end Quote Link to comment
Ranger Fox Posted July 10, 2012 Share Posted July 10, 2012 Actually, I believe the correct answer is Fish!! is doing the if/then statement immediately after the line "Get input from the player". Fish!!, the input itself has an event for when the player answers the question. You'll have to put your if/then statement in that. The Wherigo Player executes everything without stopping. Thus, with the way I believe you have it, the Player would display the input dialog, then continue running whatever code you have--including the if/then statement evaluating the player's input--without waiting for the player to answer. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.