Non-threaded

Forums » Advanced Editor Forum » Read Thread

Get help from the experts on variables, scripts, items, and other scary things.

[Answered] Random Variable Change

17 years ago

Would it be possible to make a random number generator? With variables? Like, you subtract a number of R from a variable, so it would reset the variable to a totally random number in the range of... let me give an example.

You are fighting a guy. He punches you. Your HEALTH variable is 100. Then, after he punches you, it is 86. The next time you play the game, you click the same exact link, and you have 74 HEALTH after the punch. And the second time you started with 100, too.

And to put this in, instead of subtracting 70 health, just put R in the variable change box? I think for more of that "Difference" on the battlefield, it might hit you in the chest harder than the last time.

 Expander

[Answered] Random Variable Change

17 years ago

Yes.

Switch variables to advanced and you can create random variables. To subtract variables from another variable, then you have to use scripting.  Moved to AEF.  Please ask if its possible before asking for it as a feature.