Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
alucardRampart
Newbie


Joined: 22 Jul 2015
Posts: 1

PostPosted: Wed Jul 22, 2015 9:36 pm   

Auto Roller Help
 
I recently returned to MUD'ing and despite my efforts to get an Auto Roller trigger working I can't seem to get one that works. There are other threads in the ZMUD boards, But I've been unable to adapt them to what I need.

You can choose from any of the following sets of base_stats:
1. Str: 16 Int: 12 Wis: 8 Dex: 12 Con: 10 Chr: 11 Lck: 18
2. Str: 13 Int: 16 Wis: 13 Dex: 13 Con: 12 Chr: 16 Lck: 9
3. Str: 12 Int: 13 Wis: 7 Dex: 15 Con: 8 Chr: 16 Lck: 15
4. Str: 11 Int: 12 Wis: 14 Dex: 16 Con: 18 Chr: 10 Lck: 13
5. Str: 11 Int: 16 Wis: 15 Dex: 6 Con: 10 Chr: 14 Lck: 12
Choice? [Enter=Roll again, H for help on classes, Q to quit]


Is the text for selecting the Stats you want. I would like a script that reads each of the 5 lines, looking for the desired stats and then selects that line, if no match is found hit enter for a new set of stats. something of note, When I copied from Cmud the above text, the text was aligned, where in this post they are somewhat misaligned.

If someone could help me get a working script, it would be much appreciated, and Thank you for reading my request
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4662
Location: Pensacola, FL, USA

PostPosted: Wed Jul 22, 2015 10:18 pm   
 
If you enclose the block within the code tags it will preserve spacing.
It is not hard to check values against a desired known value, but you haven't provided the desire.

#TR (^(%d). Str: (%d)%sInt: (%d)%sWis: (%d)%sDex: (%d)%sCon: (%d)%sChr: (%d)%sLck: (%d)} {}

That should fire on the sets of base_stats, but you need to do comparative analysis to choose between them.
_________________
Discord: Shalimarwildcat
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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