|
dagnon99 Beginner
Joined: 08 Jun 2005 Posts: 12
|
Posted: 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! |
|
_________________ HJB |
|
|
|
Maelstrom Apprentice
Joined: 10 Feb 2005 Posts: 158
|
Posted: 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}
} |
|
|
|
DeReP Adept
Joined: 14 Jun 2003 Posts: 222 Location: Chile
|
Posted: 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)} |
|
|
|
dagnon99 Beginner
Joined: 08 Jun 2005 Posts: 12
|
Posted: Thu Jun 09, 2005 5:08 pm |
Thank you, Maelstorm.
However, this didn't work...
|
|
_________________ HJB |
|
|
|
dagnon99 Beginner
Joined: 08 Jun 2005 Posts: 12
|
Posted: 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?
|
|
_________________ HJB |
|
|
|
dagnon99 Beginner
Joined: 08 Jun 2005 Posts: 12
|
Posted: Fri Jun 10, 2005 9:21 pm |
|
|
_________________ HJB |
|
|
|
|
|