Edit of asset "Advanced Random Stuff" Accepted

Old/Current New/Edit
Title Advanced Random Stuff Advanced Random Stuff
Description 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.
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.
Category Tools Tools
License MIT MIT
Repository Provider GitHub GitHub
Repository Url https://github.com/don-tnowe/godot-advanced-random https://github.com/don-tnowe/godot-advanced-random
Issues Url https://github.com/don-tnowe/godot-advanced-random/issues https://github.com/don-tnowe/godot-advanced-random/issues
Godot version Godot 4.0 Godot 4.0
Version String 1.1 1.1
Download Commit b8cf75e1711b6d69eb646bc99649ac614601e6a1 b8cf75e1711b6d69eb646bc99649ac614601e6a1
Download Url (Computed) https://github.com/don-tnowe/godot-advanced-random/archive/b8cf75e1711b6d69eb646bc99649ac614601e6a1.zip https://github.com/don-tnowe/godot-advanced-random/archive/b8cf75e1711b6d69eb646bc99649ac614601e6a1.zip
Icon Url https://raw.githubusercontent.com/don-tnowe/godot-advanced-random/godot-4/icon.png
https://raw.githubusercontent.com/don-tnowe/godot-advanced-random/godot-4/icon.png