Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Reload this Page [Question] Playing Battle Animations In-Battle

Notices
For all updates, view the main page.

Pokémon Essentials All questions and discussion about Pokémon Essentials, the Pokémon game kit for RPG Maker XP, go in here. Also contains links to the latest downloads and the Essentials Wiki.



Reply
 
Thread Tools
  #1    
Old August 1st, 2013 (12:15 PM).
TheRedMage TheRedMage is offline
 
Join Date: Aug 2013
Gender: Male
Posts: 9
I'm very familiar with the whole scripting area, as well as RPGMaker XP, however, since this program (while very awesome) has altered many (if not all, I haven't checked) of the basic scripts, I suppose rather than pour over the code for hours, I'd just ask.

Is there a way to play a battle animation (made via either the standard battle animations in the Database, or the animation editor) while already in a battle?

I know the code to do so for the standard kit and unfortunately, it does not work. Just curious if anyone knows the bit of code, or at least what scripts I can look into to find said information.

Thanks!
Reply With Quote
  #2    
Old August 1st, 2013 (05:46 PM).
Jayje's Avatar
Jayje Jayje is offline
The First Maker
Silver Tier
 
Join Date: May 2005
Location: Mountville, PA
Gender: Male
Nature: Relaxed
Posts: 187
Send a message via AIM to Jayje Send a message via Windows Live Messenger to Jayje Send a message via Yahoo to Jayje
Am I to understand you want to play a certain animation in a battle?
__________________

Pokemon Emerald TEAM CHALLENGE!!
Reply With Quote
  #3    
Old August 1st, 2013 (07:33 PM).
TheRedMage TheRedMage is offline
 
Join Date: Aug 2013
Gender: Male
Posts: 9
Yes, essentially.

Just, while within the battle scripts, when certain events happen, the code to play a battle animation, (targetable if possible on the friendly/opposing Pokemon,) or just playing in the center of the screen, if necessary.

What I'm actually doing- trying to create custom weather effects, and setting the battle animation to play just before it gives the message about it. Kind of a workaround for now, as I don't really care for the bitmaps that are in place, and this would allow me to customize exactly how I wanted to do it, in battle animation format.
Reply With Quote
  #4    
Old August 1st, 2013 (07:55 PM).
Jayje's Avatar
Jayje Jayje is offline
The First Maker
Silver Tier
 
Join Date: May 2005
Location: Mountville, PA
Gender: Male
Nature: Relaxed
Posts: 187
Send a message via AIM to Jayje Send a message via Windows Live Messenger to Jayje Send a message via Yahoo to Jayje
Hmmmm... afraid I couldn't be of much help. not too familiar w/ essentials to help. if it was regular rmxp maybe...
__________________

Pokemon Emerald TEAM CHALLENGE!!
Reply With Quote
  #5    
Old August 1st, 2013 (08:03 PM).
TheRedMage TheRedMage is offline
 
Join Date: Aug 2013
Gender: Male
Posts: 9
Exactly. If it was just the basic RMXP, I wouldn't have an issue.

Just seeing if any of the devs know before I start throwing myself headlong into the scripts.
Reply With Quote
  #6    
Old August 2nd, 2013 (02:46 AM).
Maruno's Avatar
Maruno Maruno is offline
Lead Dev of Pokémon Essentials
Moderator
 
Join Date: Jan 2008
Location: England
Posts: 4,134
Quote originally posted by TheRedMage:
What I'm actually doing- trying to create custom weather effects, and setting the battle animation to play just before it gives the message about it. Kind of a workaround for now, as I don't really care for the bitmaps that are in place, and this would allow me to customize exactly how I wanted to do it, in battle animation format.
When you say "custom weather effects", do you mean you're creating a new kind of weather (e.g. foggy), or do you just want to replace the existing weather animations with your own versions?

If the former, copy one of the existing weather effects, all of which already do what you want. If the latter, just edit the appropriate Common animations using the Editor's Animation Editor - Common animations have "Common:" in their name.
__________________
Reply With Quote
  #7    
Old August 2nd, 2013 (08:50 AM).
TheRedMage TheRedMage is offline
 
Join Date: Aug 2013
Gender: Male
Posts: 9
Both, really. The former itself doesn't appear to be too difficult.

Now, for the said Common animations, how would we call them from within the script itself? Currently the base ones that I've got are: Shiny, Shadow, StatUp, StatDown. If I made one to say, for example, 'Commonandstorm' how would I then call said animation from within the script itself, to play whenever the message about the sandstorm would go off?

I very much appreciate the assistance, Maruno- having a direction to start going it the best first step.
Reply With Quote
  #8    
Old August 3rd, 2013 (05:16 AM).
Maruno's Avatar
Maruno Maruno is offline
Lead Dev of Pokémon Essentials
Moderator
 
Join Date: Jan 2008
Location: England
Posts: 4,134
A very quick look at the existing scripts brings up the following code:

Code:
pbCommonAnimation("Sandstorm",nil,nil)
I'll let you ponder over what that could possibly mean.

Hint: The last two things (both nil here) are the user and target of the animation, but since the "Common:Sandstorm" animation has a position of "Screen" it doesn't have a user/target.
__________________
Reply With Quote
  #9    
Old August 6th, 2013 (05:45 PM).
TheRedMage TheRedMage is offline
 
Join Date: Aug 2013
Gender: Male
Posts: 9
Ah-ha. And that is why I asked.

I'm unfamiliar with these scripts and while I would have found that (eventually) it was easier to merely ask.

Appreciate the assistance, Maruno.
Reply With Quote
Reply
Quick Reply

Sponsored Links
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 UTC -8. The time now is 11:33 PM.