1,043
edits
m (Teamtoto moved page Modding:Random Functions to Modding: Random Functions: Added space to fit naming conventions) |
(add modding info box) |
||
Line 1: | Line 1: | ||
{{As Of Patch| 2.0.182.1}} {{stub}} | {{Modding Info}}{{As Of Patch| 2.0.182.1}} {{stub}} | ||
If your mod has some element of randomness, you're gonna be looking for a function to call. However, calling the built in <code>Next()</code> function in the Random Class built into C# will net you some compilation errors. The best practice is to use the random functions inside <code>XRL/Rules/Stat.cs</code>. Below are the different random functions inside Caves of Qud and what they are used for. | If your mod has some element of randomness, you're gonna be looking for a function to call. However, calling the built in <code>Next()</code> function in the Random Class built into C# will net you some compilation errors. The best practice is to use the random functions inside <code>XRL/Rules/Stat.cs</code>. Below are the different random functions inside Caves of Qud and what they are used for. |