Jump to content

Simple "Input" question


Mickey and Goofy

Recommended Posts

A missing else ?

 

GC Builder ? Jesus ! :anibad:

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

Link to comment

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.

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...