RNG (1 Viewer)

sorrowww

Content Creator
Coder
Modder
Designer
Writer
Joined
Mar 8, 2017
May have been asked before but I’m looking for the line of script to generate a random number between 1 - 10 or 1 - 100 even. Even a link to where the question ma have already been answered would be appreciated
 

Eva-2X

Content Creator
Joined
Nov 3, 2018
straight from DialogueActions update log.txt

da.random {read only} - returns a random value between 0 and 1. Example usage to make it 1-10: (you'll have to define x as "*" in initial_settings to get access to multiplication operator) [VA_SET_VARIABLE_var1_*da.random x 9 + 1 \ 1*] - formula is ( random * ( max - min ) ) + min \ 1

PS: I never used that feature, I hope this helps.
 

sorrowww

Content Creator
Coder
Modder
Designer
Writer
Joined
Mar 8, 2017
That’s what I was looking for. Remember seeing it somewhere so thanks
 

Users who are viewing this thread

Top


Are you 18 or older?

This website requires you to be 18 years of age or older. Please verify your age to view the content, or click Exit to leave.