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
dagnon99
Beginner


Joined: 08 Jun 2005
Posts: 12

PostPosted: Thu Jun 09, 2005 4:11 pm   

Attributes in Torilmud Gauges
 
Hello again,

I am looking to pull my characters stats form the mud...

after doing ATT i get:


Level: 1 Race: Grey Elf Class: Ranger
Age: 120 yrs / 4 mths Height: 60 inches Weight: 100 lbs
STR: mighty AGI: heroic DEX: heroic CON: heroic
POW: mundane INT: mundane WIS: bad CHA: average
Armor Class: 49 (100 to -100) Magic Resistance: 0 percent
Hitroll: 7 Damroll: 3
Alignment: 1000 (-1000 to 1000)


I would like to make gauges that just have the attribute information on them.

This is what I have so far.. i does not work:

STR: mighty AGI: heroic DEX: heroic CON: heroic


#TRIGGER {^STR: * %1 * AGI: * %2 * DEX: * %3 * CON: * %4 * } {
#var STR {%1}
#var AGI {%2}
#var DEX {%3}
#var CON {%4}
}

i would like to grab pretty much everything from my character this way. I think the only way to do it is to go line by line.

so like

POW: mundane INT: mundane WIS: bad CHA: average

would be next.

Please help with the above code.

Thanks! Crying or Very sad
_________________
HJB
Reply with quote
Maelstrom
Apprentice


Joined: 10 Feb 2005
Posts: 158

PostPosted: Thu Jun 09, 2005 4:30 pm   
 
Assuming that the attibutes are always textual in nature (IE not a number) this should work:
#TRIGGER {^STR: (%w) AGI: (%w) DEX: (%w) CON: (%w)} {
#var STR {%1}
#var AGI {%2}
#var DEX {%3}
#var CON {%4}
}
Reply with quote
DeReP
Adept


Joined: 14 Jun 2003
Posts: 222
Location: Chile

PostPosted: Thu Jun 09, 2005 5:07 pm   
 
#TRIGGER {Levell: &level Race: &race Class: &class}
#COND {Age: &age.years yrs / &age.months mths Height: &height inches Weight: &weight lbs}}
#COND {STR: &str AGI: &agi DEX: &dex CON: &con}
#COND {POW: &pow INT: &int WIS: &wis CHA: &cha}
#COND {Armor Class: &ac (100 to -100) Magic Resistance: &mr percent}
#COND {Hitroll: &hr Damroll: &dr}
#COND {Alignment: &Alignement (-1000 to 1000)}
Reply with quote
dagnon99
Beginner


Joined: 08 Jun 2005
Posts: 12

PostPosted: Thu Jun 09, 2005 5:08 pm   
 
Thank you, Maelstorm.

However, this didn't work...

Crying or Very sad
_________________
HJB
Reply with quote
dagnon99
Beginner


Joined: 08 Jun 2005
Posts: 12

PostPosted: Thu Jun 09, 2005 5:15 pm   
 
Thanks, DeRep..

This didn't work either...

maybe its some thing with triggers?

because #REGEX worked on my other question.

How would this code work using #REGEX?

Shocked
_________________
HJB
Reply with quote
dagnon99
Beginner


Joined: 08 Jun 2005
Posts: 12

PostPosted: Fri Jun 10, 2005 9:21 pm   
 
Crying or Very sad
_________________
HJB
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