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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
HawkeyeX
Beginner


Joined: 02 Mar 2005
Posts: 20

PostPosted: Tue Mar 15, 2005 3:47 am   

tnl trigger (newbie help)
 
If I want to have someone do something like this:

Someleader group-says 'tnl'

And I want to say:

gt I have <exp> to go till my next level, sir!

and my prompt is like this:

234H 202M 247V | (/) - 110808 >

how do I go about setting it up?

Thanks

Hawkeye-X
Reply with quote
Aarlot
Adept


Joined: 30 Dec 2003
Posts: 226

PostPosted: Tue Mar 15, 2005 3:58 am   
 
Assuming that the 110808 is your xp tnl, and that your prompt never changes:


#VAR tnl {}
#TRIGGER {%dH %dM %dV ~| ~(~/~) ~- (%d) ~>} {tnl = %1} "" {nocr|prompt}
#TRIGGER {%w group-says ~'tnl~'} {gt I have @tnl xp to go till my next level, sir!}


should work. Copy/paste to command line and hit enter
_________________
Everyone is entitled to their beliefs - until they die. Then only the truth matters.
Reply with quote
HawkeyeX
Beginner


Joined: 02 Mar 2005
Posts: 20

PostPosted: Tue Mar 15, 2005 4:17 am   
 
It doesn't work.

Esp group-says, 'tnl'

241H 209M 251V | (/) - 1719013 >
Hartman group-says, 'I need 212005 exp to level.'

It should say

You group-say, 'I have 1719013 xp to go till my next level, sir!
Reply with quote
Aarlot
Adept


Joined: 30 Dec 2003
Posts: 226

PostPosted: Tue Mar 15, 2005 4:59 am   
 
ah, you didn't include the comma in your first group-say example....


#VAR tnl {}
#TRIGGER {%dH %dM %dV ~| ~(~/~) ~- (%d) ~>} {tnl = %1} "" {nocr|prompt}
#TRIGGER {%w group-says, ~'tnl~'} {gt I have @tnl xp to go till my next level, sir!}
_________________
Everyone is entitled to their beliefs - until they die. Then only the truth matters.
Reply with quote
Apollyon
Wanderer


Joined: 02 Oct 2001
Posts: 76
Location: USA

PostPosted: Wed Mar 16, 2005 10:14 pm   
 
#var tnl 123123
#trigger {(*)~(~/~) ~- (%d) ~>} {#var tnl %2}
#trigger {(*)group-says, 'tnl'} {gt I have @tnl xp to go until my next level, sir!}

that should work, and also allow for group leaders to be named like bilbo the great and such...
Reply with quote
Aarlot
Adept


Joined: 30 Dec 2003
Posts: 226

PostPosted: Thu Mar 17, 2005 1:01 am   
 
Mine would work with bilbo the great as well, since it's not anchored at the start of the line... and taht second trigger needs the {nocr|prompt}
_________________
Everyone is entitled to their beliefs - until they die. Then only the truth matters.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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