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


Joined: 19 Sep 2002
Posts: 8
Location: St. Louis

PostPosted: Tue Aug 31, 2004 4:51 pm   

Autoroller stat tracking and Window displaying.
 
I'm trying to get a handful of data when a character's stats are rolled for creation. This is what the MUD's output looks like:

"
Here you can switch your Stats to taste, selecting two to switch until you are satisfied.
Example: Typing: CHA WIL - Switches Charisma and Willpower scores!
STR (Strength ): 65
DEX (Dexterity ): 80
CON (Constitution): 89
INT (Intelligence): 75
WIS (Wisdom ): 56
ITN (Intuition ): 61
WIL (Willpower ): 66
LUK (Luck ): 34
CHA (Charisma ): 41
Select 2 stats to switch or Done (or Reroll):
"

Eventually, I want to be able to see the stats rolled in a seperate window, without sending any commands to the MUD. Some of the things I want displayed in a seperate window: Minumum stat, Max stat, average stat, sum of all stats, etc.

Ok, let me explain how far I've gotten and what I've done so far. I've made a trigger for each of the stats that went something like this:

pattern:
STR (Strength ): (%1)
value:
#var Str %1

Which SHOULD put the value of my rolled score into a variable called "Str," correct? Well it's not. I've done that with each stat. I'm not sure what I'm doing wrong, but I think it might have something to do with the Paranthes.

Any help would be appreciated. I haven't read up much on displaying information in a new Window, so I'll do that before I go picking your brains. Thanks!
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Tue Aug 31, 2004 4:59 pm   
 
Yes it does have something to do with the ()'s and I recomend you read the help file on pattern matching and you will see BOTH errors that you made. Also if you have to account for spaces use %s


PATTERN:
STR ~(Strength~): (%d)
VALUE:
#VAR Str %1
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