Okay, CMUD gots me stumped.

by Unknown

Back to Mechanic's Corner.

Unknown2009-04-18 11:01:17
Nope that dont seem right. ..It highlights everything.. Lol.

Hrm.
Unknown2009-04-25 11:32:28
Alright, there's another thing that I want to do. Let's say I want to do a customized say alias.

Right now I have..

CODE

  ~say (With eyes gleaming grimly as her expression turns dead cold) %1


I want it to when I type grimsay Take upon your transgression and consume it with no mercy.

It'll go - With eyes gleaming grimly as her expression turns dead cold, you say, "Take upon your transgression and consume it with no mercy."

But instead, it'll go - With eyes gleaming grimly as her expression turns dead cold, you say, "Take."

I know I'm missing something, but I want whatever comes after my alias to be executed. Seems %1 didnt cut it.

Halp?
Ilyarin2009-04-25 13:42:13
%-1

Unknown2009-04-25 13:50:36
Awesome. That worked. tongue.gif
Vhaas2009-05-05 00:38:43
I am attempting to code my offense system. However, I run into the following problem that thwarts the entire design- it automatically condenses.

#ALIAS TEST @swingstyle1 @swingatk1 @target

CODE
smashlefttarget


Obviously, that command will not work.

What I need to do is learn how to create space, both within variables, and between them in things such as this alias. I will be very thankful if someone could point me in the right direction.

EDIT: Of course I could use lengthy #IF statements, but I would rather avoid that and the potential lag.
Unknown2009-05-05 00:55:08
Hmmm.

#alias TEST

Value:
swingstyle1 = %1
swingatk2 = %1
target = %3

?

So you can do TEST smashleft target
Try that? biggrin.gif Well, it it was what you're looking for.
Vhaas2009-05-05 00:58:22
QUOTE (lussien @ May 4 2009, 04:55 PM) <{POST_SNAPBACK}>
Hmmm.

#alias TEST

Value:
swingstyle1 = %1
swingatk2 = %1
target = %3

?

So you can do TEST smashleft target
Try that? biggrin.gif Well, it it was what you're looking for.


Ah, I should have clarified. That would change the values of the variables, which is not what I am attempting to do. I want all three variables' values to be executed in order, with proper spacing, to form the Lusternian command 'smash left @target (krokani)'.
Unknown2009-05-05 01:09:38
CODE
#ALIAS test {#EXEC @swingstyle1 @swingatk1 @target}
Vhaas2009-05-05 01:12:15
QUOTE (Zarquan @ May 4 2009, 04:09 PM) <{POST_SNAPBACK}>
CODE
#ALIAS test {#EXEC @swingstyle1 @swingatk1 @target}


wub.gif


Thank you kindly!
Placeus2009-05-05 08:05:10
QUOTE (Zarquan @ May 5 2009, 11:39 AM) <{POST_SNAPBACK}>
CODE
#ALIAS test {#EXEC @swingstyle1 @swingatk1 @target}


CODE
%concat(@swingstyle1, " ", @swingatk1, " ", @target)  will also work


I've found #EXEC breaks in weird ways if you're trying to nest special characters ( " ~ etc... so have had to fall back on %concat