FloatPilot User Guide

Battle Settings

FloatPilot Battle AI Setup Guide

This guide explains how to set up battle rules for your character and pet. You do not need to write code. Just answer three questions:

  1. What should it do? For example, use a basic attack, defend, heal, or use a skill.
  2. Who should it act on? For example, the current character, your pet, or an enemy.
  3. When should it do it? For example, when HP is below 30%, at least 3 enemies are alive, or after round 2.

Character and pet rules are configured separately. A rule created in one tab belongs only to that tab.

Quick start

Remember these three questions

Think of every rule as one sentence:

When “this situation” happens, make “this actor” perform “this action” on “this target.”

For example:

When the character's own HP is below 30%, make the current character defend.

The setup screen breaks this sentence into fields for you.

How rules are checked

Rules are checked from top to bottom:

  1. The system checks the rule at the top.
  2. If every condition passes, it performs that rule.
  3. The next action starts checking from the top again.
  4. If a rule does not pass, the system checks the next rule.
  5. One failed condition is enough to skip a rule.

For this reason, survival rules usually belong above attack rules.

The shortest first setup

  1. Open “Battle Setup.”
  2. Choose “Character Battle Setup” or “Pet Battle Setup.”
  3. Click “Use a quick example.”
  4. Choose a template that matches your need.
  5. Check the order, then click “Apply and save.”
  6. If the other tab should use rules too, configure that tab separately.

Game terms in plain language

Game term Plain-language meaning
Battle AI Rules that let the helper decide and act during battle.
Rule A setting that performs one action when its conditions pass.
Executor The character or pet that is acting. The new UI uses the tab instead of a separate selector.
Target The person, pet, or enemy affected by the action.
HP Health points. Lower HP means the unit is closer to defeat.
SP Energy used by some skills.
Basic attack A normal attack without selecting a skill.
Defend Spend the action defending, usually to reduce incoming damage.
Round One cycle of turns in a battle.
Alive Still able to act and not defeated.
Area skill A skill that can affect multiple targets.
Position The unit's place in the party or enemy formation.

Basic rule fields

Character and pet battle setup

Battle Setup has two tabs:

  • “Character Battle Setup”: creates character rules only.
  • “Pet Battle Setup”: creates pet rules only.

Both tabs use the same fields and controls. The only difference is which side owns the rule, so there is no separate “Executor” dropdown.

“Use a quick example” applies only to the tab you are viewing. Applying “Normal Grinding” on the character tab does not create pet rules automatically. To use it for the pet, switch to the pet tab and apply it there too.

Rule list

The rule list is the order used by the Battle AI:

  • Rules higher in the list have higher priority.
  • A matching earlier rule is normally performed first.
  • Put survival and healing rules above attack rules.
  • You can add, edit, delete, and reorder rules.

If no rule matches, the system uses the “fallback action” at the bottom, such as a basic attack or defend.

Actions

“Action” is what the system actually does after the conditions pass.

Action Plain-language meaning
Basic attack Perform a normal attack.
Use skill Cast the selected skill. The character or pet must know ordinary skills and have enough SP. Capture skill 10008 is available to both characters and pets.
Attempt escape Try to leave the current battle.
Log out and reconnect Log out and reconnect automatically; character rules only.
Log out without reconnecting Log out and stop automatic reconnection; character rules only.
Defend Do not attack; defend this turn.

The pet tab does not show the two logout actions. Its visible action numbering therefore continues with “Defend” after “Attempt escape.”

Choose the action first, then decide who it affects and when it should run. An action with no useful conditions may run too often.

Target setup

Who should it act on?

This asks which group the system should search. It does not yet decide which individual unit wins.

Option Plain-language meaning Example
Current character or pet The unit whose turn it is performs the action. Make the current unit defend.
My character or my active pet Select the character or currently active pet owned by the account. Let the character heal itself, or let the pet heal the character.
Other friendly characters or pets Select friendly units other than the executor. Find the teammate with the lowest HP.
Enemy units Search enemy units only. Find the enemy with the lowest HP.

“The whole battle” is not a target-scope option. To count enemies or defeated friendlies on the field, use a battle-state run condition instead.

Target life state and resurrection skills

“Target life state” is restricted automatically by the action and skill:

  • Basic attacks and normal skills can target living units only.
  • Only a skill whose static-data 030_打法 value is 8 can target a defeated friendly unit.
  • A resurrection skill can target defeated friendlies, never enemies and never the executor.
  • Character rules can use the fight pet, other friendly characters, and other friendly pets; pet rules can use the character, other friendly characters, and other friendly pets.

