Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Feban
Newbie


Joined: 06 Jun 2018
Posts: 9
Location: Homedale Idaho

PostPosted: Tue Jan 15, 2019 5:03 pm   

Need some help!
 
Alright, so I am not used to using these windows in Cmud to make triggers.. I've been playing using MM for a long time. I am trying to make a trigger to capture multiple lines, send them to a window, and then trigger off, closing that window. Ill show some text here.
Please type in the characters shown below using the command "captcha <answer>":
Code:
 _   _   _   _   _____  __    __  _ 
| | | | | | | | | ____| \ \  / / | |
| | | | | | | | | |__    \ \/ /  | |
| | | | | | | | |  __|    \  /   | |
| |_| | | |_| | | |___    / /    | |
\_____/ \_____/ |_____|  /_/     |_|


I want the captcha to go into a temp window called Captcha

Then
Your Captcha response is correct, thank you!
I want to close that window.

A friend tried helping me in mud, but only confused me with creating multi state and choosing with in two lines and one line, and yea well im confused.. I am not used to using my mouse or navigating windows to create triggers, or a script so if I cant type it out I am lost. Any help thanks

Feban
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 3959
Location: Pensacola, FL, USA

PostPosted: Wed Jan 16, 2019 3:40 am   
 
A multistate trigger is definitely the way to go here.
Is there some sort of delimiter at the bottom to let you know when the block is over (even if just a blank line or your prompt)?

Code:
#TRIGGER {Please type in the characters shown below using the command "captcha <answer>": } {
  #MAKEWINDOW Captcha open "floating"
  #MAKEWINDOW Captcha Redirect
  }
#CONDITION {*} {#IF (%length(%line)>3) {#STATE 1} {#MAKEWINDOW _previous Redirect}} {Within|Param=1}

Something like that will redirct text to the new window til you get a line with less than 4 characters on it.

#TRIGGER {Your Captcha response is correct, thank you!} {#MAKEWINDOW Captcha close}
_________________
Discord: Shalimar#3679
Reply with quote
Feban
Newbie


Joined: 06 Jun 2018
Posts: 9
Location: Homedale Idaho

PostPosted: Wed Jan 16, 2019 7:32 am   
 
Yeah, prompt after.
Reply with quote
Feban
Newbie


Joined: 06 Jun 2018
Posts: 9
Location: Homedale Idaho

PostPosted: Wed Jan 16, 2019 7:35 am   
 
Send me an email pls. furctose@gmail.com
Reply with quote
Feban
Newbie


Joined: 06 Jun 2018
Posts: 9
Location: Homedale Idaho

PostPosted: Wed Jan 16, 2019 7:40 am   
 
I did what you said, it came back with errors.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 3959
Location: Pensacola, FL, USA

PostPosted: Wed Jan 16, 2019 1:48 pm   
 
Can you be more specific?
_________________
Discord: Shalimar#3679
Reply with quote
Feban
Newbie


Joined: 06 Jun 2018
Posts: 9
Location: Homedale Idaho

PostPosted: Thu Jan 17, 2019 6:48 am   
 
Is there anyway to paste a screenshot?
Reply with quote
Feban
Newbie


Joined: 06 Jun 2018
Posts: 9
Location: Homedale Idaho

PostPosted: Thu Jan 17, 2019 6:50 am   
 
Okay, so since I cant figure out how to paste a screenshot here.
As soon as I paste what you posted into the command line, I get this error.
Parse error.
Error Parsing command:
#TRIGGER {Please type in the characters shown below using the command "captcha <answer>": } {
#MAKEWINDOW Captcha open "floating"
#MAKEWINDOW Captcha Redirect
}
#CONDITION {*} {#IF (%length(%line)>3) {#STATE 1} {#MAKEWINDOW _previous Redirect}} {Within|Param=1}
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 3959
Location: Pensacola, FL, USA

PostPosted: Fri Jan 18, 2019 12:28 pm   
 
ahh thats an issue with an improper function call, my bad, try:

#TRIGGER {Please type in the characters shown below using the command "captcha <answer>": } {
#MAKEWINDOW Captcha open "floating"
#MAKEWINDOW Captcha Redirect
}
#CONDITION {*} {#IF (%len(%line)>3) {#STATE 1} {#MAKEWINDOW _previous Redirect}} {Within|Param=1}
_________________
Discord: Shalimar#3679
Reply with quote
Feban
Newbie


Joined: 06 Jun 2018
Posts: 9
Location: Homedale Idaho

PostPosted: Wed Jan 23, 2019 4:56 am   
 
Doesn't work. Just doesn't do anything.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 3959
Location: Pensacola, FL, USA

PostPosted: Wed Jan 23, 2019 5:34 am   
 
It works on my side.
If the triggers aren't firing, then the pattern you provided isn't accurate.
Edit the pattern accordingly until it works.
_________________
Discord: Shalimar#3679
Reply with quote
Feban
Newbie


Joined: 06 Jun 2018
Posts: 9
Location: Homedale Idaho

PostPosted: Sat Jan 26, 2019 2:08 am   
 
Alright, just for measure, I deleted every trigger I had to test,
Please type in the characters shown below using the command "captcha <answer>": is the pattern.
It still does nothing. Not sure what I could be doing wrong, I am simply pasting into the input bar. It works on your end? Ahh... You play there too?
Reply with quote
Feban
Newbie


Joined: 06 Jun 2018
Posts: 9
Location: Homedale Idaho

PostPosted: Sat Jan 26, 2019 2:12 am   
 
Well after clicking on the trigger button, and looking at the First pattern, the second pattern shows up as a red * and the #IF part (%len(%line)>3) {#STATE 1} is all colored up i see megneta, green and yellow in the line.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 3959
Location: Pensacola, FL, USA

PostPosted: Sat Jan 26, 2019 1:32 pm   
 
The coloring isn't an issue, it is there to make it easier to troubleshoot code while skimming.

And no, i don't even know where there is.

The code words with the sample provided... unless they are being sneaky and disguising the info as prompt data...

Try checking on Prompt and uncheck on new line, in the options at the bottom of the #TRIGGER and see if that works.
_________________
Discord: Shalimar#3679
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net