powerof3 / Spell-Perk-Item-Distributor

MIT License
29 stars 8 forks source link

Random Count #20

Closed adya closed 7 months ago

adya commented 7 months ago

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