The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   Battle Battle Script Executor (https://www.pokecommunity.com/showthread.php?t=409299)

Lance Koijer 2.0 May 27th, 2018 5:18 AM

Battle Script Executor
 
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...

Blah May 27th, 2018 7:49 AM

Quote:

Originally Posted by Lance Koijer 2.0 (Post 9881499)
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

Lance Koijer 2.0 May 27th, 2018 11:01 AM

Quote:

Originally Posted by FBI (Post 9881534)
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.

Blah May 28th, 2018 6:22 AM

Quote:

Originally Posted by Lance Koijer 2.0 (Post 9881598)
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.

Lance Koijer 2.0 May 28th, 2018 7:38 AM

Quote:

Originally Posted by FBI (Post 9881864)
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

Blah May 29th, 2018 8:37 AM

Quote:

Originally Posted by Lance Koijer 2.0 (Post 9881894)
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.

Lance Koijer 2.0 May 29th, 2018 9:08 AM

Quote:

Originally Posted by FBI (Post 9882372)
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?

Blah May 29th, 2018 8:23 PM

Quote:

Originally Posted by Lance Koijer 2.0 (Post 9882387)
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.

Lance Koijer 2.0 May 29th, 2018 8:50 PM

Quote:

Originally Posted by FBI (Post 9882634)
I don't remember. Whatever documentation is in the post is probably accurate.

okay.. thanks for the response


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


Like our Facebook Page Follow us on Twitter © 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.