|
HawkeyeX Beginner
Joined: 02 Mar 2005 Posts: 20
|
Posted: 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 |
|
|
|
Aarlot Adept
Joined: 30 Dec 2003 Posts: 226
|
Posted: 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. |
|
|
|
HawkeyeX Beginner
Joined: 02 Mar 2005 Posts: 20
|
Posted: 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! |
|
|
|
Aarlot Adept
Joined: 30 Dec 2003 Posts: 226
|
Posted: 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. |
|
|
|
Apollyon Wanderer
Joined: 02 Oct 2001 Posts: 76 Location: USA
|
Posted: 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... |
|
|
|
Aarlot Adept
Joined: 30 Dec 2003 Posts: 226
|
Posted: 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. |
|
|
|
|
|