I managed to make a random weapon generator. The rarities are a bit weird but I’m just thankful it works.

Here it is, for those of you who might want to try it. All you do is paste it into an empty chat and it should work. You can find it below after the diamond line. After that all you need to do is type the text "/generate_weapon" (without quotations) and it should randomly generate a weapon as a text description, at which point the choice is yours whether or not you want to generate an image or not. Works most optimally if all other chats are cleared. It has had some varying results but it seems to function well overall. Have fun! Took about 4 hours to make.

<><><><><><><><><><><><><><><><><><><>

FANTASY WEAPON GENERATOR — COMPLETE ALGORITHM

Trigger: Whenever user types /generate_weapon, follow ALL steps in order.

0️⃣ RARITY COLORS

Apply these colors to:

Material

Final Rarity

(In images only) Weapon Name, but ONLY if the final rarity is Legendary or Mythic

Color application rule:
When generating an image, the text must be visually colored according to rarity. Do NOT write the color name in the image.

Common → White
Uncommon → Green
Rare → Blue
Epic → Deep Purple
Legendary → Gold / Yellow
Mythic → Rainbow Gradient

1️⃣ ROLL WEAPON TYPE (WITH BASE WEIGHT %)

15% — Basic Swords (Short Sword, Long Sword, Broadsword, Katana, Scimitar, Arming Sword)
10% — Daggers / Small Blades (Dagger, Kris, Tanto, Throwing Knife, Punch Dagger, Crescent Dagger)
6% — Curved / Exotic Swords (Saber, Falchion, Leaf Blade, Serpent’s Edge, Recurve Blade, Dragon-Talon Blade)
3% — Twin Blades (Dual Daggers, Twin Sabers, Paired Curved Blades)
7% — Polearms / Spears (Spear, Glaive, Halberd, Trident, Bardiche, Crescent Polearm)
8% — Axes / Hatchets (Battleaxe, Hand Axe, Throwing Axe, Bearded Axe, War Cleaver)
6% — Clubs / Maces (Club, Morningstar, Warhammer, Meteor Hammer, Iron Knuckle-Mace)
3% — Whips / Chain Weapons (Whip, Chain Whip, Bladed Whip, Hook Chain, Weighted Meteor Chain)
4% — Ranged Melee (Throwing Spear, Chakram, Shuriken, Boomerang Blade)
6% — Greatswords / Heavy Blades (Claymore, Executioner Blade, Great Katana, Demon Cleaver)
2% — Exotic / Arcane Blades (Floating Blades, Shape-Shifting Sword, Phase-Distorting Blade, Crystal Resonance Edge)
2% — Legendary / Unique Variants (Unique Weapon, Spirit-Linked Weapon, Living Weapon, Soul-Eater Blade)

2️⃣ ROLL MATERIAL (WITH TIER %)

30% — Common (Iron, Bronze, Hardened Wood, Bone, Stone, Charred Iron, Scrapper Steel)
25% — Uncommon (Steel, Obsidian, Frostwood, Reinforced Bone, Azuresteel, Stormwood, Hardened Chitin)
15% — Rare (Dragonbone Iron, Moonsteel, Shadowglass, Ember Alloy, Frostflare Steel, Ironvine Bark, Mirage Silver)
10% — Epic (Phoenix Bronze, Riftsteel, Dreamglass, Abyss-Touched Iron, Solarstone Alloy, Ghostroot Timber, Spirit-Forged Bone)
5% — Legendary (Star-Forged Metal, Living Crystal, Thunderstone Alloy, Celestial Iron, Primordial Embersteel)
2% — Mythic (Voidmetal, Sun-Forged Crystal, Aethersteel, Worldroot Branch, Etherbound Alloy, Titanbone)

Material Restrictions:

Rare weapon categories can only roll Rare or higher materials

Exotic, Legendary, and Unique weapon categories cannot roll Common materials

Common weapon categories cannot roll Mythic materials

Design modifiers may raise final rarity above material tier

3️⃣ DESIGN MODIFIERS

5% — Ornate carvings / etched runes → +1 rarity tier
3% — Elemental / magical glow → +1 rarity tier
1% — Shape-shifting weapon → Set rarity = Legendary
0.5% — Floating / animated parts → Set rarity = Mythic
0.5% — Extreme exotic transformation → Set rarity = Legendary or Mythic
(Modifiers can stack)

4️⃣ FINAL RARITY + DROP % CALCULATION

Drop % = Base Weapon % × Material Modifier × (1 − Design Rarity Modifier)

Material Modifiers:
Common = 1.0
Uncommon = 0.8
Rare = 0.5
Epic = 0.25
Legendary = 0.1
Mythic = 0.01

Design Rarity Modifier:
Ornate = 0.05
Glow = 0.1
Shape-shifting = 0.5
Floating = 0.9
Extreme Exotic = 0.5–0.9

Final Rarity:
Highest rarity between material tier and modifier effects.

5️⃣ NAME GENERATION RULE

Name = [Material] + [Weapon Type] (+ optional design suffix)

Examples:
Moonsteel Serpent’s Edge
Iron Longsword of Etched Runes
Bladed Chain Whip of Floating Shards
Riftsteel Executioner Blade

6️⃣ IMAGE GENERATION RULES

Only generate when the user says: “Generate this as an image”.

The image MUST show:

Drop % in the top-left corner

Weapon Name

Weapon Type

Material

Rarity

Short Description (1–2 sentences)

Art matching:

Weapon category

Material visuals

Design modifiers (glow, runes, floating parts, etc.)

Rarity theme

Coloring Rules for Images:

  1. Material text must be visually colored using the weapon’s rarity color.

  2. Rarity text must be visually colored using the weapon’s rarity color.

  3. If the final rarity is Legendary or Mythic, the Weapon Name text must also be visually colored using that rarity color.

  4. Do NOT include color names inside the image—apply the colors directly to the text.

7️⃣ WEAPON TEXT OUTPUT FORMAT (Non-Image)

[TOP-LEFT] Drop %: {value}%

Weapon Name: {name}
Weapon Type: {weapon type}
Material: {material} ({material rarity tier}, {rarity color})
Rarity: {final rarity tier} ({rarity color})

Short Description: {1–2 sentences describing appearance & effects}

END OF ALGORITHM

Leave a Reply