Extensive collection of real-world formula patterns
Basic Formula Patterns
1. Simple Stat Scaling
The most common pattern - one attribute affects another linearly.
Strength → Melee Damage
Name: StrengthDamage
Target: Damage
Start Mode: Zero
Flat Bonuses: Strength × 2.0
Apply Mode: Add to Base
Result: Each STR point adds 2 damage
STR 15 = 30 bonus damage
Intelligence → Mana
Name: IntelligenceMana
Target: Mana
Start Mode: Zero
Flat Bonuses: Intelligence × 5.0
Post-Flat: Base Mana +25
Apply Mode: Add to Base
Result: Each INT point adds 5 mana, +25 base mana
INT 12 = (12 × 5) + 25 = 85 bonus mana
2. Level-Based Scaling
Character progression formulas that scale attributes with level.
Level → Health Scaling
Name: LevelHealth
Target: Health
Start Mode: TargetBase
Flat Bonuses: Level × 15.0
Apply Mode: Override Base
Also Update Current: true
Result: Total health = base health + (level × 15)
Base Health 100, Level 8 = 100 + (8 × 15) = 220 total health
Level → Experience Requirement
Name: ExperienceRequired
Target: ExpToNext
Start Mode: Zero
Flat Bonuses: Level × 100.0
Multipliers: Difficulty Scaling ×1.2
Post-Flat: Base XP +500
Apply Mode: Override Base
Result: XP needed = ((level × 100) × 1.2) + 500
Level 5 = ((5 × 100) × 1.2) + 500 = 1100 XP needed
Intermediate Formula Patterns
3. Multi-Source Combinations
Formulas that combine multiple attributes for complex relationships.
Physical Defense Calculation
Name: PhysicalDefense
Target: Defense
Start Mode: Zero
Flat Bonuses:
• Strength × 0.5 (muscle provides some protection)
• Endurance × 1.0 (toughness and resilience)
• Level × 2.0 (experience in avoiding hits)
Post-Flat: Base Defense +5
Apply Mode: Add to Base
Result: Defense = (STR×0.5 + END×1.0 + Level×2.0) + 5
STR 20, END 15, Level 8 = (10 + 15 + 16) + 5 = 46 defense
Multiple formulas working together to create complex systems.
Comprehensive Defense System
Formula 1 - Physical Defense:
Name: PhysicalDefense
Target: PhysicalDef
Flat: Strength×0.8 + Endurance×1.5 + Armor×2.0
Execution Order: 0
Formula 2 - Magical Defense:
Name: MagicalDefense
Target: MagicalDef
Flat: Intelligence×0.6 + Wisdom×1.2 + MagicResist×2.5
Execution Order: 0
Formula 3 - Total Defense Rating:
Name: TotalDefense
Target: DefenseRating
Flat: PhysicalDef×0.6 + MagicalDef×0.4 + Level×1.0
Execution Order: 1 (runs after defense calculations)
Creates layered defense system with physical/magical components.
Testing Your Formulas
Validation Examples
Use these test cases to verify your formulas work correctly:
// Test extreme values
Test Values: STR 1, Level 1 → Should give reasonable minimum
Test Values: STR 100, Level 50 → Should not break the game
Test Values: STR 0, Level 0 → Should handle gracefully
// Test breakpoint boundaries
Test Values: Level 24 vs Level 25 → Verify breakpoint activation
Test Values: STR 29 vs STR 30 → Check threshold effects
// Test formula interactions
Test Multiple: Change STR → Verify all STR-dependent formulas update
Test Performance: 100 rapid changes → Should remain smooth
Common Test Scenarios
New Character: Level 1, basic stats - should have playable values
End Game: Level 50+, high stats - powerful but not broken
Edge Cases: Zero stats, maximum stats, negative values
Regeneration Rate Formulas
Formulas can target RegenerationRate or RegenerationDelay for Vital attributes, enabling dynamic regen systems.
Regen Rate Examples
Level → Health Regen Rate
Name: LevelHealthRegen
Target: Health
Target Property: RegenerationRate
Start Mode: Zero
Flat Bonuses: Level × 0.5
Post-Flat: Base Regen +1.0
Apply Mode: Add
Result: Health regenerates faster at higher levels
Level 10 = (10 × 0.5) + 1.0 = 6.0 HP/second
Endurance → Stamina Regen Rate
Name: EnduranceStaminaRegen
Target: Stamina
Target Property: RegenerationRate
Start Mode: Zero
Flat Bonuses: Endurance × 0.8
Apply Mode: Add
Result: Each Endurance point adds 0.8 stamina/second
END 20 = 16.0 stamina/second
Regen Delay Examples
Vigor → Reduced Health Regen Delay
Name: VigorRegenDelay
Target: Health
Target Property: RegenerationDelay
Start Mode: Zero
Flat Bonuses: Vigor × -0.1
Post-Flat: Base Delay +3.0
Apply Mode: Override
Result: Higher Vigor = faster recovery after damage
Vigor 15 = 3.0 + (15 × -0.1) = 1.5 second delay
Vigor 30 = 3.0 + (30 × -0.1) = 0 second delay (instant)
Property Targeting: The RegenerationRate and RegenerationDelay options only appear for Vital-type attributes in the wizard. You can have multiple formulas targeting the same attribute with different properties (e.g., one formula for Health value, another for Health regen rate).
Formula Design Best Practices
Start Simple
Begin with basic flat bonuses (STR → Damage)
Add complexity gradually
Test each addition thoroughly
Use the Test Preview panel extensively
Maintain Balance
Consider all character build paths
Avoid making any single stat overpowered
Test with extreme stat distributions
Plan for player min-maxing
Performance Considerations
Group related calculations in single formulas
Use execution order for dependent formulas
Limit the number of formulas per attribute
Consider Manual mode for turn-based games
Documentation
Document Your Formulas: Use clear names and export to JSON for version control. Include comments explaining the design intent and expected value ranges.