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
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Thu May 15, 2008 5:11 pm   

Variable not holding anything
 
#var ready " " _nodef {General Variables|Quest Variables}

Is set to not hold anything, however...

#TRIGGER Reload {^You may now quest again.$} {ready="You may quest."} {General Triggers|Quest Triggers}
#REGEX Quest_Off {^You hand .* to the (?:ancient elven questmaster|Bishop of New Thalos|priest of Cliath|High Priest of (?:Arkane|Althainia)).$}
{
Quest="off"
Place=" "
Room=" "
Quest_Item=" "
Earplugs="off"
ready="You may not quest."
} {General Triggers|Quest Triggers}


Both give it values. When these triggers run, however. The value never goes through. Why? Confused

Edit: Alright, correction: It works for you may quest, but when I turn in the quest, it never feeds it the new value.
Reply with quote
Troublemag
Wanderer


Joined: 14 Jul 2004
Posts: 83

PostPosted: Thu May 15, 2008 7:00 pm   
 
Once again, you need to provide us with examples of your MUD's output in order to give you any sort of definitive answer. Just giving us your scripts, while important, won't do anyone any good if we can't see what you're trying to match it against.
_________________
CMUDPro 3.22
Reply with quote
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Thu May 15, 2008 8:09 pm   
 
The MUD output is exactly what's in my trigger pattern. And, for the record, the second trigger works for everything else except the ready variable, so it's not the pattern or MUD output.
Reply with quote
Dharkael
Enchanter


Joined: 05 Mar 2003
Posts: 593
Location: Canada

PostPosted: Thu May 15, 2008 8:46 pm   
 
The MUD output can't be exactly what's in your patterns since the patterns contain metacharacters.
You're renown for ignoring the details Chamenas so take the time and post the output like Troublemag requested.
It will no doubt be helpful and it certainly won't hurt.

EDIT:While you're at it show us how you test and what the results are.
Using the Triggers and Variable you posted above I did:
Code:
#echo You may now quest again.
#echo @ready
#echo You hand somejunk to the ancient elven questmaster.
#echo @ready

This was the result
Code:

You may now quest again.
You may quest.
You hand somejunk to the ancient elven questmaster.
You may not quest.
_________________
-Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style."
Reply with quote
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Thu May 15, 2008 9:38 pm   
 
Dharkael wrote:
The MUD output can't be exactly what's in your patterns since the patterns contain metacharacters.
You're renown for ignoring the details Chamenas so take the time and post the output like Troublemag requested.
It will no doubt be helpful and it certainly won't hurt.

EDIT:While you're at it show us how you test and what the results are.
Using the Triggers and Variable you posted above I did:
Code:
#echo You may now quest again.
#echo @ready
#echo You hand somejunk to the ancient elven questmaster.
#echo @ready

This was the result
Code:

You may now quest again.
You may quest.
You hand somejunk to the ancient elven questmaster.
You may not quest.


Since the patterns work otherwise, I cannot see what you're arguing about. I'm asking a simple question, I can't get MUD output right now. But I'm trying to save time and trouble by explaining why it cannot logically be that since the patterns work just fine.
Reply with quote
Dharkael
Enchanter


Joined: 05 Mar 2003
Posts: 593
Location: Canada

PostPosted: Thu May 15, 2008 10:14 pm   
 
I had to infer the string from the pattern.
It's your problem the onus is on you.
And if you're already so sure of what the problem is or isn't then you should have already solved it.
There's a reason why it takes so much effort to help you with basic problems...
If you can't take the time to provide basic information.
I can't see why anyone should take the time to TRY and help.
_________________
-Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style."
Reply with quote
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Thu May 15, 2008 10:31 pm   
 
You act as if every post of mine lacks the information. When, in fact, if you look at my most recent posts, most of them have output. I'm not lazy, I don't leave out details.

I don't know what the problem is. I do know what the problem isn't. I don't know the answer, I know the answer isn't 1, however.

Both of the patterns work. The problem is with the variable.
_________________
Listen to my Guitar - If you like it, listen to more
Reply with quote
Dharkael
Enchanter


Joined: 05 Mar 2003
Posts: 593
Location: Canada

PostPosted: Thu May 15, 2008 10:32 pm   
 
Well then that's solved.
The problem is with the variable.
_________________
-Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style."
Reply with quote
Anaristos
Sorcerer


Joined: 17 Jul 2007
Posts: 821
Location: California

PostPosted: Fri May 16, 2008 12:15 am   
 
Silly me for getting involved in this, but your trigger works and the ready variable gets loaded properly. So I have no idea how is it that it isn't working for you. So the only way for this to fail, IMO, is that the trigger is not mapping the MUD output the way you think it is (the biggest reason why you were asked to provide MUD listing, so we could compare trigger to output).
_________________
Sic itur ad astra.
Reply with quote
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Fri May 16, 2008 12:30 am   
 
