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
Gren
Beginner


Joined: 03 May 2002
Posts: 14
Location: USA

PostPosted: Fri Aug 09, 2002 11:48 pm   

what's wrong with this autoroller?
 
Screen:

Name: Gren
Race: Dwarf
Class: Anti-Paladin

Ability Scores:
Str: 17/0 Int: 12 Wis: 12 Dex: 7 Con: 10 Cha: 5

Do you wish to keep this character (Y/N)?


My autoroller:

Trigger:
Str: (%d)~/(%d) Int: (%d) Wis: (%d) Dex: (%d) Con: (%d) Cha: (%d)

Value:
#VAR V_Str %1
#VAR V_Str_mod %2
#VAR V_Int %3
#VAR V_Wis %4
#VAR V_Dex %5
#VAR V_Con %6
#VAR V_Cha %7


And then:

Trigger:
Do you wish to keep this character (Y/N)?

Value:
#IF (((@V_Str >= 19) AND @V_Con >= 20)) {y} {n}

Trigger on:
[x] prompt


what am I doing wrong? it doesn't trigger the autoroller...
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Aug 10, 2002 12:07 am   
 
You seem to have the parenthesis misplaced.

#IF ((@V_Str >= 19) AND (@V_Con >= 20)) {y} {n}
Reply with quote
Gren
Beginner


Joined: 03 May 2002
Posts: 14
Location: USA

PostPosted: Sat Aug 10, 2002 12:32 am   
 

I'm not all that great with using triggers, let alone varibles in my triggers, but the trigger doesn't even execute when it sees the pattern:

Do you wish to keep this character (Y/N)?

it just sits there.. I don't have my triggers disabled..
Reply with quote
Dorrin
Novice


Joined: 08 Aug 2002
Posts: 41

PostPosted: Sat Aug 10, 2002 1:10 am   
 
Just a guess, but try changing the trigger options to trigger on prompt instead of new line.
Reply with quote
Gren
Beginner


Joined: 03 May 2002
Posts: 14
Location: USA

PostPosted: Sat Aug 10, 2002 4:00 am   
 
I had the option checked for the 2nd set of triggers, but not the first...

is Zmud not recognizing my variables?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Aug 10, 2002 7:12 am   
 
Oh, duh either check the verbatim box on the trigger option or use a tilde ~ in front of all special characters ()?[]*<>^$@ to show a few. Of course it will probably have to be a prompt trigger with new line unchecked.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Aug 10, 2002 3:21 pm   
 
What Vijilante is referring to (with ~ added)
Trigger:
Do you wish to keep this character ~(Y/N~)?

LightBulb
Senior Member
Reply with quote
Gren
Beginner


Joined: 03 May 2002
Posts: 14
Location: USA

PostPosted: Mon Aug 12, 2002 2:30 am   
 

that did the trick..

thank you very much!
Reply with quote
Gren
Beginner


Joined: 03 May 2002
Posts: 14
Location: USA

PostPosted: Mon Aug 12, 2002 5:27 pm   
 
hmm.. After I did some testing, I found it doesn't work. It triggers and checks the scores, but never matches to the 'Con' for some reason. Even if I enter a variable I want attained (like 15) and a 15 Con comes up, it just ignores the fact that I got a 15 and keeps rolling.

Not sure what to do..
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon Aug 12, 2002 5:41 pm   
 
You have this:
#IF (((@V_Str >= 19) AND @V_Con >= 20)) {y} {n}

Change it to this:
#IF ((@V_Str >= 19) AND (@V_Con >= 20)) {y} {n}


LightBulb
Senior Member
Previously pointed out by Vijilante
Reply with quote
Gren
Beginner


Joined: 03 May 2002
Posts: 14
Location: USA

PostPosted: Mon Aug 12, 2002 5:51 pm   
 

Thanks Lightbulb!
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