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
rye_encoke
Newbie


Joined: 11 Aug 2004
Posts: 7

PostPosted: Mon Sep 06, 2004 6:03 pm   

help with trigger
 
Hiya

I need help making a trigger. I have read through the help files
but just can't seem to make it work. I want one that will auto-wield
my weapon when I have been disarmed.

Basically the mud will put out the text.

A (insert mob name here) disarms you and sends your
(insert weapon name here) flying.

I need the trigger to be able to see when I am disarmed
and then wield whatever weapon I am currently using. I
guess I am looking for help with wildcards or something
but like I said havent been able to figure it out
Reply with quote
doomfyre
Apprentice


Joined: 03 Jan 2002
Posts: 152
Location: USA

PostPosted: Mon Sep 06, 2004 6:30 pm   
 
#ALIAS weap {#var weapon %1}
#TRIGGER {* disarms you and sends your * flying.} {get @weapon; wield @weapon}

This is the most basic one i can come up with. You start by copy/pasting the above into your command line and pressing enter. Then, you type "weap" followed by the shortname of your weapon. weap longsword for example.

This is slightly abuseable by players unless you use an ansi trigger (provided your mud shows disarm messages in anything other than grey). Also, it won't work well if you're dual wielding two different weapons. Let us know if you need something more elaborate.
Reply with quote
rye_encoke
Newbie


Joined: 11 Aug 2004
Posts: 7

PostPosted: Mon Sep 06, 2004 6:36 pm   
 
hmmm okay thanks....not exactly what I was hoping for

I was hoping for (and I know this isnt correct)

but the mud puts out something like

$1 disarms you and sends your $2 flying

then zmud does

wield $2

but the problem is that $2 is sometimes three four or five words

but I will use the above thanks.
Reply with quote
doomfyre
Apprentice


Joined: 03 Jan 2002
Posts: 152
Location: USA

PostPosted: Mon Sep 06, 2004 6:53 pm   
 
Right. Let's try an example, to show how my trigger and alias work together. Let's say your weapon is called Flaming Sword of Many Deaths. You have input my alias and trigger above, and you typed weap sword to set your weapon to sword (a most likely short name for that weapon}. So, you are happily bashing on a mob, and suddenly....

A newbie killer disarms you and sends your Flaming Sword of Many Deaths flying.

With my trigger, your actions would then be....

get sword
wield sword

This seems to be what you're after, unless i'm horribly mistaken. Let us know =D
Reply with quote
rye_encoke
Newbie


Joined: 11 Aug 2004
Posts: 7

PostPosted: Mon Sep 06, 2004 6:53 pm   
 
woohoo

okay so the above didnt work...no idea why
BUT I took out the alias and kept the first part of the
trigger, then just put wield hammer

so now as long as every time I get a new weapon
I go in and change the trigger it all works

thanks so much...it was all so simple once someone
else pointed it out

huggles to all and extra huggles to doomfyre
Reply with quote
doomfyre
Apprentice


Joined: 03 Jan 2002
Posts: 152
Location: USA

PostPosted: Mon Sep 06, 2004 6:57 pm   
 
Hmm, no idea why the alias wouldn't work either. It would sure save you having to change your trigger every time you get a new weapon though.

At any rate, i'm glad you got it to work.
Reply with quote
Falan
Wanderer


Joined: 17 Aug 2004
Posts: 98
Location: OK, USA

PostPosted: Tue Sep 07, 2004 6:50 am   
 
How about,

#TR {^A * disarms you and sends your (%w) flying.} {get %-1; wield %-1}

Removed the get command if not needed.
_________________
zMUD 7.05a
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