Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random Count #20

Merged
merged 5 commits into from
Mar 14, 2024
Merged

Random Count #20

merged 5 commits into from
Mar 14, 2024

Conversation

adya
Copy link
Collaborator

@adya adya commented Mar 14, 2024

Summary

Random Count allows users to specify a range of number of items that should be distributed. For example, giving a random amount of gold or arrows.

Syntax

Random Count uses - to define a range. It deliberately doesn't use familiar / to avoid confusion with level filters that appear 1 section earlier.


As before, users can specify exact number of items:

; Orcish Mace
Item = 0x13990|NONE|NONE|NONE|NONE|2

Gives all NPCs exactly 2 Orcish Maces

But now they can also specify a range from which count will be picked randomly:

; Dwarven Sword
Item = 0x13999|NONE|NONE|NONE|NONE|5-10

Gives all NPCs from 5 to 10 Dwarven Swords

And just as before, default count is 1:

; Daedric Mace
Item = 0x139B8

Gives all NPCs exactly 1 Daedric Mace

adya and others added 2 commits March 14, 2024 02:03
Count can now be specified in form of range, e.g. 5/20 to produce anywhere between 5 and 20 items.
@adya adya self-assigned this Mar 14, 2024
@adya adya marked this pull request as draft March 14, 2024 00:19
@adya adya marked this pull request as ready for review March 14, 2024 00:32
@adya adya marked this pull request as draft March 14, 2024 00:38
@adya adya marked this pull request as ready for review March 14, 2024 00:39
@adya adya merged commit 7a91d0b into stable Mar 14, 2024
1 check passed
@adya adya deleted the feature/random-item-count branch March 14, 2024 18:45
@adya adya mentioned this pull request Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant