|
DoMiNaTiOn Newbie
Joined: 14 Nov 2001 Posts: 2
|
Posted: Wed Nov 14, 2001 6:22 pm
Trigger help |
i need some help making this trigger. what i want it to do is so when someone follows me, i group them. i got that part down. now, after i group them, i have the trigger do last %1, so i get information about their character. when do do a last <character>, you get this information.
<name> the <race> is a 46th level <class> and was last logged in on Wed Nov 14 00:12:16 2001.
that then would start a new trigger. what i want to do is have it grouptell Please welcome <name>, who is a level <level> <race> <class>, to the group. an example would be Please welcome Grar, who is a level 20 Troll Warrior, to the group. But the level is followed by letters, as in 22nd, or 46th. how can i get just the level number, or even the entire thing, letters and all. i tried both (%d) and (%w), and neither worked. please help me out. im using zmud 3.61. thanx |
|
|
|
Darker GURU
Joined: 24 Sep 2000 Posts: 1237 Location: USA
|
Posted: Wed Nov 14, 2001 6:35 pm |
#trig {(%w) the (%w) is a (*) level (%w) and was last logged in} {grouptell Please welcome %1, who is a level %replace(%replace(%replace(%replace(%3, "nd", ""), "th", ""), "st", ""), "rd", "") %2 %4}
Not sure %replace is valid in 3.61.
zMUD 6 Online Help: All the power you'll ever need. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Wed Nov 14, 2001 7:31 pm |
The easy way would be to accept the MUD's formatting.
#TR {^(%w) the (%w) is a (%a) level (%w)} {grouptell Please welcome %1~, who is a %3 level %2 %4}
This should give you:
Please welcome Grar, who is a 20th level Troll Warrior
Alternatively, you might try:
#TR {^(%w) the (%w) is a (%d)%w level (%w)} {grouptell Please welcome %1~, who is a level %3 %2 %4}
NOTE: There is no space between the (%d) and the %w
LightBulb |
|
|
|
DoMiNaTiOn Newbie
Joined: 14 Nov 2001 Posts: 2
|
Posted: Wed Nov 14, 2001 11:02 pm |
thanx so much, that worked. i didnt know there was a (%a) command
|
|
|
|
|
|
|
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
|
|