Skip to content

Remove State ​

Category: Character/Party

Removes states (poison, sleep, buffs, debuffs, etc.) from characters. Functions as the counterpart to Add State, with completely identical property structure. Used for healer events, revival events, forced removal of specific states, etc.

Auto-revival on DEAD removal

When the DEAD state is removed, HP is automatically set to 1 or more, reviving the character. However, a safety mechanism is also built in such that if the maximum HP value (HP.MAX) is 0 or less, revival fails (DEAD is maintained).

ESCAPE state cannot be removed

Attempting to remove the ESCAPE state (enemy battle escape) with this event content is always ignored. This is intentional because there is no mechanism to resurrect them.

Property List ​

Property structure is completely identical to Add State.

Item (tscn label)Input FormatDescription
TargetSelectCharacter specification method for removal target (6 options)
Member IndexSelectWhen Target=Selected Member, 0-based
Character KeyText or selectWhen Target=Character ID, character.id ({var} supported)
State KeySelectKey from state.json

Target ​

Same 6 options as Add State (Party All / Party Alive / Selected Member / Party Random 1 / Character ID / Party Dead).

State Key ​

Select the state to remove from state.json keys.

  • Examples: POISON, SLEEP, BUFF_ATK, DEAD, etc.
  • Specifying ESCAPE is not removed (always ignored by design)

Runtime Behavior ​

When this event content is executed, the following processing occurs:

1. Input validation ​

  • Empty state_key -> silent next_line
  • state_key undefined in state.json -> *** WARNING : Add/Remove State unknown state_key + silent next_line

2. Resolution of target character ​

Resolves the unique array of target characters based on Target (same logic as Add State).

3. State removal for each target character ​

For each target, calls Global.add_character_state(unique, state_key, false).

4. Built-in behavior for reserved states ​

ESCAPE state ​

Always ignored for removal. Return value is also false (nothing happens).

DEAD state removal (revival logic, added 2026-09-10) ​

HP.MAX ValueBehavior
0 or lessRevival failure (DEAD maintained, return value false)
1 or moreRemoval success -> if current HP is 0 or less, automatically corrected to 1 (revival, guarantees minimum HP=1)

When HP is 1 or more at revival time

If DEAD is removed while HP's current value is already 1 or more, HP remains at that value (not corrected). By recovering HP with Change Parameter first and then using this event content, you can achieve "full HP recovery + revival".

5. Proceeds to next event content ​

After processing all targets, proceeds to the next event content.

Typical Usage Flows ​

Flow 1: Remove poison from all ​

Church poison treatment:

  1. Show Text <- "Let's remove the poison"
  2. Remove State (this event content)
    • Target: Party All
    • State: POISON

Flow 2: Revive all dead members ​

Church revival:

  1. Show Text <- "Let's revive the companions"
  2. Remove State (this event content)
    • Target: Party Dead
    • State: DEAD

(All revive with HP=1)

Flow 3: Revival + full HP recovery ​

Recover HP to max then revive:

  1. Remove State (this event content) (DEAD, Party Dead) <- Revive at HP=1
  2. Change Parameter
    • Target: Party Alive
    • Parameter: HP
    • Operator: Set
    • Value: USER.HP.MAX

Or almost the same result in reverse order:

  1. Change Parameter (HP, Set, USER.HP.MAX, Party All) <- Stops at HP 0 during DEAD (not restored to max while DEAD even when added)
  2. Remove State (this event content) (DEAD, Party Dead) <- Revive at HP=1

Reliable method for revival + full recovery

If you want to avoid HP staying at 1 after revival, the following flow with Change Parameter is reliable:

  1. Remove State (this event content) (DEAD, Party Dead)
  2. Change Parameter (HP, Set, USER.HP.MAX, Party All) <- HP recovery treated as alive after revival

Flow 4: Waking from sleep ​

Pre-battle sleep removal:

  1. Show Text <- "The loud noise woke them up!"
  2. Remove State (this event content)
    • Target: Party All
    • State: SLEEP

