I have a feature that I just thought of, and I don't know if it's in the system already. Is it possible to use the note tag <letbs> </letbs> to assign a character a certain battler set?
There are
sprite_name: string and
sprite_config: string.
sprite_config refers to the Sprite configuration name in the configuration file.
"Angela": [ // <=========== THIS
["idle", "_idle", 1, 0],
["move", "_move", 4, 0],
["cast", "_cast", 1, 0],
["atk", "_atk", 4, 0],
["hit", "_hit", 1, 0],
["dead", "_dead", 1, 0],
["turn_start", "_victory", 5, 0],
["victory", "_victory", 5, 0]
],
And Instead of looking for
[battler's name]_idle the engine will look for
[sprite_name]_idle.
How does TARGET RATE work with the engine, does it work?
It's good you're mentioning that. I'll make it work in the next version when working in the AI, because right now it's totally
ignored. I was planning to add a similar stat for the tackle and dodge system (which will come later) but if there is
already such stat let's use it. I totally forgot it.
(Long post below sorry for the incoming mistakes, my english isn't max level yet)
If a target has a higher Target Rate are enemies limited to melee attacks more likely to approach him?
I ask because I am in the middle of designing skills and it will impact how I go about doing it. Also, if they are drawn to the actor with the highest TARGET RATE, will they choose to pursue them over attacking other more nearby actors?
I only ask because I don't want an "exploit" in the game where someone massively ups their Target Rating and then runs away, luring all the foes, so no one else is attacked. But I do want foes to try to target the foe with the highest Target Rating if they are able.
It's as you wish. AI uses behavioral patterns configured in the configuration file. You'll be able to set how much your enemies are drawn to the actor
with the highest TARGET RATE. Right now here's how selecting a target is done, inside the "
use_offense" pattern:
"if: chance(70)",
"search_target: lowest_enemy, 100%",
"if: !isTargetValid()",
"search_target: closest_enemy, 100%",
"endif",
"else",
"search_target: closest_enemy, 100%",
"endif"
It literally means:
- 70% of the time:
Look for a target with the lowest HP
- If no one is found (maybe the battler with the lowest HP is out of range), look for the nearest one
[*]On the other hand, look for the nearest battler
For those wondering, the 100% parameter with the
search_target command means: "The enemy is allowed to use
100% of it's move points to search a target". This value can be reduced for enemies who don't want to make dangerous moves,
using all their move points and letting none to escape after the attack, ect. Enemies with a "fear" behavioral pattern
should have a low value to approach actors carefully.
Anyway what I wanted to show there is the randomness of the pattern. 70% of the time, the AI wiil look for enemy with the
lowest HP in priority, and on the other hand, it'll just look for the closest one. So you can use the same
randomness to prevent the AI to be always drawn to your actor with the highest TARGET RATE.
I'll explain all of that deeply (each commands too) in the next version once the AI core will be completed.
And I'll also make a video where I create a Boss AI.
The available AI commands will increase gradually over the updates, just like with sequence commands.
By the way, here is how the patterns
ranged_fighter and
melee_fighter are used:
"after_offense": [
"if: pattern('ranged_fighter')",
"move: away_enemies, 100%",
"else",
"if: !isInMeleeWith('defined_target')",
"move: away_enemies, 50%",
"endif",
"endif"
]
The pattern "
after_offense" is used after an assault.
- If the pattern is ranged_fighter
Move away enemies by using 100% of available move points
[*]Otherwise (so it's melee_fighter)
If not in melee with the previously set target
Move away enemies by using 50% of available move points
[*](Otherwise, don't do anything: stay in melee with the target)
You can play with that and for example to make the melee_fighter type AI more agressive,
set
move: toward_target, 100% instead of
away_enemies.
If not in melee with it's target it'll rush toward it after an asault.