Switch "key" question and When using 'If'

For help with creating games using Quest

Moderators: Pertex, Alex, sgreig, Cryophile

Switch "key" question and When using 'If'

Postby Emerae » Mon May 21, 2012 12:36 am

When you're setting up keys for a Switch that uses text input, is there any way of adding synonyms to the key itself so that if you type in a variation of the word it will act accordingly?

Say I have the key listed as the player. Is there anyway to set it up like "player, yourself, you" ect to where typing any of those keywords is read the same way and runs the associated script?

Also...when using 'If' do you have to add an "else"? I want to make it so if a player has a certain flag one of the characters move to a different room after you leave. I've managed to set it all up fine and it works if add an else, but I don't really want anything to happen if the player has no flag. In other words, I don't want any alternative action to happen. Do I just leave it blank?
Emerae
 
Posts: 5
Joined: Sun May 20, 2012 5:15 am

Re: Switch "key" question and When using 'If'

Postby Pertex » Mon May 21, 2012 7:02 am

Yes, switch can handle multiple keywords. Try "player", "yourself", "you"

You must not use else if you don't need it. Just leave it blank
User avatar
Pertex
 
Posts: 1093
Joined: Fri Jul 09, 2010 9:52 am
Location: germany


Return to Quest Forum

Who is online

Users browsing this forum: No registered users and 2 guests

cron