|
Drahkuna Beginner
Joined: 15 Apr 2005 Posts: 15 Location: MO
|
Posted: Fri May 20, 2005 1:39 pm
Multi line messages - client accounting for blank space |
How would I write an alias to send two seperate lines? For instance, in Aetolia there's a skill called hallucination that allows us to send a message to the target in hopes it appears to be from the mud itself.
Say I'd like to hallucinate to someone, He connects to the left leg! and on a second line, Your left leg breaks from all the damage!
I can do it manually by simply hitting the space bar after the first sentence until the line carries over. How would I go about setting that to alias leftleg? |
|
|
|
Maelstrom Apprentice
Joined: 10 Feb 2005 Posts: 158
|
Posted: Fri May 20, 2005 2:32 pm |
Like so? I would assume seperate send commands would be on seperate lines...
#ALIAS hallucinate {
#SEND {He connects to the left leg!}
#SEND {Your left leg breaks from all the damage!}
} |
|
|
|
DeathDealer Adept
Joined: 20 Jul 2004 Posts: 268
|
Posted: Fri May 20, 2005 2:39 pm |
i could be wrong, but I think he's trying to manually wrap the lines....
Code: |
He connects to the left leg! and even more spaces Your left leg breaks from all the damage! |
That type of thing.
Zmud can't just send text to the mud on a seperate line like that.
You'll have to write the alias with all those spaces.
Of course i COULD be mistaken, there's the %cr but i don't think that works this way. |
|
_________________
|
|
|
|
Maelstrom Apprentice
Joined: 10 Feb 2005 Posts: 158
|
Posted: Fri May 20, 2005 3:54 pm |
Ya I know. I dont see a point in manually wrapping the lines however. It would be almost impossible to do as each player (usually) has a user defined setting for line wrapping. Given that its not something you can do up front the best solution is to send it as two seperate commands and hope the mud doesnt stick anything in between the two.
Unless of course %cr would work as you said... |
|
|
|
DeathDealer Adept
Joined: 20 Jul 2004 Posts: 268
|
Posted: Fri May 20, 2005 4:37 pm |
Looks like %cr don't work in #send. It was trying to send it to the mud itself. And of course #cr just sends a blank line.
So, unless there's a work around looks like this will have to do:
#alias trick {hallucinate %1 He connects to the left leg!;hallucinate %1 Your left leg breaks from all the damage!}
trick deathdealer
hallucinate deathdealer He connects to the left leg!
hallucinate deathdealer Your left leg breaks from all the damage!
Of course this would work best if you succeed at the skill.
And since i don't know how the command works syntax wise i'm taking a guess.
Modify to your hearts content. |
|
_________________
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Fri May 20, 2005 10:22 pm |
If you're doing it manually, then you probably know exactly how many spaces to use, right?
%repeat(" ",number of times to repeat this character) |
|
_________________ EDIT: I didn't like my old signature |
|
|
|
|
|