TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

Action problem

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
allfallsdown



Joined: 17 Jul 2005
Posts: 22

PostPosted: Thu Dec 01, 2005 11:57 pm    Post subject: Action problem Reply with quote

Hey, Smile

Before all the posts got wiped from this board, I posted a thread with a problem I had where, for example, I had a trigger which was:

Code:
#ac {You are hungry.} {eat bread}


And the trigger worked fine if it was on a new line, but the problem was that if the message wasn't on a new line, such as this:

Code:
< 1970(1970)hp 2740(2740)mana 300(300)mv > You are hungry.


Then the trigger wouldn't work.

----------

Since then I have figured out what is causing the problem... It is because I also have another trigger which triggers on the prompt like this:

Code:
#ac {< %0(%1)hp} {whatever}


And because that prompt is already getting triggered, if I get anything after that prompt on the same line, they won't set off any other triggers..

..

Is there any way around this problem at all?

..

I tried making a trigger to remove the prompt trigger at times that I don't need it to be in action. But I can't seem to get variables such as %1 and %0 for my prompt to work if I create a trigger from inside another trigger.

Maybe there's a command which lets you temporarily disable triggers that I am unaware of?

Anyway.. any help would be greatly appreciated.

Thanks again..
Smile
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Fri Dec 02, 2005 12:48 pm    Post subject: Reply with quote

You have a couple of options.

1) If your mud allows it you can add a carriage return to your prompt.

2) You can give the eat trigger a higher priority:

#act {You are hungry.} {eat bread} {4} /* default priority is 5 */

3) You use the #class command to load triggers when you need them, and delete them when you're done with them.
Back to top
View user's profile Send private message Send e-mail
allfallsdown



Joined: 17 Jul 2005
Posts: 22

PostPosted: Fri Dec 02, 2005 9:16 pm    Post subject: Reply with quote

Thanks very much.

The priority setting works just fine Big Smile

Very good work with tintin++ .. it's the only mud client worth using on mac OSX
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> General Discussion All times are GMT - 5 Hours
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
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group