Install Asset
Install via Godot
To maintain one source of truth, Godot Asset Library is just a mirror of the old asset library so you can download directly on Godot via the integrated asset library browser
![Advanced Random Stuff hero image](https://img.godotassetlibrary.com/BWgusKgdrjrwSq2FabAN3HexdWh8szaWxLC93RCqcbg/rs:fit:1920:1080:0/g:no/aHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL2Rvbi10bm93ZS9nb2RvdC1hZHZhbmNlZC1yYW5kb20vZ29kb3QtNC9pY29uLnBuZw.webp)
Quick Information
![Advanced Random Stuff icon image](https://img.godotassetlibrary.com/Ch80V3ndaVnNjnDogShJjFH9ai0X5BSebMpWfd7f0Mk/rs:fit:50:50:0/g:no/aHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL2Rvbi10bm93ZS9nb2RvdC1hZHZhbmNlZC1yYW5kb20vZ29kb3QtNC9pY29uLnBuZw.webp)
An addon including a class that provides various functions that go beyond randf() and randi() to provide various kinds of RNG.The highlight is the Dynamic Wheel of Fortune, introducing weighted randomness with weights calculated based on the contents of a collection: requirements, limits and buffs.Perfect for games presenting a selection of random upgrades which may require other upgrades to provide any use! The `DynamicWheelItem` allows defining the item's weights, categories/tags, conditional weight bonuses and count limits.Includes classes (each instantiated through `Class.new()` unless a Resource):- `FortuneWheel`, a class providing the above described feature as well as simple weighted RNG;- `DiceArray`, a class taking several of an `AdvancedDie` Resource to roll them and tally up the symbols that were rolled (as in the game https://store.steampowered.com/app/1893620/Circadian_Dice/ or whatever else has different symbols on one die face);- `CardDeck`, a class that emulates drawing from a pile of cards. Implementation close to https://store.steampowered.com/app/646570/Slay_the_Spire/ - when you draw from `PILE_DRAW`, cards go to `PILE_IN_PLAY` until you move them to `PILE_DISCARD`. More custom piles can be added and existing ones reconfigured.Check out the `example` folder for uses of these features.
Advanced Random
An addon including a class that provides various functions that go beyond randf() and randi() to provide various kinds of RNG.
The highlight is the Dynamic Wheel of Fortune, introducing weighted randomness with weights calculated based on the contents of a collection: requirements, limits and buffs. This is perfect for games presenting a selection of random upgrades which may require other upgrades to provide any use. The DynamicWheelItem
allows defining the item's weights, categories/tags, conditional weight bonuses and count limits.
Includes classes (each instantiated through Class.new()
unless a Resource):
FortuneWheel
, a class providing the above described feature as well as simple weighted RNG;DiceArray
, a class taking several of anAdvancedDie
Resource to roll them and tally up the symbols that were rolled (as in the game Circadian Dice or whatever has different symbols on one die face);CardDeck
, a class that emulates drawing from a pile of cards. Implementation close to Slay the Spire - when you draw fromPILE_DRAW
, cards go toPILE_IN_PLAY
until you move them toPILE_DISCARD
. More custom piles can be added and existing ones reconfigured.
Made by Don Tnowe in 2022.
https://redbladegames.netlify.app
Copying and Modification is allowed in accordance to the MIT license, full text is included.
An addon including a class that provides various functions that go beyond randf() and randi() to provide various kinds of RNG.
The highlight is the Dynamic Wheel of Fortune, introducing weighted randomness with weights calculated based on the contents of a collection: requirements, limits and buffs.
Perfect for games presenting a selection of random upgrades which may require other upgrades to provide any use! The `DynamicWheelItem` allows defining the item's weights, categories/tags, conditional weight bonuses and count limits.
Includes classes (each instantiated through `Class.new()` unless a Resource):
- `FortuneWheel`, a class providing the above described feature as well as simple weighted RNG;
- `DiceArray`, a class taking several of an `AdvancedDie` Resource to roll them and tally up the symbols that were rolled (as in the game https://store.steampowered.com/app/1893620/Circadian_Dice/ or whatever else has different symbols on one die face);
- `CardDeck`, a class that emulates drawing from a pile of cards. Implementation close to https://store.steampowered.com/app/646570/Slay_the_Spire/ - when you draw from `PILE_DRAW`, cards go to `PILE_IN_PLAY` until you move them to `PILE_DISCARD`. More custom piles can be added and existing ones reconfigured.
Check out the `example` folder for uses of these features.
Reviews
Quick Information
![Advanced Random Stuff icon image](https://img.godotassetlibrary.com/Ch80V3ndaVnNjnDogShJjFH9ai0X5BSebMpWfd7f0Mk/rs:fit:50:50:0/g:no/aHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL2Rvbi10bm93ZS9nb2RvdC1hZHZhbmNlZC1yYW5kb20vZ29kb3QtNC9pY29uLnBuZw.webp)
An addon including a class that provides various functions that go beyond randf() and randi() to provide various kinds of RNG.The highlight is the Dynamic Wheel of Fortune, introducing weighted randomness with weights calculated based on the contents of a collection: requirements, limits and buffs.Perfect for games presenting a selection of random upgrades which may require other upgrades to provide any use! The `DynamicWheelItem` allows defining the item's weights, categories/tags, conditional weight bonuses and count limits.Includes classes (each instantiated through `Class.new()` unless a Resource):- `FortuneWheel`, a class providing the above described feature as well as simple weighted RNG;- `DiceArray`, a class taking several of an `AdvancedDie` Resource to roll them and tally up the symbols that were rolled (as in the game https://store.steampowered.com/app/1893620/Circadian_Dice/ or whatever else has different symbols on one die face);- `CardDeck`, a class that emulates drawing from a pile of cards. Implementation close to https://store.steampowered.com/app/646570/Slay_the_Spire/ - when you draw from `PILE_DRAW`, cards go to `PILE_IN_PLAY` until you move them to `PILE_DISCARD`. More custom piles can be added and existing ones reconfigured.Check out the `example` folder for uses of these features.