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
obor
Wanderer


Joined: 20 Dec 2001
Posts: 56
Location: USA

PostPosted: Wed Apr 10, 2002 1:09 pm   

lost my settings and forgot this easy one
 
i have an alias set to regain my weapon. It is

pattern: DISARMS you
action: get @weap1;wear @weap1;sec @weap2

obviously this is for a character with dual wield. Now, I have a variety of weapons, but for this sake, we'll only use one example, because once I am reminded how to do this one example, I can apply it to the others.

I need to set something up whereby I can define my new vampiric weapons as I get them, and "integrate" them into my disarm trigger. Example:

alias is "setvamp". I type "setvamp", it prompts me for my primary vampiric weapon (#PR vamp1), then prompts me for my secondary vampiric weapon (#PR vamp2).

when I type "vamp", it reads the information in vamp1 and vamp2, wears those weapons, and sets vamp1 = weap1, and vamp2 = weap2. That way, when i'm wearing my vampiric weapons, my disarm trigger will work.

therefore, I type "setvamp", and it prompts me for my primary vamp weapon ('devil's pitchfork'), and my secondary vamp weapon ('serpentine dagger')

When I type "vamp", I wear the Devils' pitchfork, and second the serpentine dagger. If I get disarmed, i will grab the devil's pitchfork, wear it, and second the serpentine dagger.

I also will apply this for "stun1" and "stun2", which will be totally different weapons, and when I type "stun", I wear my primary and secondary stun weapons. If I get disarmed, @weap1 and @weap2 will have already been updated with the info from @stun1 and @stun2, so I will grab my stun weapon, wear it, second my secondary stun weapon.

Anyway, sorry so long and drawn out, but I wanted to be sure I explained it. Any help greatly appreciated.
Reply with quote
Troubadour
GURU


Joined: 14 Oct 2000
Posts: 556
Location: USA

PostPosted: Wed Apr 10, 2002 3:55 pm   
 
Sounds like a good plan. What is your question?

Troubadour
Reply with quote
obor
Wanderer


Joined: 20 Dec 2001
Posts: 56
Location: USA

PostPosted: Thu Apr 11, 2002 7:18 am   
 
my question? How do I do what I want to do in zmud? I don't know the syntax to get it to work.
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Thu Apr 11, 2002 7:50 am   
 
pattern: DISARMS you
value:
get @weap1
wear @weap1
sec @weap2

alias:setvamp
value:
#VAR vamp1 %prompt(devil's pitchfork,"Vamp1:")
#VAR vamp2 %prompt(serpentine dagger,"Vamp2:")

alias:vamp
value:
#VAR weap1 @vamp1
#VAR weap2 @vamp2
wear @weap1
sec @weap2

alias:setstun
value:
#VAR stun1 %prompt(blackjack or whatever,"Stun1:")
#VAR stun2 %prompt(bobby's mace or whatever,"Stun2:")


alias:stun
value:
#VAR weap1 @stun1
#VAR weap2 @stun2
wear @weap1
sec @weap2

Ton Diening
Reply with quote
obor
Wanderer


Joined: 20 Dec 2001
Posts: 56
Location: USA

PostPosted: Thu Apr 11, 2002 11:32 am   
 
aha! that's it!

that reminded me what i had!

i have a slightly different version of the alises tho:

alias:setvamp
value:
#VAR vamp1 %prompt(devil's pitchfork,"Vamp1:")
#VAR vamp2 %prompt(serpentine dagger,"Vamp2:")

instead, i have:
alias: setvamp
value: #pr vamp1;#pr vamp2

that way i can "update on the fly", by tping "setvamp", and it prmopts me. the part about:

alias:vamp
value:
#VAR weap1 @vamp1
#VAR weap2 @vamp2
wear @weap1
sec @weap2

was the main part i was missing. thanks! =)
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