Jump to content

Simple "Input" question


Mickey and Goofy

Recommended Posts

Posted

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. :blink:

Posted

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.

Posted

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?

Posted

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

Posted

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.

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...