Author Topic: [XP] Alternative Battle Results Window  (Read 4043 times)

Offline ArcaneAlchemy

  • Awakened Visionist
  • **
  • Posts: 97
  • LV: 6
  • Gender: Male
    • View Profile
[XP] Alternative Battle Results Window
« on: March 18, 2014, 02:17:30 PM »
Animated Battle Result Window
Authors: Arcane Alchemy, Atoa(for exp graphic and exp bar script)
Version: 0.9
Type: Animated Battle Results
Key Term: Battle Add-on

Introduction

WHAT IS IT? Well, it's pretty basic, but it animates the gaining of experience in an additional window that takes the place of the old Battle_Results window. Anyway, here's a youtube video for a look at it.
[youtube]
http://www.youtube.com/watch?v=9K6WKijEWEg
[/youtube]

Features

  • Better Battle Result Window
  • Animated Results
  • With Sounds
  • Conditional Items Gained Status w/Icons

Screenshots

No Screenshots. See Youtube link.

Demo

No Demo Available

Script

(click to show/hide)

Instructions

Step 1. Just paste this script above main, below built-in scripts, and below other custom scripts that alter the battle_result window.

Step 2. Save the image below as EXP_Meter.png.
Place the EXP_Meter picture in the /Graphics/Windowskins folder.



If using ATOA HP/SP Bars script, make sure and set the USING_ATOA_HP_SP_BARS = true.
That's about all there is to configure for now. Also, if using face graphics in place of the characters, you can overwrite the draw_actor_graphic(actor, x - 40, y + 80) with a "draw_actor_face(actor, x - 40, y + 80)" method or any other graphic drawing method
that inherits the Window_Base class.

Compatibility

As far as compatibility, this script should be compatible with most scripts. If there are any that alter the appearance if Exp bars, then that could cause an issue.

Credits and Thanks:
Thanks to ATOA for the really cool exp_bar graphic.

  • This script uses ATOA's HP/SP script for the exp bar graphic.

Author's Notes
  • Added a ANIMATE_WITHOUT_BUTTON option for PhoenixFire
« Last Edit: March 22, 2014, 07:38:26 AM by ArcaneAlchemy »
"Wait? Do I look like a waiter?" -Kefka

Offline KK20

  • Master Scripter Fixer
  • Global Moderator
  • Lexima Warrior
  • ****
  • Posts: 2872
  • LV: 364
  • Gender: Male
  • Bringer of Salt
    • View Profile
Re: Alternative Battle Results Window
« Reply #1 on: March 19, 2014, 12:15:40 AM »
It's simple yet still better than the original. Nice :)
And you did this from scratch or from someone else's as a template? If you format your post, it can be databased.



(click to show/hide)
NNID: KK20-CP

Offline WhiteRose

  • Trying to code in Ruby
  • Moderator
  • Lexima Warrior
  • ***
  • Posts: 2341
  • LV: 127
  • Gender: Female
  • <3
    • View Profile
Re: Alternative Battle Results Window
« Reply #2 on: March 19, 2014, 04:55:39 PM »
I really like it! It's almost a little bit like the PSX era Final Fantasy post battle screens.

Offline ArcaneAlchemy

  • Awakened Visionist
  • **
  • Posts: 97
  • LV: 6
  • Gender: Male
    • View Profile
Re: Alternative Battle Results Window
« Reply #3 on: March 20, 2014, 10:21:26 AM »
The only format I followed was(and should be) accredited to Atoa's hp/sp bars script. Other than that, it's all original.
"Wait? Do I look like a waiter?" -Kefka

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19875
  • LV: 641
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: Alternative Battle Results Window
« Reply #4 on: March 20, 2014, 12:15:12 PM »
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline ArcaneAlchemy

  • Awakened Visionist
  • **
  • Posts: 97
  • LV: 6
  • Gender: Male
    • View Profile
