Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Thrillhouse8
Beginner


Joined: 21 Sep 2004
Posts: 18

PostPosted: 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.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4689
Location: Pensacola, FL, USA

PostPosted: Sun Apr 05, 2009 7:17 am   
 
#SENDRAW?
_________________
Discord: Shalimarwildcat
Reply with quote
Thrillhouse8
Beginner


Joined: 21 Sep 2004
Posts: 18

PostPosted: Sun Apr 05, 2009 7:21 am   
 
zMud 7.21
Reply with quote
Leitia
Adept


Joined: 04 May 2007
Posts: 292
Location: Boston

PostPosted: 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.
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: 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!
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: 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"
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
Thrillhouse8
Beginner


Joined: 21 Sep 2004
Posts: 18

PostPosted: 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]
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: 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!
Reply with quote
Thrillhouse8
Beginner


Joined: 21 Sep 2004
Posts: 18

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net