Flow 5: Buff removal for a specific character ​

Remove hero's buff:

  1. Remove State (this event content)
    • Target: Character ID
    • Character Key: HERO
    • State: BUFF_ATK

Flow 6: Random 1 member state removal ​

A lottery event that removes a bad state from 1 person:

  1. Remove State (this event content)
    • Target: Party Random 1
    • State: POISON

Flow 7: Batch removal of multiple states ​

Consecutive removal of multiple states:

  1. Remove State (this event content) (POISON, Party All)
  2. Remove State (this event content) (SLEEP, Party All)
  3. Remove State (this event content) (PARALYZE, Party All)
  4. Remove State (this event content) (CONFUSE, Party All)

Batch removal of all states is not currently possible

There is no feature in this event content such as "batch remove all bad states". You need to place this event content for each state to remove.

Flow 8: Dynamic target specification via variable ​

  1. Assign Variable (save character.id to cure_target)
  2. Remove State (this event content)
    • Target: Character ID
    • Character Key: {cure_target}
    • State: POISON

Typical Combinations ​

For the overall picture, see Combination Patterns.

Church (full recovery + revival) ​

Standard healing location:

  1. Remove State (this event content) (DEAD, Party Dead) <- Revival
  2. Remove State (this event content) (POISON, Party All) <- Poison removal
  3. Remove State (this event content) (SLEEP, Party All) <- Sleep removal
  4. Change Parameter (HP, Set, USER.HP.MAX, Party Alive) <- HP recovery
  5. Change Parameter (MP, Set, USER.MP.MAX, Party Alive) <- MP recovery

Forced revival in events ​

Revive a dead companion in the story:

  1. Show Text <- "{character_name} woke up!"
  2. Remove State (this event content) (DEAD, Character ID: ALLY_B)
  3. Change Parameter (HP, Set, USER.HP.MAX, Character ID: ALLY_B)

Debuff removal item ​

Batch clear debuffs:

  1. Remove State (this event content) (DEBUFF_ATK, specify Target)
  2. Remove State (this event content) (DEBUFF_DEF, specify Target)
Related Event ContentUse
Add StateCounterpart to this event content (granting)
Change ParameterCombined with HP recovery after revival
Conditional BranchConditional state removal
Assign VariableDynamic target specification
PageRelated Content
State Tab (Editor)Definition of state.json
System Tab (Editor)DEAD behavior settings such as dead_clear_other_states
Event Content ListList of all event contents

Notes ​

Symmetric structure to Add State ​

Properties are completely identical to Add State; the only difference is "grant" vs "remove". The behavior of 6 Target options is also the same.

HP=1 auto-correction on DEAD removal ​

When DEAD is removed, HP is automatically corrected to 1 if it is 0 or less. If HP is already 1 or more, it stays as is. If you want full recovery, use a combination with Change Parameter.

Characters with HP.MAX<=0 fail revival ​

Characters whose maximum HP is 0 or less do not revive even if DEAD is removed by this event content (DEAD maintained). This is a safety mechanism to prevent unintended states (abnormal max value).

ESCAPE removal is always ignored ​

Attempting to remove the ESCAPE state (enemy battle escape) is always ignored. Design is non-revivable.

unknown state_key is silent + WARNING ​

Specifying a non-existent state key outputs a warning log and proceeds to the next event content without doing anything. The game does not stop.

Silent even if target does not have the state ​

Even if the target character does not have the specified state in this event content, no particular error occurs (just proceeds to next without doing anything).

Batch removal of all states is not possible ​

There is no feature in this event content such as "batch remove all bad states". You need to place this event content for each state to remove (possibly planned for future expansion).

Individual processing for multiple targets ​

With Target=Party All etc. and multiple targets, state removal processing is performed independently for each character. The removal result for one person does not affect the processing for another character.

Revival with Party Dead ​

Specifying Target=Party Dead processes only dead members. It is the standard usage in revival events.