Randomness Questions

3 posts / 0 new
Last post
#1
Randomness Questions

So I'm looking to make a mod that incorporates a lot of random integers. These will be used in the gamevars.xml file for things such as: starting hour, skill points, and start hex location (I've done this previously, but not by generating a random number).
Any help would be appreciated. So far, I've tried using "random.Int" in a multitude of areas, but it hasn't worked. Am I missing something obvious, or can this not be done in NS?

Rar! Rar rar rar! Thanks for reading :)

I don't think there's a way to generate random values for anything in gamevars.xml. The only xml-based randomness supported, I think, are the loot-type equations. E.g. 417x0.17x1-3

Most of the gamevars stuff is just directly converted from string to number, so "random.Int" would either break it or produce a default value like 0 or -1.

Dan Fedor - Founder, Blue Bottle Games

Yeah, every time I tried I got 0 as the return. Oh well, I can still use a RNG, and input those numbers manually.
As for random starting hex, I'll just use my previous method of deleting the initial numbers.
Thanks for commenting so quick, by the way, I appreciate it. Shame that random values don't work, though.

Rar! Rar rar rar! Thanks for reading :)