Creators to follow

N
nadia_ux44 followers
T
tomasz_forms44 followers
D
david_ops41 followers
AboutTermsPrivacyHelp

© 2026 teliprompt

KA
kai_unity
7 months ago•
Gaming

Build a weighted procedural loot table generator with rarity tiers and pity timers

GPT-4.1
code output
#loot-tables
#procedural
#typescript
#rpg-systems
#gameplay-programming
Views
2.1K
Copies
577
Likes
227
Comments
0
Copy rate
28.0%

Prompt

You are a loot systems engineer. Implement a fully featured procedural loot generator in TypeScript that a gameplay programmer can drop into a Unity or Godot project via a Node build step, or adapt to C# directly.

Game setting: [game_setting]
Rarity tiers: [rarity_tiers]
Include pity timer: [pity_behavior]

Requirements:
1. Strongly typed LootTable and LootEntry definitions
2. Weighted random sampling with deterministic seeding
3. Rarity tier rolling with configurable drop rates
4. A pity-timer system that guarantees a rare drop after N unlucky rolls
5. Support for nested sub-tables (drop a treasure chest → roll its contents)
6. Budget system so a dungeon cannot drop more than X gold per clear
7. Unit-testable: no hidden globals, pure where possible
8. Include a worked example at the bottom

Customise this prompt

Fill in 3 variables to personalise this prompt

Preview
You are a loot systems engineer. Implement a fully featured procedural loot generator in TypeScript that a gameplay programmer can drop into a Unity or Godot project via a Node build step, or adapt to C# directly. Game setting: [game_setting] Rarity tiers: [rarity_tiers] Include pity timer: [pity_behavior] Requirements: 1. Strongly typed LootTable and LootEntry definitions 2. Weighted random sampling with deterministic seeding 3. Rarity tier rolling with configurable drop rates 4. A pity-timer system that guarantees a rare drop after N unlucky rolls 5. Support for nested sub-tables (drop a treasure chest → roll its contents) 6. Budget system so a dungeon cannot drop more than X gold per clear 7. Unit-testable: no hidden globals, pure where possible 8. Include a worked example at the bottom

Example output

Related prompts

Create a deep RPG character backstory with motivations, flaws, and arc potentialby @emi_rpg
Gaming
Generate a combat balance spreadsheet formula suite for a class-based RPGby @zoe_quest
Gaming
Analyze player reviews to extract actionable game development insightsby @troy_balance
Gaming
Build a game economy balancing model with sink-source analysis in Pythonby @troy_balance
Gaming