To create a resurrection rule, choose “Use skill,” select a skill with 030_打法 = 8, and select an allowed friendly scope. The target life state is then fixed to “Defeated units only.”

What must the target be like?

This filters the individual target that will receive the action. All conditions for the same target must pass.

For example, to attack “the enemy with the lowest HP”:

  1. Set “Who should it act on?” to enemies.
  2. Add “alive” under “What must the target be like?”
  3. Add any other needed HP, level, or type conditions.
  4. Under “If several match, which one should it choose?”, choose “lowest current HP.”

Common conditions include alive status, HP percentage, SP percentage, element, seal status, level, NPC/player ID, and position. Click “Add a filter (all must pass)” to add more conditions; every condition is required.

When should this rule run?

This asks whether the battle is currently in a situation where this rule should start. It checks the battle or the selected observation scope before performing the action.

Common examples:

  • Run only after round 2.
  • Use an area skill only when at least 3 enemies are alive.
  • Defend only when your own HP is below 30%.
  • Continue only while a selected character or pet is alive.

The difference is:

  • “What must the target be like?” filters the target that receives the action.
  • “When should this rule run?” decides whether the rule starts at all.

Who should it observe?

When adding a run condition, first choose “Who should it observe?” You can observe the current actor, characters, pets, enemies, or the whole battle.

For example:

  • To check your own HP: observe the current character or pet.
  • To count enemies: observe an enemy group or the whole battle.
  • To check whether a teammate can be healed: observe a character or pet group.

A run condition can use only the life-state filter; no additional unit predicate is required. For example, to start a resurrection rule when a teammate is defeated, observe a friendly character or pet group, choose “Defeated units only,” and use the “Any” aggregate.

If several match, which one should it choose?

This selector starts at 00_ in both the character and pet tabs. It first receives the candidates left by the target scope and filters, then chooses one when several candidates remain.

App option Plain-language meaning
00_Preferred position order Choose the first available target from the position order configured below. Useful when a fixed party position should be preferred.
01_Cover the most living enemies For area skills targeting enemies only, estimate which position can affect the most living enemies. This is an estimate, not a guarantee.
02_Remaining HP (points) Compare current HP; lowest usually means the most injured target.
03_Remaining HP (%) Compare current HP as a percentage of maximum HP.
04_Missing HP (points) Compare how much HP each unit is missing.
05_Remaining SP (points) Compare current SP.
06_Remaining SP (%) Compare current SP as a percentage of maximum SP.
07_Missing SP (points) Compare how much SP each unit is missing.
08_Level Compare the target's level.
09_Level difference from executor Compare the level gap between the target and the current actor.
10_NPC data: maximum HP Compare maximum HP from NPC static data, not current HP.
11_NPC data: maximum SP Compare maximum SP from NPC static data.
12_NPC data: strength STR Compare NPC strength.
13_NPC data: constitution CON Compare NPC constitution.
14_NPC data: intelligence INT Compare NPC intelligence.
15_NPC data: wisdom WIS Compare NPC wisdom.
16_NPC data: agility AGI Compare NPC agility.
17_NPC data: critical rate Compare NPC critical rate.
18_NPC data: bow resistance Compare NPC bow resistance.
19_NPC ID Compare NPC data IDs when available.
20_Position (1–4) Compare the target's position within its formation.
21_In front row Sort by whether the target is in the front row.
22_Number of status effects Compare the number of current status effects.

Except for 00_Preferred position order and 01_Cover the most living enemies, the other options also use the “lowest/highest priority” direction.

Quick examples

Click “Use a quick example” to create common rules:

Template What it creates Suitable for
Normal Grinding Defend below 30% HP; otherwise use a basic attack on the living enemy with the lowest current HP. Character or pet
Basic Attack Use a basic attack on a living enemy. Character or pet
Low HP Defense Defend when your own HP is below a chosen percentage. Character or pet
Healing Find a matching teammate and use a healing skill. Character or pet

Templates apply only to the current tab. You can edit, delete, or reorder the rules after applying one.

Common rules you can copy

1. Normal Grinding

In either the character or pet tab, click “Use a quick example” → “Normal Grinding.”

It creates two rules:

  1. Own HP strictly below 30%: defend.
  2. Otherwise, use a basic attack on the living enemy with the lowest current HP.

This template belongs only to the current tab. To use it for both character and pet, apply it once in each tab.

