|
Blackmore Newbie
Joined: 14 Apr 2016 Posts: 4
|
Posted: Thu Apr 14, 2016 1:15 am
Alias Inquiry (Wish to Remove Code) |
Greetings! I was recently trying to make a relatively simple alias, which would sing the verses of a song, one at a time, with a wait timer between them. It looks similar to this:
Code: |
:sings happily, "Zippidee-Doo-Dah!"
#wa %random(5000,8000)
:sings merrily, "Zippidee-Aye!"
#wa %random(5000,8000)
:sings, "My, oh, my, what a wonderful day!"
|
The problem is that CMUD sees the quotation marks of the verse/speech (which are required to speak), as code or script, and will thus leave them out. Is there any way to have CMUD ignore the code (except for the wait timers) and just spit out the lines as they're written? I've already double-checked my "Special Characters" in the Options, and the quotation marks don't seem to be listed in there to uncheck. I've also tried using the different coding languages, and nothing seems to work. Anyone have any ideas or thoughts? Thanks very much in advance! :) |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4662 Location: Pensacola, FL, USA
|
Posted: Thu Apr 14, 2016 3:01 am |
Use the #SEND command to force it to send it what you wrap in curly brackets, verbatim.
#SEND {:sings happily, "Zippidee-Doo-Dah!"}
You may need to use #SENDRAW instead. |
|
_________________ Discord: Shalimarwildcat |
|
|
|
Blackmore Newbie
Joined: 14 Apr 2016 Posts: 4
|
Posted: Thu Apr 14, 2016 5:38 am |
Greetings, and thank you for the reply! I just tried that, and am met with the following errors:
Code: |
For #SEND:
ERROR: Syntax error in Alias: lyrebarley : illegal token: {:begins to play a soft, light-hearted jig upon the strings of his lyre.}
For #SENDRAW:
ERROR: Syntax error in Alias: lyrebarley : illegal token: {:begins to play a soft, light-hearted jig upon the strings of his lyre.}
|
I've included a screenshot of my settings, and how it's laid out, not sure if that would help or not:
Any thoughts on what I'm doing wrong? |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4662 Location: Pensacola, FL, USA
|
Posted: Thu Apr 14, 2016 12:03 pm |
You need a space between the command name and the opening curly bracket.
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
Blackmore Newbie
Joined: 14 Apr 2016 Posts: 4
|
Posted: Thu Apr 14, 2016 4:51 pm |
Thanks for the reply! Tried that, and now I'm met with this:
Code: |
#SEND & #SENDRAW:
You begin to play a soft, light-hearted jig upon the strings of your lyre.
You sing softly, It' cold and raw, the north winds blow, black in the mornin', early...
You sing gently, When all the hills were covered wi' snow, then it was Winter, fairly...
You sing softly, A I was ridin' o'er the moor, I met a farmer's daughter...
You sing gently, Her cherry cheeks, and coal-black hair, they caused ma heart ta falter...
You nimbly plays a flourish of notes upon your lyre, and begin to gently sing again as you strikes a chord.
|
So, it's pretty much what I want, but unfortunately, the quotation marks (and the "S" in "It's" on the second line) are missing. What should I change? |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4662 Location: Pensacola, FL, USA
|
Posted: Thu Apr 14, 2016 7:37 pm |
You could try quouting out each instance of " with `"
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
Blackmore Newbie
Joined: 14 Apr 2016 Posts: 4
|
Posted: Fri Apr 15, 2016 12:56 am |
Hey! Thanks for the reply! :)
Gave that a try, and unfortunately, it still wasn't giving the character the "speech" emote I was looking for (when a character's speaking on this MUD, it boldens the text). However, I was able to find a sort of "jimmy-rigged" way of doing it:
I made an alias on the server for each, individual verse of the song:
Code: |
alias song1 emote sings softly, "It's cold and raw, the north winds blow, black in the mornin', early... " |
Then I just put each of the individual server aliases into the client alias:
Code: |
#SEND {:begins to play a soft, light-hearted jig upon the strings of his lyre.}
#wa %random(5000,8000)
song1
#wa %random(5000,8000)
song2
#wa %random(5000,8000)
song3
#wa %random(5000,8000)
song4
|
It's a bit of a "dirty fix," I suppose, but it still manages to get the job that I needed done. Thanks for all of your help, shalimar! It's greatly appreciated! :D |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Sat Apr 16, 2016 6:49 am |
Place the string to be sent in quotes and then use "" when you want to include a quotation mark in the string to be sent.
#SENDRAW ":sings merrily, ""Zippidee-Aye!""" |
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
|
|
|
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
|
|