|
Tastycookie Newbie
Joined: 11 Dec 2015 Posts: 1
|
Posted: Fri Dec 11, 2015 9:58 pm
Autoroller |
I've been trying to write an autorolling script for Apocmud.org for a few days and haven't had any luck getting the script to run. Either it doesn't compile or it executes the no command when all of the if statements are met. Or executes the no command multiple times, even when the pattern isn't even present. Can anyone help me figure out how it is supposed to look? Apoc gives the stats like so...
Ability Scores:
Str: 13/0 Int: 11 Wis: 12 Dex: 16 Con: 14 Cha: 10
The patterns I've been trying to use is..
Str: (%d)/(%d) Int: (%d) Wis: (%d) Dex: (%d) Con: (%d) Cha: (%d) |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4692 Location: Pensacola, FL, USA
|
Posted: Fri Dec 11, 2015 10:21 pm |
The issue is likely because single digit values would require more spaces if the output is formatted.
Try using %s to represent entire blocks of whitespace in your pattern. |
|
_________________ Discord: Shalimarwildcat |
|
|
|
|
|