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


Joined: 15 Oct 2007
Posts: 4

PostPosted: Tue Feb 10, 2009 7:27 pm   

Trigger / Alias issue
 
Im attempting to make a trigger create/change an alias. Basicly while xping Im trying to use as little as possible and make it easier for me haha
Assuming that Im xping in a box there would be 4 corners, each corner with a unique dis. I can get it to work if I manually make the 'dir' alias.
What Im trying to get to work is this:

Trigger: You are in the North West corner [e,s].
(Id like that to set off alias "dir") Ive tried #AL dir {s}


And then each corner would set off a different cardinal direction, so I could basicly use one key (Macro) to move and kill.

Any suggestions??

Thanks in advance
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4691
Location: Pensacola, FL, USA

PostPosted: Tue Feb 10, 2009 8:07 pm   
 
#TR {You are in the North West corner ~[e,s~]. } {dir}
_________________
Discord: Shalimarwildcat
Reply with quote
Valech
Newbie


Joined: 15 Oct 2007
Posts: 4

PostPosted: Tue Feb 10, 2009 11:08 pm   
 
Sorry I guess I wasn't very good at explaining haha (looking at it now....). What Id like is for that corner room to reset the alias 'dir' to a different direction hoping that it will save me time by eliminating the need to manually change 'dir' every time I'd like to move in a different direction.

This is what I started off with

Alias - Blah
#AC {"Room Deco" [e,s,nw].} {#alias dir {s}}
#AC {"Room Deco" [n,e,sw].} {#alias dir {e}}
#AC {"Room Deco" [n,w,se].} {#alias dir {n}}
#AC {"Room Deco" [ne,s,w].} {#alias dir {w}}


The alias 'dir' isn't being reset/updated once I enter that corner room.


Thanks again
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4691
Location: Pensacola, FL, USA

PostPosted: Wed Feb 11, 2009 12:20 am   
 
Looks like you are using your alias more like a Variable to me

take a look at '#HELP #VAR'
_________________
Discord: Shalimarwildcat
Reply with quote
Leitia
Adept


Joined: 04 May 2007
Posts: 292
Location: Boston

PostPosted: Wed Feb 11, 2009 1:51 am   
 
EDIT ooo, missed the point I think in a confusion about boxes and dir and cieling wax, you know what direction you want, hmm

The reason the thing is not moving is you are creating but not executing the alias, Help Var was great advice because you don't want an alias to execute itself which is a potential infinite loop. Anyway I will just take my nifty method of doing something like that but unrelated and steal away quietly.

Almost, do you even use the number keys?
Reply with quote
Leitia
Adept


Joined: 04 May 2007
Posts: 292
Location: Boston

PostPosted: Wed Feb 11, 2009 2:52 am   
 
#AC {"Room Deco" [(*)].} {#IF (%replace( %1, ",") == "esnw") {#exec s}}

That help? Commas are tricky. I know you want an alias but feel prior advice was more along the learning line. I do think you would be pulling hair over those commas.

Those others would follow, the trigger can be disabled but #exec s would be #var something. Dir can then be called to execute the Var

Leverage is on now, cool.
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