Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Battle Actions

Hello. I'd like to expand the battle actions, especially for enemies so that you can script yourself their AI in the script editor. The problem is, I can't find where exactly the script select an action and runs it. I need help! :p

Thanks in advance!
-Dargor
 
Not sure exactly what you're looking for. But are you planning on adding more defs that will run independently, and not through the original command window?

If you're planning on just adding more commands to the battle action window, then you need to find the window in Scene_Battle 1 and 'case @actor_command_window.index' in Scene_Battle 3 for adding new actions.

Well, I don't know exactly what you meant, so if you could get more detailed I could probably help out better.
 
Well there are two of my scripts you can take a look at

Advanced Battle Commands - Bag of Battle Commands
These two scripts add new commands for actors

Advanced Enemy Actions
This script adds more conditions for enemy actions
 
The battle code is all located within Scene_Battle_1 - Scene_Battle_4, Game_Battler_1 - Game_Battler_3, Game_BattleAction, and Game_Enemy. The scripts are divided into sections (see the comments), so you should be able to find what bits do what.

Game_Enemy is where the enemy picks an action to use, and Scene_Battle_4 is where the enemy is told to do it.
 
@FireRaven
No, that's not exactly that. I'm talking about enemies behavior, in the enemy tab of the database. It's too limited and I want to expand its possibilities with a script.

@Trickster
You script SEEMS to be what I'm looking for. :p
Trickster":39o4trqn said:
Script

Sorry but I'm heartless, get the demo.

And guess what, the link isn't working! :p
Could you PM me the script or post it directly here please?
Thanks!
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top