editor prefix chance - magemonkeystudio/divinity GitHub Wiki

🎲 Editor: Prefix Chance

The Prefix Chance option controls the probability that a prefix will be added to the item during generation.

How to Use

  • Click the Prefix Chance icon in the editor.
  • Enter a value from 0 to 100 (percent chance).

Behavior

  • A random roll is made during item generation.
  • If the roll succeeds, a prefix is applied.
  • If it fails, no prefix is used.

Where Do Prefix Names Come From?

Prefix names are defined in text files inside:

/plugins/Divinity/modules/item_generator/resources/names/prefixes/

They are organized into subfolders by category:

  • /materials/ — Specific item material (e.g., diamond_sword.txt)
  • /types/ — Item type (e.g., sword.txt, axe.txt)
  • /tiers/ — Item tier (e.g., common.txt, eternal.txt)

Each file should contain one name per line. The plugin randomly selects a name from each applicable file to assemble the prefix.


Example (Diablo-style)

Let's say you're generating a prefix for a diamond sword of common tier:

/tiers/common.txt

Cracked
Damaged
Ancient

/types/sword.txt

Slashing
Dueling
Executioner’s

/materials/diamond_sword.txt

of the Fallen
of Ruin
of Quickness

Generated name might be:

Ancient Executioner’s Diamond Sword of the Fallen

Notes

  • You cannot edit affix names from the editor — changes must be made manually in the plugin folder.
  • This option only controls if a prefix appears, not which one.

Return to: Item Generator Module