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


Joined: 20 Jan 2004
Posts: 8

PostPosted: Sat Jul 10, 2004 1:18 pm   

Trigger
 
Hello,

I got 2 questions.
The first one is:
I want to attack a creature with a game with my weapon and a spell.
For example i want to attack a shopper. then i have to type k sh;c fb sh. But i would like with aliases so i only have to type kfb sh and the zmud makes it k sh;c fb sh. Tried some things, but i don't want to type kfb sh and that a trigger sees that (got that working). This way the server gets unless information and i got a message that the command doesn't exist (the kfb sh).
So can anybody help try to make an aliases with it? (cause with aliases i think you can't use the variable %d)

The 2nd one is:
When i want to flee in a battle i have to remove my weapon first, else i drop it on the ground and run away.
So i want to make a trigger that when i wiel my weapon a macro is made which says rm <weapon>;flee and a trigger that when you fumble my weapon it says wie <weapon).

Can anybody help me with it?
Reply with quote
Danlo
Magician


Joined: 28 Nov 2003
Posts: 313
Location: Australia

PostPosted: Sat Jul 10, 2004 2:35 pm   
 
The alias:
#alias kfb {k %-1;c fb %-1}

The Trigger:
#alias wie {#var Weapon {%-1};~wie %-1}
#trigger {You wield *} {<F1>={#exec {rm @weapon%cr flee}}}
#trigger {You fumble and lose *} {<F1>={wie @weapon}}
Reply with quote
arnaudmol
Newbie


Joined: 20 Jan 2004
Posts: 8

PostPosted: Sat Jul 10, 2004 3:23 pm   
 
ohhh thx :)
Reply with quote
arnaudmol
Newbie


Joined: 20 Jan 2004
Posts: 8

PostPosted: Sat Jul 10, 2004 3:41 pm   
 
The 1st one works, but the 2nd at the 1st trigger i get an error:

F1={#exec {rm @weapon%cr flee}}
^ syntax error

?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Jul 10, 2004 4:08 pm   
 
Skip the first trigger. The macro already has a variable so you don't need a trigger to change it. I don't think you wanted to change the macro, so I've altered the second trigger to just wield the weapon.
#KEY F1 {rm @weapon;flee}
#TR {You fumble and lose} {wie @weapon}
Reply with quote
arnaudmol
Newbie


Joined: 20 Jan 2004
Posts: 8

PostPosted: Sat Jul 10, 2004 6:24 pm   
 
Yep, works now. 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