Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
M mmoitems
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 47
    • Issues 47
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Administrator
  • mmoitems
  • Wiki
  • Complex Stats

Complex Stats · Changes

Page history
Updated Random Stat Data Format (markdown) authored Apr 14, 2020 by Indyuce's avatar Indyuce
Hide whitespace changes
Inline Side-by-side
Showing with 0 additions and 0 deletions
+0 -0
  • Complex-Stats.md Complex-Stats.md +0 -0
  • No files found.
Complex-Stats.md 0 → 100644
View page @ 4a3bee2a
Randomly generated items can have **numeric stats**, like attack damage, attack speed, crit strike chance, but you can also add more **complex stats** to it, like abilities, or permanent potion effects, which power do also scale with the item level. These statistics are more complex and therefore a little harder to setup.
Remember any code snippet found in that page would go either in the `base` config section of an item gen template (which corresponds to the template base item data), or in the `stats` config section of an item gen modifier:
```
ITEM_TEMPLATE_EXAMPLE:
type: SWORD
base:
material: IRON_SWORD
# <======== either here
modifiers:
first-modifier:
prefix: 'Modifier Prefix'
stats:
attack-damage: 3
# <======= or here
```
### Abilities
Using the item generator, you can create items with special abilities which get stronger the higher the item level. Precisely, abilities have modifiers (how much damage it deals, how long a potion effect lasts..) which can scale on the item level. Use this format to add an ability to an item gen template/item gen modifier:
```
ability:
first-ability-id:
type: burn
mode: on_hit
# First ability modifier
cooldown:
base: 6
spread: .1
max-spread: .3
# Second ability modifier
duration:
base: 3
scale: .2
second-ability:
type: life-ender
mode: right-click
damage:
base:
```
You may notice that the format is the exact same as if you wanted to add an ability to a normal (not randomly generated) mmoitem. The only thing that changes is how you define the ability modifiers, because they are the only values which can really scale on the item level. The formulas used to define an ability modifier are the same as the formulas used with [[numeric stats|Item-Generator-Templates]].
In this example, the on-hit burn ability has a 6s cooldown however that values fluctuates +/-10% in average with a maximum relative offset of 10%. The burn lasts for 6 seconds but that duration is increased by 0.2 second for every item level.
#
\ No newline at end of file
Clone repository

  • Home
  • Installation Guide

General

  • Item Types
  • Item Stats & Options
  • Item Creation

Features

  • Mitigation
  • Elemental Damage
  • Item Identification
  • Item Tiers
  • Gem Stones
  • Custom Durability
  • Item Sets
  • Item Upgrading
  • Soulbound

Crafting Stations

  • Crafting Stations
  • Upgrading Recipes
  • Recipe Conditions
  • Recipe Ingredients
  • Recipe Triggers

Item Management

  • Item Updater
  • Item Drop Tables

Item Generator

  • General
  • Item Templates
  • Item Modifiers
  • Complex Stats

Abilities

  • Abilities
  • Ability List

Compatibility & API

  • Supported Plugins
  • Custom Item Textures
  • Plugin API