|
Thrillhouse8 Beginner
Joined: 21 Sep 2004 Posts: 18
|
Posted: Sun Apr 05, 2009 7:03 am
Sending % to the mud |
I'm trying to edit my prompt for a mud, and the standard escape character isn't doing it. The mud has its own variables referenced by '%', where '%h' would mean your health variable. My quote character's a backslash, but typing \%h only produces output of 'h'. I've tried changing my parameter character, which leads to some other funky behavior('#SHOW _char' leads to an access violation, but '#3 {#SHOW _i} works), but that doesn't do the job. I've tried with parsing on/off, storing '%h...' as a string variable, tried _quote(%h...). For all of these, the '%' isn't making it to the mud.
|
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4715 Location: Pensacola, FL, USA
|
Posted: Sun Apr 05, 2009 7:17 am |
#SENDRAW?
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
Thrillhouse8 Beginner
Joined: 21 Sep 2004 Posts: 18
|
Posted: Sun Apr 05, 2009 7:21 am |
zMud 7.21
|
|
|
|
Leitia Adept
Joined: 04 May 2007 Posts: 292 Location: Boston
|
Posted: Sun Apr 05, 2009 2:57 pm |
What do you mean 'edit' your prompt? I would assume you mean parse the data from the prompt, but then you speak of needing to send %h. This must be from the command line, %h should send fine from a script, but then then what are you editing? Is this a script per se? A trigger pattern? A regex pattern? I'm just curious because you are doing all these modifications.
|
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Sun Apr 05, 2009 5:04 pm |
In zMUD the quote character is '~'. You can verify this and all other special characters by going to View -> Preferences -> General Preferences. Scroll down and select Special Characters from the list.
|
|
_________________ Asati di tempari! |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sun Apr 05, 2009 5:05 pm |
Some MUDs let you define a completely custom prompt, and use variables like this to show where to put values like your health and stuff in the prompt.
Have you tried using #send? #send "%h" |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sun Apr 05, 2009 5:07 pm |
Try #SEND. I believe in ZMud it does what #SENDRAW does in CMud. If that doesn't work, does doubling up on the % work (as in %%h)?
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
Thrillhouse8 Beginner
Joined: 21 Sep 2004 Posts: 18
|
Posted: Sun Apr 05, 2009 9:17 pm |
The command to change the prompt is "prompt <new prompt>".
Still no-go for(parameter char = '%', quote char = '\'):
Code: |
Command: Prompt:
#SEND "prompt %h" h
#SEND "prompt %%h" h
#SEND "prompt \%%h" h
#SEND "prompt \%h" h
#SEND "prompt \%h" \h
#SEND {prompt X*} *(same as above)
#SEND "prompt %quote(%h)" quote(h)
#SEND {prompt %quote(%h)} \h
|
Setting the parameter char to '_':
Code: |
Command: Prompt:
#SEND "prompt _%h" _h
#SEND "prompt _\%h" _h
#SEND {_quote(prompt %h)} h
#SEND {_quote(prompt \%h)} h
#SEND {prompt _quote(\%h)} h
#SEND {prompt _quote(%h)} h
#SEND "prompt _quote(%h)" _quote(h) **(quote chars do nothing to this, either) |
[/code] |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Mon Apr 06, 2009 5:51 am |
What MUD is this for. I think the problem may be with your MUD not reading what it's receiving properly.. If you change all those #SENDs to #SHOWs you'll see what zMUD is trying to send.
|
|
_________________ Asati di tempari! |
|
|
|
Thrillhouse8 Beginner
Joined: 21 Sep 2004 Posts: 18
|
Posted: Mon Apr 06, 2009 10:05 am |
I reached the same conclusion...forgot to post, though. I tried the game using PuTTY and Kmuddy, and both had the same outcome.
|
|
|
|
|
|