 |
Articnal Apprentice
Joined: 19 Jan 2002 Posts: 107
|
Posted: Sun Jan 05, 2003 10:14 pm
Auto roller... almost finished? |
Hi,id like to finish an auto roller for Balzhur mud. The script is that way:
| Fue [16] | Int [13] | Sab [11] | Des [16] | Con [12] | Car [10] | Sue [15] |
I put a tigger like that:
Pattern:
^ ~| Fue ~[{%d}~] ~| Int ~[{%d}~] ~| Sab ~[{%d}~] ~| Des ~[{%d}~] ~| Con ~[{%d}~] ~| Car ~[{%d}~] ~| Sue ~[{%d}~] ~|
action:
#IF (%1<15) {reroll=1}
#IF (%2<15) {reroll=1}
#IF (%3<15) {reroll=1}
#IF (%4<15) {reroll=1}
#IF (%5<15) {reroll=1}
#IF (%6<15) {reroll=1}
#IF (%7<15) {reroll=1}
#IF (@reroll=1) {n reroll=0}
and i also tryed giving a value for every skill,i mean,#var fue %1;#var int %2...
and after #IF (@fue<15) {reroll=1}...
and i think the problem is that zmud doesnt recognice the pattern,so it doesnt give any value for the variables.
i think that simbols | could be breaking the tigger so it doesnt even launch,i mean,i wrote #echo test in the action,and it didnt echo,so the tigger isnt launched...
Could anyone tell me why?
Thanks a lot for ur help
Articnal |
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sun Jan 05, 2003 11:29 pm |
Use parentheses () around the wildcards, not braces {}.
Pattern:
^ ~| Fue ~[(%d)~] ~| Int ~[(%d)~] ~| Sab ~[(%d)~] ~| Des ~[(%d)~] ~| Con ~[(%d)~] ~| Car ~[(%d)~] ~| Sue ~[(%d)~] ~|
LightBulb
Senior Member |
|
|
 |
Articnal Apprentice
Joined: 19 Jan 2002 Posts: 107
|
Posted: Mon Jan 06, 2003 1:29 am |
Hi
the tigger is almost ready.
now the pattern is:
^ ~| Fue ~[(%d)~] ~| Int ~[(%d)~] ~| Sab ~[(%d)~] ~| Des ~[(%d)~] ~| Con ~[(%d)~] ~| Car ~[(%d)~] ~| Sue ~[(%d)~] ~|
and the value:
#IF (@fue<15) {reroll=1}
#IF (@int<15) {reroll=1}
#IF (@sab<15) {reroll=1}
#IF (@des<15) {reroll=1}
#IF (@con<15) {reroll=1}
#IF (@car<15) {reroll=1}
#IF (@sue<15) {reroll=1}
#IF (@reroll=1) {n;reroll=0} {#beep}
the new problem is that the tigger does only work when every value is at least 10,if any value is less than 10,i supose that because the number has only 1 digit,it doesnt work.
How to fix that?
Thanks for ur time,Articnal |
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Mon Jan 06, 2003 6:00 am |
Try using ?? or * instead of %d. That will pick up the spaces as well as the numbers.
LightBulb
Senior Member |
|
|
 |
Articnal Apprentice
Joined: 19 Jan 2002 Posts: 107
|
Posted: Mon Jan 06, 2003 1:09 pm |
Okey,that solved the problem,thanks again LightBulb.
In case someone needs it,the tigger ended that way:
Fue ~[*(%d)~] for every skill so now it works perfectly.
Articnal |
|
|
 |
|
|