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


Joined: 11 Jul 2002
Posts: 5
Location: USA

PostPosted: Fri Jul 19, 2002 10:26 pm   

Simple Prompt trigger
 
I have made these before i don't know if its a brain freeze i'm messing up or what if you will give me the one line trigger for this

HP [ 41/54 ] SP [ 2/34 ] EP [ 52/52 ]

thats EXACTLY how it comes up in the mud . well the numbers change :) want to store theam into variables HP,MaxHP;SP,MaxSP...........you get the point
i know how to do the bar graphs and such just need to figure out the best way to extract the numbers ,, TY
Reply with quote
dragoneye69
Newbie


Joined: 11 Jul 2002
Posts: 5
Location: USA

PostPosted: Fri Jul 19, 2002 10:49 pm   
 
I do belive i Figured it out i just have to use a ~ before [ lol hehe, but ty
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Jul 19, 2002 11:59 pm   
 
This forum's not very good about displaying multiple spaces, so make sure you have the correct number of spaces between items when you make the actual trigger. Note that this is trigger on Prompt, not trigger on Newline.

#TR {HP ~[ (%d)/(%d) ~] SP ~[ (%d)/(%d) ~] EP ~[ (%d)/(%d) ~]} {#VAR HP %1;#VAR MaxHP %2;#VAR SP %3;#VAR MaxSP %4;#VAR EP %5;#VAR MaxEP %6} {} {nocr|prompt}

You may need multiple triggers to catch the normal, battle, and regeneration prompts since the spacing may be different.

LightBulb
Senior Member
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