Author Topic: [XP] Easy LvlUp Notifier  (Read 31289 times)

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20013
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
[XP] Easy LvlUp Notifier
« on: January 09, 2008, 11:40:24 PM »
Easy LvlUp Notifier
Authors: Blizzard
Version: 2.2
Type: Battle Report Display
Key Term: Misc Add-on

Introduction

This script will notify you when any character is leveled up after a battle. It will show any stats that were increased and any skills that were learned. The windows are animated, the code is less complex than any other so far and it is most efficient as well as highly optimized and detailed worked out.

This work is licensed under BSD License 2.0:
Quote
Copyright (c) Boris "Blizzard" Mikić
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1.  Redistributions of source code must retain the above copyright notice,
    this list of conditions and the following disclaimer.

2.  Redistributions in binary form must reproduce the above copyright notice,
    this list of conditions and the following disclaimer in the documentation
    and/or other materials provided with the distribution.

3.  Neither the name of the copyright holder nor the names of its contributors
    may be used to endorse or promote products derived from this software
    without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

You may use this script for both non-commercial and commercial products without limitations as long as you fulfill the conditions presented by the above license. The "complete" way to give credit is to include the license somewhere in your product (e.g. in the credits screen), but a "simple" way is also acceptable. The "simple" way to give credit is as follows:
Quote
Easy LvlUp Notifier licensed under BSD License 2.0, Copyright (c) Boris "Blizzard" Mikić

Alternatively, if your font doesn't support diacritic characters, you may use this variant:
Quote
Easy LvlUp Notifier licensed under BSD License 2.0, Copyright (c) Boris "Blizzard" Mikic

In general other similar variants are allowed as long as it is clear who the creator is (e.g. "Easy LvlUp Notifier created by Blizzard" is acceptable). But if possible, prefer to use one of the two variants listed above.

If you fail to give credit and/or claim that this work was created by you, this may result in legal action and/or payment of damages even though this work is free of charge to use normally.


Features

  • shows increased stats and learned skills at level up
  • animated
  • shows EXP gain for each actor (!) only after gaining EXP after a battle
  • more simple and less laggy than other Level Up Notifiers
  • you can set up any sound to be played when a higher level is reached or a new skill is learned (LVLUP_SE and LEARN_SE further below)
  • now MUCH more simple and MUCH shorter than other Level Up Notifiers
  • increbibly compatible: can show increase of any stats after the battle in combination with any script, just put this script below those attribute modifying scripts
  • fully compatible with Tons of Add-ons
v1.2b
  • better window movement
  • higher compatibility
  • fixed a few "eventual" bugs
v1.3b
  • fully compatible with Tons of Add-ons
v1.4b
  • improved coding
  • rewritten conditions using classic syntax to avoid RGSS conditioning bug
v2.0
  • completely overworked and improved
  • now MUCH more simple than other Level Up Notifiers
  • halved the number of lines of code
  • much more compatible: can show increase of any stats after the battle in combination with any script, just put this script below those attribute modifying scripts
v2.1
  • improved coding
  • increased compatibility with CBS-es
v2.1b
  • fixed "stack level too deep" problem
v2.11b
  • fixed crash during escape
v2.2
  • added new license
  • added usage and crediting instructions


Screenshots



Demo

Easy LvlUp Notifier

Script

Just make a new script above main and paste this code into it.
Script Download

Instructions

Inside the script in the first comment.

Compatibility

98% compatible with SDK v1.x. 80% compatible with SDK 2.x. WILL corrupt old savegames. May cause slight problems with following systems and would need therefore slight recalibration:
  • exotic CBS-es
  • exotic skill systems (e.g. Soul Rage System)
  • exotic stat systems (additional stats like Wisdom, Luck etc.)

Credits and Thanks

  • Boris "Blizzard" Mikić

Author's Notes

If you find any bugs, please report them here:
http://forum.chaos-project.com

That's it! N-Joy! =D
« Last Edit: March 23, 2019, 06:27:08 PM by Blizzard »
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.

blazinhandle

  • Guest
Re: Easy LvlUp Notifier
« Reply #1 on: January 18, 2008, 05:30:52 PM »
How would you suggest replacing the Stat name ($data_system.words.STAT) with icons?

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20013
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: Easy LvlUp Notifier
« Reply #2 on: January 18, 2008, 06:32:15 PM »
Make config constants for file names. Then, where it says in the scripts that the text of the stat is drawn, use the RPG::Cache.icon method and the .blt methodto draw the icon instead. You might wanna look into Window_Skill#refresh or Window_Item#refresh to see how it's usually done.
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.

blazinhandle

  • Guest
Re: Easy LvlUp Notifier
« Reply #3 on: January 18, 2008, 09:58:58 PM »
What I currently have:
(click to show/hide)