Note: “below 30%” means less than 30%. Exactly 30% does not match.

2. Defend when your own HP is low

Create a rule with the “Defend” action:

  • “Who should it act on?”: current character or pet.
  • “When should this rule run?”: observe the current actor.
  • Condition: HP percentage is less than 30%.

Place this rule above attack rules.

3. Heal a low-HP teammate

Create a rule using a healing skill:

  • “Who should it act on?”: a character, pet, or teammate group.
  • “What must the target be like?”: alive and below your chosen HP percentage.
  • “If several match, which one should it choose?”: choose the lowest HP percentage first.

Confirm that the actor knows the skill, has enough SP, and that the skill accepts that target type.

4. Revive a defeated friendly unit

Create a resurrection-skill rule:

  • Action: use skill.
  • Skill: a skill whose static-data 030_打法 value is 8.
  • “Who should it act on?”: the fight pet, other friendly characters, or other friendly pets; for a pet rule, choose the character or other friendly units.
  • “Target life state”: confirm “Defeated units only.” The skill policy restricts this value automatically.
  • Do not choose the executor; that resurrection target scope is not offered.

Place the resurrection rule above ordinary attack and healing rules, and confirm that the actor knows the skill and has enough SP.

5. Attack the lowest-HP enemy from round 2

  • Action: basic attack.
  • “Who should it act on?”: enemies.
  • Target condition: alive.
  • Run condition: round is greater than or equal to 2.
  • If several match: choose the lowest current HP.

6. Use an area skill when enough enemies are present

  • Action: use an area skill.
  • “Who should it act on?”: enemies.
  • Target condition: alive.
  • Run condition: at least 3 living enemies are present.
  • If several match: cover the most living enemies.

Suggested rule order

A useful general order is:

  1. Defend when your own HP is too low.
  2. Revive a defeated friendly unit.
  3. Remove a dangerous status when needed.
  4. Heal a low-HP teammate.
  5. Use an area skill when enough enemies are present.
  6. Use a single-target skill or basic attack.
  7. Use the fallback action when no rule matches.

This handles survival first, then special situations, and finally normal attacks.

Save, check, and adjust

Edit and reorder

Check the action, target group, all target conditions, run conditions, and rule order. Survival rules should be above attack rules.

Check this rule first

Before saving, click “Check this rule first” to find missing required fields or incompatible settings. Passing the check means the rule is structurally complete. It does not guarantee that a target, enough SP, or a usable skill exists in the game at that moment.

Apply and save

After checking the rule content and order, click “Apply and save.” Character and pet rules are saved separately, so save the correct tab.

Common questions and troubleshooting

I applied a template, but the pet does not attack

The template applies only to the current tab. Switch to “Pet Battle Setup” and apply it there.

The unit does not defend at exactly 30% HP

The current template says “below 30%,” which means less than 30. Exactly 30% does not match. If you want 30% to defend too, change it to “less than or equal to 30%.”

There are enemies, but the basic attack does not run

Check that the enemy is alive, passes every target condition, and is not blocked by an earlier matching rule. Also confirm that the current actor can perform a basic attack and that no battle state, cooldown, or game restriction prevents it.

A skill rule does not run

Check that the character or pet knows the skill, has enough SP, the target type is accepted, and every run condition passes.

I cannot create a resurrection rule or it has no defeated target

Only a skill with 030_打法 = 8 can target a defeated friendly unit. Confirm that the selected skill is the correct one and that the target scope is an allowed friendly scope. The executor, enemies, and living units are not resurrection targets.

If you only need to check whether a teammate is defeated, put “Defeated units only” in the run condition; no extra unit predicate is required.

The two condition sections look similar

“What must the target be like?” filters which target receives the action. “When should this rule run?” decides whether the whole rule starts. For “heal the teammate with the lowest HP,” put teammate HP under the first section and “enough SP” or “round is greater than 1” under the second.

Several targets match, but the wrong one is chosen

Set “If several match, which one should it choose?” If no selection method is configured, the system uses its default order, which may not be what you expect.

Final checklist

  • I configured the correct character or pet tab.
  • The action in each rule is correct.
  • “Who should it act on?” selects the right candidate group.
  • A resurrection skill uses 030_打法 = 8 and targets a defeated friendly unit, not the executor.
  • I understand that all target conditions must pass.
  • I understand that run conditions control whether the rule starts.
  • Survival and healing rules are above normal attacks.
  • I configured a selection method when several targets can match.
  • I clicked “Check this rule first.”
  • I clicked “Apply and save.”