The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Battle Battle Script Executor

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old May 27th, 2018 (5:18 AM).
Lance Koijer 2.0 Lance Koijer 2.0 is offline
Lance Koijer
 
Join Date: Apr 2018
Location: Criscanto Town
Gender: Male
Nature: Adamant
Posts: 104
Hello... does anyone know how to make that a battle script is called in an asm.. it has been done in overworld script to make a field item..

I know it may be dumb to asince why you'll call a battle script if that calls an asm that, technically speaking, calls a battle routine?

Well, the reason for doing this is I will be implementing FBI's Battle by turn or something but it requires an ASM to be called...
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old May 27th, 2018 (7:49 AM).
Blah's Avatar
Blah Blah is offline
Free supporter
 
Join Date: Jan 2013
Location: Unknown Island
Gender: Male
Posts: 1,924
Quote:
Originally Posted by Lance Koijer 2.0 View Post
Hello... does anyone know how to make that a battle script is called in an asm.. it has been done in overworld script to make a field item..

I know it may be dumb to asince why you'll call a battle script if that calls an asm that, technically speaking, calls a battle routine?

Well, the reason for doing this is I will be implementing FBI's Battle by turn or something but it requires an ASM to be called...
What are you trying to do specifically, because this doesn't make much sense at all :D
__________________
...
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old May 27th, 2018 (11:01 AM).
Lance Koijer 2.0 Lance Koijer 2.0 is offline
Lance Koijer
 
Join Date: Apr 2018
Location: Criscanto Town
Gender: Male
Nature: Adamant
Posts: 104
Quote:
Originally Posted by FBI View Post
What are you trying to do specifically, because this doesn't make much sense at all :D
Because there are things that the battle script have that I can't do in ASM..
Becaus in the Battle by turn hack, I want to implement something that plays an animation after some checks and I have no idea on how to ASM it... if possible, after some checks in ASM it jumps directly to a battle script.. or perhaps I misunderstood how the Battle by Turn Hack is being used hahaha..

so specifically

I'll insert a routine in the table that makes some checking and if a valid value is found then it executes battle script.
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old May 28th, 2018 (6:22 AM).
Blah's Avatar
Blah Blah is offline
Free supporter
 
Join Date: Jan 2013
Location: Unknown Island
Gender: Male
Posts: 1,924
Quote:
Originally Posted by Lance Koijer 2.0 View Post
Because there are things that the battle script have that I can't do in ASM..
Becaus in the Battle by turn hack, I want to implement something that plays an animation after some checks and I have no idea on how to ASM it... if possible, after some checks in ASM it jumps directly to a battle script.. or perhaps I misunderstood how the Battle by Turn Hack is being used hahaha..

so specifically

I'll insert a routine in the table that makes some checking and if a valid value is found then it executes battle script.
It runs some ASM when the turn counter for a turn of battle is incremented. It won't do for playing an animation in the overworld. The battle engine animations require setup anyways.
__________________
...
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old May 28th, 2018 (7:38 AM). Edited May 28th, 2018 by Lance Koijer 2.0.
Lance Koijer 2.0 Lance Koijer 2.0 is offline
Lance Koijer
 
Join Date: Apr 2018
Location: Criscanto Town
Gender: Male
Nature: Adamant
Posts: 104
Quote:
Originally Posted by FBI View Post
It runs some ASM when the turn counter for a turn of battle is incremented. It won't do for playing an animation in the overworld. The battle engine animations require setup anyways.
No. I don't mean overworld.. I mean the battle scene..

there are things in Battle Script that I don't know how to translate in ASM like attackcanceler, graphicalhpupdate, playanimation, orword, damagecalc and etc... if there's a battle script executor, it would be easy to make some battle hacks using the battle by turn especially to those who are not so adept in ASMing
Reply With Quote
  #6   Link to this post, but load the entire thread.  
Old May 29th, 2018 (8:37 AM).
Blah's Avatar
Blah Blah is offline
Free supporter
 
Join Date: Jan 2013
Location: Unknown Island
Gender: Male
Posts: 1,924
Quote:
Originally Posted by Lance Koijer 2.0 View Post
No. I don't mean overworld.. I mean the battle scene..

there are things in Battle Script that I don't know how to translate in ASM like attackcanceler, graphicalhpupdate, playanimation, orword, damagecalc and etc... if there's a battle script executor, it would be easy to make some battle hacks using the battle by turn especially to those who are not so adept in ASMing
Oh I see, unfortunately it's not designed to execute battle scripts. What you could do is investigate and see if you can push your custom BS into the script stack and add in your custom commands during this time. I haven't really bothered to work in detail on the base battle engine because it's design is fundamentally flawed. I'm sure the battle script executor has a stack, and can handle this though. A short investigation is required.
__________________
...
Reply With Quote
  #7   Link to this post, but load the entire thread.  
Old May 29th, 2018 (9:08 AM).
Lance Koijer 2.0 Lance Koijer 2.0 is offline
Lance Koijer
 
Join Date: Apr 2018
Location: Criscanto Town
Gender: Male
Nature: Adamant
Posts: 104
Quote:
Originally Posted by FBI View Post
Oh I see, unfortunately it's not designed to execute battle scripts. What you could do is investigate and see if you can push your custom BS into the script stack and add in your custom commands during this time. I haven't really bothered to work in detail on the base battle engine because it's design is fundamentally flawed. I'm sure the battle script executor has a stack, and can handle this though. A short investigation is required.
One thing I just want to make sure, though battle script executor is not possible at the moment, the battle by turn hack's routines run before the attack, after the attack, before the enemy's attack and after the enemy's attack... is that right?
Reply With Quote
  #8   Link to this post, but load the entire thread.  
Old May 29th, 2018 (8:23 PM).
Blah's Avatar
Blah Blah is offline
Free supporter
 
Join Date: Jan 2013
Location: Unknown Island
Gender: Male
Posts: 1,924
Quote:
Originally Posted by Lance Koijer 2.0 View Post
One thing I just want to make sure, though battle script executor is not possible at the moment, the battle by turn hack's routines run before the attack, after the attack, before the enemy's attack and after the enemy's attack... is that right?
I don't remember. Whatever documentation is in the post is probably accurate.
__________________
...
Reply With Quote
  #9   Link to this post, but load the entire thread.  
Old May 29th, 2018 (8:50 PM).
Lance Koijer 2.0 Lance Koijer 2.0 is offline
Lance Koijer
 
Join Date: Apr 2018
Location: Criscanto Town
Gender: Male
Nature: Adamant
Posts: 104
Quote:
Originally Posted by FBI View Post
I don't remember. Whatever documentation is in the post is probably accurate.
okay.. thanks for the response
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 9:13 AM.