|
Gren Beginner
Joined: 03 May 2002 Posts: 14 Location: USA
|
Posted: 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... |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Sat Aug 10, 2002 12:07 am |
You seem to have the parenthesis misplaced.
#IF ((@V_Str >= 19) AND (@V_Con >= 20)) {y} {n} |
|
|
|
Gren Beginner
Joined: 03 May 2002 Posts: 14 Location: USA
|
Posted: 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.. |
|
|
|
Dorrin Novice
Joined: 08 Aug 2002 Posts: 41
|
Posted: Sat Aug 10, 2002 1:10 am |
Just a guess, but try changing the trigger options to trigger on prompt instead of new line.
|
|
|
|
Gren Beginner
Joined: 03 May 2002 Posts: 14 Location: USA
|
Posted: 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? |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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.
|
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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 |
|
|
|
Gren Beginner
Joined: 03 May 2002 Posts: 14 Location: USA
|
Posted: Mon Aug 12, 2002 2:30 am |
that did the trick..
thank you very much! |
|
|
|
Gren Beginner
Joined: 03 May 2002 Posts: 14 Location: USA
|
Posted: 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.. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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 |
|
|
|
Gren Beginner
Joined: 03 May 2002 Posts: 14 Location: USA
|
Posted: Mon Aug 12, 2002 5:51 pm |
Thanks Lightbulb! |
|
|
|
|
|