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


Joined: 06 Dec 2001
Posts: 2
Location: USA

PostPosted: Fri Dec 07, 2001 8:23 pm   

Help on an autoroller
 
Someone (ParrEich) posted an autoroller script a while back and I've been trying to get it to work (not be overly adept with Zmud) and having no luck.

The script is this:

quote:
Finished Roller set is as follows:

Pattern
Agility: (%1)/100 Constitution: (%2)/100 Discipline: (%3)/115 Empathy: (%4)/100
Value
#var agi %1
#var con %2
#var dis %3
#var emp %4
Pattern
Memory: (%1)/100 Perception: (%2)/100 Reasoning: (%3)/105 Speed: (%4)/100
Value
#var mem %1
#var per %2
#var rea %3
#var spd %4
Pattern
Strength: (%1)/100 Willpower: (%2)/105
Value
#var str %1
#var wil %2
Pattern(trigger on prompt)
[Enter 'yes' to accept these stats or anything else to reroll]
Value
#var reroll 1
#if (@agi<80) {#var reroll 0}
#if (@con<80) {#var reroll 0}
#if (@dis<80) {#var reroll 0}
#if (@emp<80) {#var reroll 0}
#if (@mem<80) {#var reroll 0}
#if (@per<80) {#var reroll 0}
#if (@rea<80) {#var reroll 0}
#if (@spd<80) {#var reroll 0}
#if (@str<80) {#var reroll 0}
#if (@wil<80) {#var reroll 0}
#if (@reroll=1) {yes} {no}

Simply replace "80" with your minimum; 1 for irrelevant attributes


I've yet to get it to work and am wondering if it has to do with the Trigger On or Other Options. Any help is much appreciated.
Reply with quote
Troubadour
GURU


Joined: 14 Oct 2000
Posts: 556
Location: USA

PostPosted: Fri Dec 07, 2001 8:48 pm   
 
ParrEich uses the parameter holders instead of pattern matching symbols in the patterns. While not a fatal error, it is bad form. You could replace the parameter holders with (%d) in the patterns of the first three triggers.

In the fourth trigger, the braces [] should be preceded by the quote character ~.

~[Enter 'yes' to accept these stats or anything else to reroll~]

You might want to double-check that the fourth trigger has Trigger on Prompt checked, and Trigger on Newline unchecked.

Otherwise, assuming everything has been entered correctly, it looks OK.

Troubadour
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