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


Joined: 11 Dec 2015
Posts: 1

PostPosted: 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)
Reply with quote
shalimar
GURU


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

PostPosted: 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
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