/gamble


adds the /gamble <all | half | random | [amount]> command

Tweaks
a month ago
1.1 - 2.0
390
Owner:
asher_sky
Source:
N/A
Homepage:
N/A
License:
CC BY-NC-SA
Created:
1 year, 7 months ago
Latest Version:
0.0.3 (a month ago)
Factorio version:
1.1 - 2.0
Downloaded by:
390 users

Overview

Adds the /gamble <all | half | random | [amount]> chat command.

Default currency is coins. Currency can be changed in mod settings.

Odds Breakdown:
result = bet * 0.05 * (1.055 ^ (roll - 1) )
Rolling a 1 through 57 results in a loss (0 to 1x multiplier), while 58 to 100 is a win (1 through 10x multiplier)


Features

  • Smart Bet Detection: Parameters are parsed via search; /gamble all! works the same as /gamble all. Priority is all > half > random > [number]
  • Smart Notifications: Only successful bets are broadcast to the server, all other notifications are just sent to the player who attempted to gamble
  • Overflow Protection: If you win more than you can carry, the overflow will be spilled onto the ground around you
  • Spam Protection: A per-player command cooldown is enforced. Cooldown can be changed in mod settings. Default cooldown is 15 seconds
  • Custom Currency: Currency can be changed in mod settings. Default currency is Coins

Translation

Help translate /gamble to more languages: https://crowdin.com/project/factorio-mods-localization
Currently available locale:
πŸ‡ΊπŸ‡Έ English (en), πŸ‡©πŸ‡ͺ German (de), πŸ‡ΊπŸ‡¦ Ukrainian (uk)


Compatibility

There are currently no known mod compatibility issues. To report a compatibility issue, please make a post on the discussion page.


License

/gamble Β© 2023-2025 by asher_sky is licensed under Attribution-NonCommercial-ShareAlike 4.0 International.
To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/