Board |
General.old [context] |
Sender |
Allkohl |
Date |
Tue Jan 17 15:27:48 2012 |
To |
all |
Subject |
rolltrigger |
|
pattern:
Dice left to distribute: (%n), (%n), (%n), (%n), (%n), (%n), (%n), (%n), (%n),
(%n), (%n), (%n), (%n), (%n), (%n)
value:
#VAR total 0
#AD total %1
#AD hundred %1
#AD total %2
#AD hundred %2
#AD total %3
#AD hundred %3
#AD total %4
#AD total %5
#AD total %6
#AD total %7
#AD total %8
#AD total %9
#AD total %10
#AD total %11
#AD total %12
#AD total %13
#AD total %14
#AD total %15
#SAY @total
#IF (@total >= 1050 || @hundred >= 300) {{goodroll} {{rer}
should stop rolling
- if total is over 1050 or
- if first 3 die add up to 300 (so 100 100 100 ...)
the 'goodroll' is a simple alias doing
#ECHO THAT'S AWESOME!!! @total ROLL!!!!!!;#WAIT 50000;show
making sure you connection doesn't time out
'total' and 'hundred' are just 2 variables to keep track of
the total sum and the sum of the first 3
(ps i'm not sure if || is the command for 'or' in zmud
it's been too long since i made wacky triggers in here)
|