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
ffmud
Newbie


Joined: 18 Jun 2004
Posts: 2

PostPosted: Fri Jun 18, 2004 4:05 am   

%mud querrying
 
Hey :)
i'me pretty new to zmud scripting and need some help with something.

i am playing aetolia, and i am trying to get some variables like hp mp endurance etc... some of them are available on the prompt(hp, mp) others are not(endurance).

i read the docs, and found the "mud variable" called %mud.

now i suppose this variable would have some informations, but how can i know what keys i can use with it? the examples shows %mud.hp , but where did it get the hp key from? i read aetolia docs and i cant find anything about that.

if i am totally wrong, could you suggest a way to get a display of the "endurance" value? remember it ISNT shown in the prompt and only way i know to see it is to type "score" to see all your stats.. not very practical
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Fri Jun 18, 2004 11:24 am   
 
First see if you can customize your prompt to display endurance. Next post a sample of your prompt, and if you couldn't customize it your score output.

The %mud Predefined Variable is used to access data sent by the mud using the MXP protocol. Does Aetolia use MXP? Does it actually define the things for you? I don't think it does, but you can check by opening your Preferences, expanding MXP in the tree and seeing what Entities are defined. If there are none then %mud will be of no use to you.
Reply with quote
ffmud
Newbie


Joined: 18 Jun 2004
Posts: 2

PostPosted: Sat Jun 19, 2004 2:31 am   
 
ok seems like it doesnt use mxp.

as for the prompt it looks like this:
H:818 M:658 [eb]

as for the other stats, the full status looks like this

Makha, Initiate of Perfection (male Rajamala)
You have achieved level 14 (Resolute) and are 79% of the way to the next level.
Health: 818/818 Mana: 658/944
Endurance: 2990/2990 Willpower: 3620/3620
You roam the land without citizenship.
You are an apprentice in the Zealot class.
You are a Novice in the Daru.
You are on PROBATION in your guild.
You are an Itinerant in the Fellowship of Explorers.
You are a member of the clan called 'The Monastery of Perfection.'
You are Exemplary.
Your mentor is Rihn.
You are 18 years old, having been born on the 16th of Ios, year 113 of the
Midnight Age.
You are carrying 7573 gold sovereigns.

as you can see it is pretty long and since i want a permanent display of endurance and will power, i cant have it show every second to get the end. and will. Is there a way to have the mude send the command to see the status, but not display it on screen then get the substrings i want?
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