|
miegorengman Wanderer
Joined: 05 Sep 2008 Posts: 51
|
Posted: Fri Sep 05, 2008 6:21 am
newb questions |
oks, i know nothing about programming, i know nothing about reading code, the few things i do know are from reading helpfiles and trial and error...
i made a convinient little alias for setting a group of variables as follows:
#ALIAS dcal {set combat allocation = left hand,b,%1,d,%2,s,%3,a,%4,n,300}
in zMUD this works just fine, but for some reason in cMud whatever i enter results in an error...
any help appreciated... |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4690 Location: Pensacola, FL, USA
|
Posted: Fri Sep 05, 2008 7:01 am |
Is this what you want?
#ALIAS dcal {#SEND {set combat allocation = left hand};b=%1;d=%2;s=%3;a=%4;n=300}
Not sure what you are trying to do here otherwise. |
|
_________________ Discord: Shalimarwildcat |
|
|
|
miegorengman Wanderer
Joined: 05 Sep 2008 Posts: 51
|
Posted: Fri Sep 05, 2008 7:47 am |
the actual format of the the command must be like the following
set combat allocation = left hand,b,25,d,25,s,25,a,25,n,300
the %1 and so through zMud would let me enter
dcal 25 25 25 25
and i would end up with the result above, but cMud for some reason does not like to allow the use of %1 and the like without spaces on each side...and i'm trying to recreate my beloved alias cause issa pain to type in that mess every time i want to adjust somthing by one number |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4690 Location: Pensacola, FL, USA
|
Posted: Fri Sep 05, 2008 8:31 am |
#ALIAS dcal {#SEND {set combat allocation = left hand,b,%1,d,%2,s,%3,a,%4,n,300}}
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Fri Sep 05, 2008 12:30 pm |
Just so you understand what was causing the error in your original code: the problem is the equal sign. In Cmud you need to be a bit more careful than in Zmud about escaping the equal sign: ~=
The reason Shalimar's code works is that the inner set of braces acts like quotation marks, making everything within it a string which is not evaluated. |
|
|
|
|
|
|
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
|
|