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


Joined: 21 Jul 2005
Posts: 2

PostPosted: Thu Jul 21, 2005 4:10 pm   

Displaying multi-word database variables in status bar
 
I'm attempting to create a catalog of all the mobs I've attacked, and their hp. I already have a script to calculate the total hp of the mob, and I have a script that creates the database correctly.

Trigger: Your blood freezes as you hear (*)'s death cry
Code:
#var mobtable %addkey( @mobtable, "%1", @damagethismob)


Now, when I fight a mob, I store the name in the variable current mob:

You attack (*)!
Code:
#var Damage/currentmob "%1"


What I need to do is display @mobtable.@currentmob in the status bar. That syntax doesn't work, though. Note: mob names could be multiple words "an old miner", "a mangy cur", etc...

And ideas how to get that hp into the status bar?

Thanks.
Reply with quote
Aarlot
Adept


Joined: 30 Dec 2003
Posts: 226

PostPosted: Thu Jul 21, 2005 6:58 pm   
 
%db(@mobtable,@currentmob)
_________________
Everyone is entitled to their beliefs - until they die. Then only the truth matters.
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