Trending today

1

Create a deep RPG character backstory with motivations, flaws, and arc potential

11.8K views
2

Anomaly detection with rolling z-score windows in SQL

11.8K views
3

30-day social media content calendar with post templates

11.6K views
4

Structured logging with correlation IDs across microservices

11.4K views
5

Legacy JavaScript to modern ES2023 refactor

10.9K views

Creators to follow

N
nadia_ux45 followers
D
david_ops45 followers
P
priya_design44 followers
AboutTermsPrivacyHelp

© 2026 teliprompt

KA
kai_unity
10 days 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
8.8K
Copies
2.6K
Likes
880
Comments
0
Copy rate
29.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
Write a first-hour tutorial script that teaches mechanics without breaking immersionby @nina_pixel
Gaming
Produce a thorough accessibility audit checklist for a shipping gameby @emi_rpg
Gaming
Write branching NPC dialogue trees with personality-driven responsesby @derek_level
Gaming