legacy:grid:enemy_ai
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| legacy:grid:enemy_ai [2025/01/13 16:14] – removed - external edit (Unknown date) 127.0.0.1 | legacy:grid:enemy_ai [2025/01/13 16:14] (current) – ↷ Page moved from grid:enemy_ai to legacy:grid:enemy_ai superadmin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Grid: Enemy AI ====== | ||
| + | This section explains how the enemy decide their action. | ||
| + | |||
| + | ===== Prelude ===== | ||
| + | |||
| + | The enemy' | ||
| + | |||
| + | [{{https:// | ||
| + | |||
| + | ===== Default RPG Maker: Enemy action ===== | ||
| + | |||
| + | To make it less complicated, | ||
| + | |||
| + | ==== How action is filtered ==== | ||
| + | |||
| + | Consider you have this list in your enemy action pattern list | ||
| + | |||
| + | [{{https:// | ||
| + | |||
| + | Let's assume that three of those skills are conditionally valid. And by valid, it means: | ||
| + | * The enemy has a sufficient resource (for example, have enough MP to cast the skill) | ||
| + | * It is conditionally valid (turn, HP trigger, MP trigger, switch, etc) | ||
| + | * It has a target to attack (the range reached at least one target or allow to target an empty grid) | ||
| + | |||
| + | With those conditions, let's also assume that turned out these three skills met the criteria above. | ||
| + | |||
| + | [{{https:// | ||
| + | |||
| + | Respectively, | ||
| + | |||
| + | Now we only have two actions from the list. Both have rating 4 and rating 5 respectively. How the system decides to pick one of those actions is by using a [[https:// | ||
| + | |||
| + | In short, the chance of each action is taken is formulated in this formula | ||
| + | Chance = Individual Rating / Total Rating | ||
| + | |||
| + | As you can see since we only have two valid actions. it makes that the total rating = 9. That makes each of the actions has '' | ||
| + | |||
| + | ==== How target is picked ==== | ||
| + | |||
| + | This page is under construction | ||
