room program help needed

Posted by Ghsthntr on Tue 10 Apr 2007 12:30 AM — 8 posts, 32,030 views.

USA #0
Okay, its been awhile since i played with programs and triggers. What i am looking for is is there a way to make the trigger ask a question wait for a response and act on the response through an if then statement.

if there is a way to accomplish this what would be an example that i could use to meet my needs.
USA #1
What would trigger the question to be asked?
USA #2
well its activated by speech. im trying to make a vending machine that is voice activated. so by example i would use a key phrase to activate the device then say what i wanted, and after have the device deactivate.

my problem is that if i use multi triggers looking for the options i keep setting them off with basic dialog with. what i was hopping was that i could have that trigger phrase in place so that wouldn't happen any more.
USA #3
If you're trying to only allow the response to be triggered after the player asks already sees the question, then it's not possible with stock progs. Of course, it'd be easy enough to code something in. For example, the snippet for qbits/abits would solve this.
USA #4
ok, thanks I've been scratching my head for day on this one.
USA #5
Actually, it *is* possible but its rather convoluted. Have the trigger phrase give the player a token, they dont even have to be able to see it, and check for possession of the token in the checks for goods from the machine. You can either have the tokens decay on their own or have the machine grab and destroy them when it shuts down.
USA #6
Then you run into problems such as the players inven is full, their mental state is bad, etc. There are multiple things that could go wrong there.
USA #7
Perhaps, but I'm only attempting to answer the question as asked instead of reading issues that don't exist into it.