 |
alucardRampart Newbie
Joined: 22 Jul 2015 Posts: 1
|
Posted: 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 |
|
|
 |
shalimar GURU

Joined: 04 Aug 2002 Posts: 4718 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
 |
|
|
|
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
|
|