Here, I tried this (I know it's not right or what you meant) and it gave me bitmap errors, bitmap to string errors, etc.:

(click to show/hide)

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20013
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: Easy LvlUp Notifier
« Reply #4 on: January 18, 2008, 11:02:14 PM »
Try this instead.
(click to show/hide)
Just define the 6 constants somewhere before. :3
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.

blazinhandle

  • Guest
Re: Easy LvlUp Notifier
« Reply #5 on: January 19, 2008, 02:25:18 AM »
Hmmm I modified it like this:
(click to show/hide)

With these ?Constants?
(click to show/hide)

But I got a "disposed window error"

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20013
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: Easy LvlUp Notifier
« Reply #6 on: January 19, 2008, 02:28:14 AM »
No, you draw the stuff too early. I draw it afterwards, I only save the icon filenames that should be drawn afterwards. Use my code, just change the constant names if you want them.
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.

blazinhandle

  • Guest
Re: Easy LvlUp Notifier
« Reply #7 on: January 19, 2008, 06:23:13 AM »
You're the man, B. I messed with it a little and got it to work. Thanks again!

Real Mugen

  • Guest
Re: [XP] Easy LvlUp Notifier
« Reply #8 on: March 14, 2008, 07:47:44 PM »
Exist something like this script....but usefull for BLIZZ ABS?

MikeyUchiha

  • Guest
Re: [XP] Easy LvlUp Notifier
« Reply #9 on: August 18, 2008, 08:09:52 AM »
Is this usable with the Blizz ABS?

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20013
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Easy LvlUp Notifier
« Reply #10 on: August 18, 2008, 11:19:06 AM »
Nope.
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.

MikeyUchiha

  • Guest
Re: [XP] Easy LvlUp Notifier
« Reply #11 on: August 18, 2008, 07:03:56 PM »
Is there a way to make it so that it does?

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20013
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Easy LvlUp Notifier
« Reply #12 on: August 18, 2008, 08:19:55 PM »
I would find windows floating around, while enemies kick my ass, pretty annoying. I'm not making this compatible with Blizz-ABS because there is no point.
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.

MikeyUchiha

  • Guest
Re: [XP] Easy LvlUp Notifier
« Reply #13 on: August 18, 2008, 09:15:37 PM »
Well I was thinking a little quick render of a Level Up picture or text in the upper right hand corner that automatically fades away.

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20013
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Easy LvlUp Notifier
« Reply #14 on: August 18, 2008, 09:23:16 PM »
But then again, you won't even be able to see it right. And it might cover something important during that time. Freezing the game is also not an option as it will interrupt the player at each level up which can get very annoying when having a few party members that level up often. I'd say the game can live without it. Most old-school console RPGs don't have it either. i.e. Secret of Mana. Terranigma did have it, but it was only one actor on the map and it as made in a smart way so the level up blast acts like a powerful attack (which I will not add in Blizz-ABS) to disallow the player getting screwed up.
« Last Edit: August 18, 2008, 09:23:59 PM by Blizzard »
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 Ninjason

  • Trained Member
  • *
  • Posts: 19
  • LV: 0
    • View Profile
Re: [XP] Easy LvlUp Notifier
« Reply #15 on: December 01, 2009, 07:13:38 PM »
Good day to you all, since this is my first post on this forum.

I am currently using the easy lvl up notifier in a series of games i wrote and found it for my newest game, that I only wish to show a new learned skill
and not the stat-change-popup.

Is it possible, that anyone (preferably Blizz, as the author of this script) could cut exactly that part out, or tell me, from which to which line I would have to copy+paste the script into the script-section?

I find myself not to be very well versed in script editing.

Thank you in advance and I'll be waiting for any reply.

(PS I know, the reply-function is telling me to consider opening a new topic for this request, but I don't think this fits into another place than the original script-post...)
there's only one Ninja

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20013
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Easy LvlUp Notifier
« Reply #16 on: December 01, 2009, 08:44:35 PM »
I can post an edited version later.
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 Ninjason

  • Trained Member
  • *
  • Posts: 19
  • LV: 0
    • View Profile
Re: [XP] Easy LvlUp Notifier
« Reply #17 on: December 01, 2009, 09:40:56 PM »
I'd be very much oblidged to you, Blizz.
there's only one Ninja

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20013
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Easy LvlUp Notifier
« Reply #18 on: December 02, 2009, 04:25:05 PM »
Here you go.

(click to show/hide)
« Last Edit: December 04, 2009, 03:08:44 PM by Blizzard »
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 Ninjason

  • Trained Member
  • *
  • Posts: 19
  • LV: 0
    • View Profile
Re: [XP] Easy LvlUp Notifier
« Reply #19 on: December 02, 2009, 05:07:09 PM »
Hmm i inserted the script, but there is no message, whatsoever after a character reaches a skill-learning level...
there's only one Ninja