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
ballegator
Novice


Joined: 19 Jun 2001
Posts: 30
Location: USA

PostPosted: Thu Feb 19, 2004 1:19 am   

Capturing Prompt Numbers
 
As I have posted on ocassion, I am a dork when it comes to this stuff. I have been working on capturing my HP's from my prompt and displaying them in a seperate window. I read a post by in another forum by Charbal but I am having problems getting it to work because I don't know how to capture what I want to send it to the @HP variable. Any help?

My prompt looks like NAME> 69/69 common Tired
(where 69/69 is the HP/MaxHP, common is the language being spoken, tired is the characters condition)

*note* also Charbal, the link to your HTML Logger is broken
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Thu Feb 19, 2004 2:10 am   
 
Here is one way to do it Take a look at helpfiles for #TRIGGER, #VARIABLE, #SETPROMPT

#TR {^%w~> (%d)/(%d)} {hp=%1;maxhp=%2} "" "prompt"
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