Modding:Random Functions: Difference between revisions

m
Clarifies that Rnd isn't used in mutation picking, makes the explanation of consequences less dramatic/hyperbolic.
No edit summary
m (Clarifies that Rnd isn't used in mutation picking, makes the explanation of consequences less dramatic/hyperbolic.)
 
Line 15: Line 15:


===Rnd()===
===Rnd()===
This is the main function that randomizes and determines things such as sultan artifacts, villages, and basically everything important that is based on world seed. All effects and mutations use this function. Don't use this function in your mod if you don't want to ruin world seeds.  
This is the main function that randomizes and determines things such as sultan artifacts, villages, and many other things based on world seed. Using this generator or <code>Stat.Random</code> in a mod may cause a world seed to give different results than in vanilla.


===Rnd2(), Rnd4(), Rnd5()===
===Rnd2(), Rnd4(), Rnd5()===
45

edits