![]() |
![]() ![]() ![]() ![]() ![]()
|
Author | Topic: statistics roller |
Gautier UK |
![]() ive thought of a simple way to roll statistics. if anybody has any good ways off making a rolling system, post your ideas here. thanks |
Gautier UK |
![]() the way ive done it, is how I Think Im Back showed me, and thats to set the stat variable to $rand(8;21)$ each time the 'roll' command is pressed, like so.... command <roll> { i think this is the best way you can do it. |
Gautier UK |
![]() what i would like to do, is set the stat system, so, for example... a certain race's agility cant go above 18. |
Alex |
![]() If you want to do that, either: 1. change $rand(8;21)$ to something like $rand(8;%maxvalue%)$, where maxvalue is a numeric variable containing the maximum value you want to allow OR 2. use a status variable, and in the "on change" script, check whether the value has gone above the allowed maximum (using a conditional "if" script). If it has, reset to the maximum value. |
Gautier UK |
![]() nice one, cheers. |