Tutorial-Blog A Primer on Database Traits and Effects

brb just admiring how much that artwork slays

also this clears up a lot of minutiae!
Woo, I'm famous!
A good primer and useful reference.
Spoiler: Some notes
  1. State Rate: Determines the success rate of applying a state.
    The following sources ignore state rates (and luck):
    • Add State effects for Certain Hit type actions.
    • Change State and Change Enemy State commands.
    (Debuff rates still apply for Certain Hit actions.)

  2. Agility - Has a linear effect on skill speed; party/troop average agility is used to calculate the chance of a surprise/preemptive attack.
    Agility is also used in RMMZ's Time Progress Battle system to determine how quickly a battler's TPB gauge increases over time. More details here:

  3. Attack Element - Determines which element the battler's Attack command will be considered to be.
    Attack Elements apply to skills with element set to Normal Attack. (This is similar to Attack States and the Add State: Normal Attack effect.) If multiple Attack Elements apply, only the element with the highest rate will be used.

  4. Add Skill Type - Unlocks a given skill type for the battler, allowing them to use skills belonging to it if learned.
    RMMV will show 1 battle command per Add Skill Type trait; RMMZ filters out duplicates.

  5. Lock Equip - Locks a particular equipment slot, preventing the existing item being from being changed.
    A locked equip slot can still be changed via a Change Equipment event command.

  6. Guard - Having this trait will cause the battler to apply the Guard effect without having to use the command for it.
    The Special Flag - Guard trait is responsible for all guard effects. The Guard command uses skill ID 2; in a new project this skill applies state ID 2 (Guard) to the target, which has a Guard flag trait. State ID 2 is not hard-coded for anything, unlike the death state (ID 1).

    Also, the Guard flag:
    • ...only applies if the battler can move (i.e. not affected by a Cannot Move state).
    • ...makes animated sideview battle actors use a "guard" idle motion.

  7. Raise Preemptive - Makes it more likely that the party will get a preemptive strike (as we saw above, it adds a 2% chance).
    It multiplies the chance of preemptive strike by 4, i.e. 3% -> 12% or 5% -> 20%, depending on party agility vs troop agility.

  8. Drop Item Double - Doubles item drop rates.
    I.e. "doubles each item's drop chance": each drop item slot still only drops up to 1 copy of the item.

  9. Special Effect -> Escape - This is the only current option for the effect, and will immediately cause the user's party to flee. This will always succeed.‍
    The Escape effect causes the affected target(s) to become hidden/absent from battle. This is not necessarily the whole unit.

  10. Grow - Permanently increases the chosen parameter by the specified value, ranging from 1-1000.‍
    Works the same way as the Change Parameters command~

  11. Common Event - Calls the specified common event.
    The event gets reserved and will run after the damage formula is applied. Using a skill/item with a Common Event effect from the menu will automatically exit the menu in order to run the attached event on the map.

    (This is because the default menu does not have an event interpreter, which is necessary to process event commands, and reserved events are not saved.)
Plugins can change any aspect of how traits or effects work.
Spoiler: Some notes

  1. The following sources ignore state rates (and luck):
    • Add State effects for Certain Hit type actions.
    • Change State and Change Enemy State commands.
    (Debuff rates still apply for Certain Hit actions.)


  2. Agility is also used in RMMZ's Time Progress Battle system to determine how quickly a battler's TPB gauge increases over time. More details here:


  3. Attack Elements apply to skills with element set to Normal Attack. (This is similar to Attack States and the Add State: Normal Attack effect.) If multiple Attack Elements apply, only the element with the highest rate will be used.


  4. RMMV will show 1 battle command per Add Skill Type trait; RMMZ filters out duplicates.


  5. A locked equip slot can still be changed via a Change Equipment event command.


  6. The Special Flag - Guard trait is responsible for all guard effects. The Guard command uses skill ID 2; in a new project this skill applies state ID 2 (Guard) to the target, which has a Guard flag trait. State ID 2 is not hard-coded for anything, unlike the death state (ID 1).

    Also, the Guard flag:
    • ...only applies if the battler can move (i.e. not affected by a Cannot Move state).
    • ...makes animated sideview battle actors use a "guard" idle motion.


  7. It multiplies the chance of preemptive strike by 4, i.e. 3% -> 12% or 5% -> 20%, depending on party agility vs troop agility.


  8. I.e. "doubles each item's drop chance": each drop item slot still only drops up to 1 copy of the item.


  9. The Escape effect causes the affected target(s) to become hidden/absent from battle. This is not necessarily the whole unit.


  10. Works the same way as the Change Parameters command~


  11. The event gets reserved and will run after the damage formula is applied. Using a skill/item with a Common Event effect from the menu will automatically exit the menu in order to run the attached event on the map.

    (This is because the default menu does not have an event interpreter, which is necessary to process event commands, and reserved events are not saved.)
Plugins can change any aspect of how traits or effects work.
I appreciate the addenda, but you couldn't say something nice about it first? 😉

I'd edit the original topic, but that won't do anything to the blog version so probably not much point.
I appreciate the addenda, but you couldn't say something nice about it first? 😉
Oops, sorry. 😅

It looks great! Should be a helpful resource, especially for newcomers. I didn't know about the 3%|5% mechanic for special battle conditions off the top of my head (I vaguely thought it just scaled the chances like with luck), so I learned something, too~ 🙏

(It's not a big deal, most of those notes were just extra details/context.)
Oops, sorry. 😅

It looks great! Should be a helpful resource, especially for newcomers. I didn't know about the 3%|5% mechanic for special battle conditions off the top of my head (I vaguely thought it just scaled the chances like with luck), so I learned something, too~ 🙏

(Most of those notes were just extra details/context anyway, so it's not a big deal.)
Haha I'm just teasing you. They were great extra context that I should have included in the first place. And you highlighted that I accidentally repeated the base preemptive bonus for Raise Preemptive instead of it multiplying by 4.

Original thread: https://forums.rpgmakerweb.com/threads/a-primer-on-database-traits-and-effects.145555/