Register to post in forums, or Log in to your existing account
 
:
Search found 4 matches for:
Page 1 of 1
Author Message
  Topic: Newbie Alias/Variable question, coming from Zmud
SomeGuy

Replies: 5
Views: 9297

PostForum: CMUD General Discussion   Posted: Fri Jan 06, 2017 3:43 pm   Subject: Newbie Alias/Variable question, coming from Zmud
Ok, I resolved it this way.

#ALIAS k {#IF (%1 != %null) {#VAR target %1;kill %1;speed up};{kill @target;speed up}}

I tested and it's working now.

https://i.imgur.com/DeJRnP6.png
  Topic: Newbie Alias/Variable question, coming from Zmud
SomeGuy

Replies: 5
Views: 9297

PostForum: CMUD General Discussion   Posted: Fri Jan 06, 2017 3:39 pm   Subject: Newbie Alias/Variable question, coming from Zmud
No brace issue in his code....
Did you enter it on the command line, or try to insert it into your preexisting alias?

I pasted it to the command line, and got this error screen.

https://i.imgur ...
  Topic: Newbie Alias/Variable question, coming from Zmud
SomeGuy

Replies: 5
Views: 9297

PostForum: CMUD General Discussion   Posted: Fri Jan 06, 2017 2:00 pm   Subject: Newbie Alias/Variable question, coming from Zmud
You could just check if %1 is not null before overwriting your variable:
#alias k {#IF (%1 != %null) {#VAR target %1};kill @target;speed up}

That's exactly what I would ...
  Topic: Newbie Alias/Variable question, coming from Zmud
SomeGuy

Replies: 5
Views: 9297

PostForum: CMUD General Discussion   Posted: Thu Jan 05, 2017 10:09 pm   Subject: Newbie Alias/Variable question, coming from Zmud
In Zmud I had a very very basic alias, that I cannot for the life of me replicate in CMud

#ALIAS k {#VAR target %1;kill @target;speed up}

In Zmud, I could type k rabbit, and it would send the fo ...
 
Page 1 of 1
All times are GMT
© 2009 Zugg Software. Hosted on Wolfpaw.net