I'm making a system where the silly tavern will DM using the WoD style of dice rolling. Here is a quick description of the relevant rules. role a number of ten sided dice. dice above a certain amount are successes. When ten is rolled you can roll again to potentially gain additional successes. Here is the code that models this behavior.
When this snippet is run the result is dice will be a negative number usually between -90 and -80 when logically it should be 0.
Essentially what it seems is happening is that when /while does the gt test it continues instead of breaking the loop when left>right evaluates to false until it hits the hard limit.
I've inserted a counter to see test if "gt" is working properly in other commands.
I'm making a system where the silly tavern will DM using the WoD style of dice rolling. Here is a quick description of the relevant rules. role a number of ten sided dice. dice above a certain amount are successes. When ten is rolled you can roll again to potentially gain additional successes. Here is the code that models this behavior.
When this snippet is run the result is dice will be a negative number usually between -90 and -80 when logically it should be 0. Essentially what it seems is happening is that when /while does the gt test it continues instead of breaking the loop when left>right evaluates to false until it hits the hard limit. I've inserted a counter to see test if "gt" is working properly in other commands.
the final result of goodroll is sane (above 5 and usually below 10).