So explain why the trigger works for everything else then? It's only matching the pattern halfway?
_________________
Listen to my Guitar - If you like it, listen to more
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Fri May 16, 2008 12:42 am   
 
Chamenas, the thing with you is that you post a problem, then take 5 more posts to figure out your underlying issue. That, and sometimes, it's ridiculous stuff like you missing a brace or a parenthese. You don't appear to take time to figure it out yourself, or to search the forums for similar issues. Granted, this one is unique, but not too many of your posts can say that.

You say that the ready variable doesn't register. Have you tried changing order of your variable? Is the ready variable in a class that gets disabled before this line is triggered? Have you tried using #VAR instead of the = format? Check all this first and report back. There are probably a few more circumstances I've left out, but try anyway.

Charneus
Reply with quote
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Fri May 16, 2008 12:53 am   
 
It's not that I don't look them over but that I'm severely lacking in attention-to-detail. But I'm not an idiot and I know how to trouble shoot. I work at a help desk and so I know the logical steps to solving a problem. What you've done is offered me some things to test. The previous posters have put on their snooty glasses and told me they don't have enough information. They have more than enough information. If there's a solution to the problem, it's there, not in the output of the MUD.
_________________
Listen to my Guitar - If you like it, listen to more
Reply with quote
Anaristos
Sorcerer


Joined: 17 Jul 2007
Posts: 821
Location: California

PostPosted: Fri May 16, 2008 1:05 am   
 
Whatever.
_________________
Sic itur ad astra.
Reply with quote
Troublemag
Wanderer


Joined: 14 Jul 2004
Posts: 83

PostPosted: Fri May 16, 2008 1:15 am   
 
Chamenas, you remind me of when I worked in the repair group for a phone company. We had a customer call us up on his cell phone and reported that his phone wasn't working, so we ran line tests and made sure there wasn't anything physically wrong with his line. Then, in the course of trouble shooting with him as to where the problem may lie from the box inside, we asked him Stupid Question #1, which was "Is your phone plugged into the wall." You know what his response was after half an hour of testing? "I don't know. All I have is my cordless phone and we lost power, so it's too dark for me to see if it's plugged in or not."

What does this have to do with you? Well, all we can see of your problem is what you show us and all you're showing us is that it doesn't work for you. You keep posting excuses as to why you're positive it's something wrong with this or it has to be that when 75% of the time, you're not even at the computer that you use to access your game so you don't know for sure what you've got. If you work a help desk, then you should know how impossible you're making things for everyone who has gone out of their way to help you.

If you want help, real help, you're going to have to give us all of the information and stop posting half-assed, confusing responses that only muddle the problem. Oh, and we're not getting snooty. We're just tired of trying to get you to give the necessary information to actually help you.
_________________
CMUDPro 3.22
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Fri May 16, 2008 1:17 am   
 
Gentlemen. Please lets keep things civil. I really don't feel like having to delete posts, topics, etc. Just take a few moments, breathe, have a sip of your handy beverage of choice; and most importantly play nice.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
oldguy2
Wizard


Joined: 17 Jun 2006
Posts: 1201

PostPosted: Fri May 16, 2008 4:39 am   
 
Remember to escape the actual period since a "." in Regex will match any character.
Reply with quote
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Fri May 16, 2008 8:17 am   
 
Troublemag wrote:
Chamenas, you remind me of when I worked in the repair group for a phone company. We had a customer call us up on his cell phone and reported that his phone wasn't working, so we ran line tests and made sure there wasn't anything physically wrong with his line. Then, in the course of trouble shooting with him as to where the problem may lie from the box inside, we asked him Stupid Question #1, which was "Is your phone plugged into the wall." You know what his response was after half an hour of testing? "I don't know. All I have is my cordless phone and we lost power, so it's too dark for me to see if it's plugged in or not."

What does this have to do with you? Well, all we can see of your problem is what you show us and all you're showing us is that it doesn't work for you. You keep posting excuses as to why you're positive it's something wrong with this or it has to be that when 75% of the time, you're not even at the computer that you use to access your game so you don't know for sure what you've got. If you work a help desk, then you should know how impossible you're making things for everyone who has gone out of their way to help you.

If you want help, real help, you're going to have to give us all of the information and stop posting half-assed, confusing responses that only muddle the problem. Oh, and we're not getting snooty. We're just tired of trying to get you to give the necessary information to actually help you.


hahahahaha

If you think that information would help you after I've clearly stated why it wouldn't, then you can't help. I love it when people cannot help and instead of just admitting they can't help they just try to push it off on the other person. "well if you would just give me this..."

I'm going to go get the information now, just so you can see that the pattern works and how much it won't help you.

Edit:
And now it suddenly works, I love when problems do this.
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