I realize that there hasn't been a post in the last week so I won't hold my breath for a reply.
My issue revolves around StormFront's unwillingness to match an echo'ed phrase. I believe the wizard does this. I've tried to work around it to no avail. Using the put command to submit the phrase to a match string also failed. It seems the only to ways to have a phrase matched are to a)submit it by hand or b)have the script submit the phrase by using it with a verb that returns the phrase as part of the game mechanics. As shown below, the first and second matches will always fail, the third and fourth matches will always succeed.
Start:
Match 1 1
Match 2 2
Match 3 3
Match 4 4
Echo 1
put 2
put Say 3
matchwait
1:
Echo Matched Echo
goto Exit
2:
Echo Matched Put
goto Exit
3:
Echo Matched Say
goto Exit
4:
Echo Matched Manual Entry
Exit:
Exit
The problem with this is there is no way to have the script match an internal value (in my case a regurgitated variable) without interacting with the game environment. In the Wizard, I found this method of matching to be very useful and I'm disappointed that StormFront will not support it. Is it possible to add this bit of functionality to StormFront? If not, is there a viable alternative? Perhaps someone could suggest a fairly simple way around this little inconvenience. I'd really rather not have to disrupt the game environment by spitting out gibberish in order to satisfy a match.
C. J.
Matching echo on 05/02/2005 12:34 PM CDT
Re: Matching echo on 05/02/2005 12:51 PM CDT
To get around matching an echo, I've always just preceded it with some nonsense characters so it goes into the game. Example:
instead of "echo I had a sandwich" I'd put "put asdfg I had a sandwich" which will, of course, return a "Please rephrase that command" response, but it will also acknowledge it into a script. I use this function also when I'm creating scripts that start with a numbered menu, so I can choose option 1, 2, etc by typing the appropriate number and sending it in.
-Durnil
instead of "echo I had a sandwich" I'd put "put asdfg I had a sandwich" which will, of course, return a "Please rephrase that command" response, but it will also acknowledge it into a script. I use this function also when I'm creating scripts that start with a numbered menu, so I can choose option 1, 2, etc by typing the appropriate number and sending it in.
-Durnil
Re: Matching echo on 05/02/2005 01:31 PM CDT
Re: Matching echo on 05/02/2005 03:02 PM CDT
Re: Matching echo on 05/02/2005 03:09 PM CDT
Other possibilities, if the number of responses from the game are limited:
Using a match/matchwait directly on the reponse from the game that makes you want to branch.
Using IF_# and a variable to set the response to the proper branch of your script.
Depending on what you want to happen, there may be other ways to get there, too.
~Kyn (Kynevon)
Info Page http://kynevon.info
Mac OS X FE http://tinyurl.com/9xjyj
Amagaim's What to Hunt Chart
Excel format: http://tinyurl.com/44jlt
HTML format: http://tinyurl.com/6tpls
Using a match/matchwait directly on the reponse from the game that makes you want to branch.
Using IF_# and a variable to set the response to the proper branch of your script.
Depending on what you want to happen, there may be other ways to get there, too.
~Kyn (Kynevon)
Info Page http://kynevon.info
Mac OS X FE http://tinyurl.com/9xjyj
Amagaim's What to Hunt Chart
Excel format: http://tinyurl.com/44jlt
HTML format: http://tinyurl.com/6tpls
Re: Matching echo on 05/03/2005 02:44 AM CDT
Thanks for the replies. I have high hopes for echocolumn. If it's processed by DR and then returned to the FE, it might just get a match. I'm keeping my fingers crossed. As soon as DR is back up, I'll test it out.
I'm confused though. I figured with all the big scripters out there, I wasn't likely to be the only one that encountered this obstacle. Of course, other people probably pay for an FE with dedicated commands that do this stuff.
C. J.
P.S. If you see happen to something similar to this while you're playing, I probably didn't get it to work.
>
C. J. just arrived
C. J. says, "XWMGuild2"
>
C. J. just went through the northeast gate.
I'm confused though. I figured with all the big scripters out there, I wasn't likely to be the only one that encountered this obstacle. Of course, other people probably pay for an FE with dedicated commands that do this stuff.
C. J.
P.S. If you see happen to something similar to this while you're playing, I probably didn't get it to work.
>
C. J. just arrived
C. J. says, "XWMGuild2"
>
C. J. just went through the northeast gate.
Matching echo solved on 05/03/2005 02:54 AM CDT
Re: Matching echo solved on 05/03/2005 10:59 AM CDT
Problem solved I guess, but what I've done in the past is use a non-intrusive verb such as YES to check for being out of stun/RT.
I also came across a verb once that actually did put the argument into the output--for example you'd type 'verb xyzxx' and the output would be something like 'What kind of thing is xyzxx?' But of course, I didn't write it down and can't remember what it was. That sound familiar to anyone?
I also came across a verb once that actually did put the argument into the output--for example you'd type 'verb xyzxx' and the output would be something like 'What kind of thing is xyzxx?' But of course, I didn't write it down and can't remember what it was. That sound familiar to anyone?
Re: Matching echo solved on 05/03/2005 12:42 PM CDT
Re: Matching echo solved on 05/03/2005 01:23 PM CDT
Re: Matching echo solved on 05/03/2005 03:05 PM CDT