I was just wondering if it was possible to do a Diceroll with 2 different variables. A game I'm making depends on upgrades. The code I have right now is %MONEYGAIN := %MONEYGAIN + %WORKERSD%MAXCASH .
So if the max cash a worker can get is 4, and I have 5 workers, it would be a random value from 5 to 20.
How do I make this possible?
So... basically there's no way [yet] to do that, right? Oh well then, thanks for your help, I'll try that out.
I agree that it would be tedious to do that for all workers,
You could, though, create a page that does this for you(sort of like a function in coding), and modify the variable from the previous.
Okay, I guess it's time to go to the feature wishing well then. Thanks for yours and mizal's help
I am pretty sure that %WORKERSD%MAXCASH would generate a random number from 5(maxcash) to 4(workers) which is not really possible. If you want MONEYGAIN to be 5-20, then i suggest storing another variable which multiplies 4 maxcash and 5 workers(assuming that's what you want Nope), and then do %WORKERSD%VARIABLE, and assign that to MONEYGAIN.
EDIT: Mizal got the reply in before me :P
EDIT2: Shoot, I messed that logic up. Yeah, Mizal is right, and I think that you add a MINCASH, and then randomize it with MAXCASH, which could be something dealing with your workers...
So... 1d1000 - (1000 - %MAXCASH) or something, right?
Well thanks for your help, I'll try that too
I've found kind of a rusty basic to build off of:
1D10000 * [(1/2 ^ %MAXCASH) * 10000]
Problem is, I don't know how to type exponents in the script