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


Joined: 03 Nov 2003
Posts: 3

PostPosted: Mon Nov 03, 2003 2:50 pm   

autoroller again...
 
I've tried to modify an old post, but I don't get it to work, If you have any ideas what I'm doing wrong please post them.
And yes I suck at this.

Trigger: #TR {STR: ~[(%d)~] ; INT: ~[(%d)~] ; WIS: ~[(%d)~]; DEX: ~[(%d)~] ; CON: ~[(%d)~]}
Command: {#IF ((%1 > 22) AND (%2 > 28) AND (%3 > 26) AND (%4 > 28) AND (%5 > 21)) {Y} {N}}

This is what I want:
str: 22 int: 28 wis: 26 dex: 28 con: 21

Looks like this:
Do you wish to keep these attributes?
STR: 19
INT: 19
WIS: 25
DEX: 25
CON: 7
Keep?(Y/N)
Reply with quote
vesslan
Newbie


Joined: 03 Nov 2003
Posts: 3

PostPosted: Mon Nov 03, 2003 4:14 pm   
 
Ohh yeah, I forgot to mention I have version 4.62, the later versions lags terribly for me(don't know why) so some commands might not be availibe. Thanks in advance.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon Nov 03, 2003 6:55 pm   
 
You probably could have found a closer match. It's fairly difficult to adapt from a one-line stat output to a five-line stat output.

#TR {STR:%s(%d)} {#VAR Yes 1;#IF (%1 < 22) {#VAR Yes 0}}
#TR {INT:%s(%d)} {#IF (%1 < 28) {#VAR Yes 0}}
#TR {WIS:%s(%d)} {#IF (%1 < 26) {#VAR Yes 0}}
#TR {DEX:%s(%d)} {#IF (%1 < 28) {#VAR Yes 0}}
#TR {CON:%s(%d)} {#IF (%1 < 21) {#VAR Yes 0};#IF (@Yes) {Y} {N}}
Reply with quote
vesslan
Newbie


Joined: 03 Nov 2003
Posts: 3

PostPosted: Mon Nov 03, 2003 11:53 pm   
 
thanks alot dude. It seems to work.
Reply with quote
dedren
Newbie


Joined: 06 Nov 2003
Posts: 1
Location: USA

PostPosted: Thu Nov 06, 2003 3:13 am   
 
This is the output I recieve from the mud:

21str 16int 17wis 16dex 21con 18chr Accept these stats? [Yes No]

So I made up this simple trigger to add those numbers, compare the sum, display the sum, and hit Y or N.

This is the pattern I used:

$(%n)str (%n)int (%n)wis (%n)dex (%n)con (%n)chr Accept these stats? ~[Yes No~]

and this is the command I used:

#add stat (%1+%2+%3+%4+%5+%6)
#IF (@stat < 108) {N} {Y}
#ECHO @stat
stat=0


The problem I am having so far is I need to hit ENTER for it to actually enter the N or display the sum. I would appreciate any help please.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Nov 06, 2003 8:40 am   
 
Go to the Options tab. Enable Prompt. Unenable Newline.
You also might want to switch your anchor from $ (end-of-line) to ^ (beginning of line).
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