Re: Alternative Battle Results Window
« Reply #5 on: March 21, 2014, 04:43:48 AM »
Okay Blizzard, I think it should be formatted correctly now. Let me know if it isn't. Thanks :)
« Last Edit: March 21, 2014, 06:26:49 AM by ArcaneAlchemy »
"Wait? Do I look like a waiter?" -Kefka

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19875
  • LV: 641
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Alternative Battle Results Window
« Reply #6 on: March 21, 2014, 08:45:44 AM »
Moved to the database. :)
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline PhoenixFire

  • Moderator
  • Astral Trancist
  • ***
  • Posts: 917
  • LV: 6
  • Gender: Female
  • ~That's an interesting notion, in it's own way~
    • View Profile
Re: [XP] Alternative Battle Results Window
« Reply #7 on: March 21, 2014, 05:01:10 PM »
Alright, this may sound like a silly question, but how can I modify it to simply start the bar animation without having to press enter first? I skimmed through the script, and I think I found the part that has to do with it:

Code: [Select]
    # If C button was pressed
    if Input.trigger?(Input::C)
      $start_exp_animation = true
    end
    if $start_exp_animation == true

..however, I have no idea how to change that to simply start it. Thoughts, hints, suggestions?
Next off, how to create a first person shooter using microsoft excel.

<Remember when computers had turbo buttons?

Offline StorocnekXx

  • Trained Member
  • *
  • Posts: 24
  • LV: 0
  • Gender: Male
  • düdümm.
    • View Profile
Re: [XP] Alternative Battle Results Window
« Reply #8 on: March 21, 2014, 05:34:36 PM »
I'm not sure, because I'm a noob, but can't you just remove the first line after the comment or even all 4 lines?
If it does not have the if-part in the first case, it's automatically on, isn't it?
But if it is automatically on, you don't need to ask (second if), if it is true, because it is always true.
Am I wrong?
I may have a lot of ideas to use, but I have no idea how to use them.

Offline PhoenixFire

  • Moderator
  • Astral Trancist
  • ***
  • Posts: 917
  • LV: 6
  • Gender: Female
  • ~That's an interesting notion, in it's own way~
    • View Profile
Re: [XP] Alternative Battle Results Window
« Reply #9 on: March 21, 2014, 05:51:57 PM »
Well in theory, yes, completely, and that was my thought as well. I guess the more specific question would be, if I remove it, will I break it? I'm newish to scripting too, so I was curious why that little scrap of script was there, since it looks like there's no real need for it. I think I'll just simply try it and find out what happens..

EDIT: Alright, for those of you that want to follow what I did, I got it to work:

The original:
Code: [Select]
    # If C button was pressed
    if Input.trigger?(Input::C)
      $start_exp_animation = true
    end
    if $start_exp_animation == true

Simply needs two line taken out. The final result should look like this:

Code: [Select]
    # If C button was pressed
      $start_exp_animation = true
    if $start_exp_animation == true

Basically, it just skips the button press check, sets it to true, and 'keeps calm and carries on' with the same method as if it had gotten a button press  =p


Am I wrong?

Turns out yes, we were, though not completely. I tried to take the whole block out, and it worked, but didn't. After displaying the experience gained animation, you could not close the results window. It didn't freeze exactly, but you couldn't do anything..
« Last Edit: March 21, 2014, 06:14:32 PM by PhoenixFire »
Next off, how to create a first person shooter using microsoft excel.

<Remember when computers had turbo buttons?

Offline ArcaneAlchemy

  • Awakened Visionist
  • **
  • Posts: 97
  • LV: 6
  • Gender: Male
    • View Profile
Re: [XP] Alternative Battle Results Window
« Reply #10 on: March 22, 2014, 06:43:47 AM »
Thanks for the db submission Blizzard :)

Okay PheonixFire, here's the script. There will be a setting in the CONFIG section that you can set to true. It's called ANIMATE_WITHOUT_BUTTON. It's at false by default but this one below is already set the way you want it. Just for you!  :D
Happy game making!
(click to show/hide)
« Last Edit: March 22, 2014, 06:59:03 AM by ArcaneAlchemy »
"Wait? Do I look like a waiter?" -Kefka