Hi again.
One of the characters in my game behaves randomly in battle. He is supposed to cast a random spell each turn, but I can't find a way to limit his actions to magic using the "Auto Battle" Special Flag. He sometimes uses his magic, but mostly just attacks physically.
Nor can I find where to edit the default stuff for all battles (shying away from java script during my demo period - too much to learn in just a few weeks along with the game system itself).
Can I somehow do this without java script, or must I learn that in short order?
Any help would be most appreciated!
Having internet troubles today - hard to get the forum to load. So if I don't reply promptly to any help, that's why 🙁
autobattle uses the regular battle-AI, which is rather simple and only concerns itself with battle dealt.
For that reason, most people switch to a script or plugin if they need better control.
However, you can try the following options (don't know if they're viable in your game:
1) reduce physical damage by reducing ATK or physical damage rate or something like that - if the values for the regular attack are low enough, other skills will be used.
2) give the actor only the magic skills for battle, keep all others as menu only (won't work for attack unless you replace that with a script)
3) block all regular skill use and make a troop event that will force-action the skills of the NPC.
Thanks for the thoughts!
I'll give them a try and post what works best.
I like reducing his atk to zero - that's the simplest, and the system may just fall for it. I forgot about troop events. That sounds like the best answer, but I'll let you know...
<snip>
internet failure resulted in this as a partial copy of my post above
please ignore
Having intermittent success :headshake:
Did you mention a plug-in that may help with this? I looked, but not much luck.
The idea I'm trying for was done in a single script (with auto battle set) on another maker, so I hope I can do it here.
The full story, in case the details help:
The NPC is a is a Frenchman (his character was inspired by the Frenchmen in Monty Python and The Holy Grail and 10 year old stereotypes. I have nothing against the French! (Except for the fact that they are humans - In a world where a Cow is my main character, humans are not popular).
Frenchmen are reputed to be fierce in battle, but this one seems relatively useless. All he appearss to do is just yell random insults at the enemies in Battle. At low levels he just yells insults in battles. Each insult has an animation it plays. There is no damage when he is at lower levels, but as the VFX slowly begin getting more complex, his insults begin to do damage.
He is meant to evolve from annoying to the most powerful character in the game.
Making this work correctly is pretty much a key feature of the game. So you see why I am a bit persistent on this one.
The solution lies entirely in the TRAITS section of your Actor TAB: Add a NEW TRAIT, Go to Skill Tab, Seal Skill: Attack!
If this doesn't work, IMMEDIATELY SEEK MEDICAL ATTENTION.
Oh. Is that work?
I've tried sealing Attack before and end up that NPC does nothing in the turn.
Maybe I should try again.
Yeah you have to give them several attack options before you seal. If you Copy your data and paste it into the new project you will have to double check everything, but you shouldn't lose a whole bunch of work or time by copying your data & required files (custom sounds & graphics).