|
ekhart Novice
Joined: 28 Aug 2008 Posts: 31
|
Posted: Thu Aug 28, 2008 8:30 am
Trouble with output of quotation marks. |
When I think about this problem, it SEEMS like it should be fairly easy to accomplish, yet it is one of the most troublesome ones i have come across so far
I am trying to make an alias that will output this to the mud:
set_short("@roomshort");
where @roomshort is a variable that changes.
The problem I am having is I need to put the ; inside quotes to make it go through, but the quote inside the ()'s that I WANT to actually be sent to the mud do not get sent since the quotes generally don't. Obviously i can't turn parsings off because then the alias won't work period.
Is there a way to get an alias to actually send everything in the above line to the mud, including the current value of the variable? (seems that if i put the variable in quotes, even though it does not send the quote to the mud it only sends @roomshort instead of the variable value) |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Thu Aug 28, 2008 1:21 pm |
Try this.
Code: |
#show set_short(%concat("~"",@roomshort,"~";")); |
or
Code: |
#show set_short(%concat(%char(34),@roomshort,%char(34),";")); |
|
|
_________________ Asati di tempari! |
|
|
|
ekhart Novice
Joined: 28 Aug 2008 Posts: 31
|
Posted: Thu Aug 28, 2008 3:40 pm Thanks! |
Wow worked! Thanks a bunch.
|
|
|
|
|
|
|
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
|
|