Chucl Member Sep 5, 2023 #1 ServUO Version Publish Unknown Ultima Expansion None C#: int DestroyChance = Utility.Random(3); if (DestroyChance > 0) // Success {
Rex Grandmaster Sep 5, 2023 #2 Utility.Random(3) can roll these numbers: 0 1 2 So if DestroyChance rolls a 1 or 2 it will pass as greaterthen 0. "DestroyChance > 0". So a 2/3rd chance, or 66%
Utility.Random(3) can roll these numbers: 0 1 2 So if DestroyChance rolls a 1 or 2 it will pass as greaterthen 0. "DestroyChance > 0". So a 2/3rd chance, or 66%