KyoAlert XP

KyoAlert XP
Version 1.2.4

by Kyonides
​


Introduction

It simply displays a small notification alert somewhere on the screen depending upon the configuration of its KAlert module.

Alerts will be added automatically to a special queue just in case there is another one displayed on screen at that moment.

Available via Adding or Removing (Forgetting)
  • Items
  • Weapons
  • Armors
  • Skills
  • Gold
  • Party Members
  • Achievements
To display the custom alerts on screen call:

Ruby:
KyoAlert.achieve(ID)


Terms & Conditions

It's free as in... Just ask me about it.
Include me in your game credits.
Do Not Repost It!
The Script has been updated recently!​

Now it is also possible to change the position of the icon.
And yes, you can find weapons, armors, even gold icons and you will be able to see the alert on screen as well.

kitemalertxp02.jpg
1675122021959.png


I get this error when I use the \n[x] shortcut in the message windows like this:
1675122107633.png
My script doesn't look for any tag or the like so it's weird it'd fail because of it.
Did you add a weapon almost at the same time as you wanted to display that dialogue window on screen?

In my case, this is what I find right in line 91:

Ruby:
bit = RPG::Cache.icon(item.icon_name)

Perhaps you're still using the old version. The latest version is 1.0.2.
My script doesn't look for any tag or the like so it's weird it'd fail because of it.
Did you add a weapon almost at the same time as you wanted to display that dialogue window on screen?

In my case, this is what I find right in line 91:

Ruby:
bit = RPG::Cache.icon(item.icon_name)

Perhaps you're still using the old version. The latest version is 1.0.2.
its 1.0.2. I don't have any add weapon to the event. I removed it to test it (because the weapon was supposed to be added after that dialogue) but it still gives me the error at line 95, and it's only when I use that.

EDIT: I didn't think to check if the error happened on the demo. The error doesn't pop in your demo, so it's probably a script incompatibility, so nevermind!
its 1.0.2. I don't have any add weapon to the event. I removed it to test it (because the weapon was supposed to be added after that dialogue) but it still gives me the error at line 95, and it's only when I use that.

EDIT: I didn't think to check if the error happened on the demo. The error doesn't pop in your demo, so it's probably a script incompatibility, so nevermind!

I would like to know which script is incompatible with mine then.
I would like to know which script is incompatible with mine then.
I have no idea. I deleted all my scripts in my project and error still popped up, so I decided to start a fresh project and it works. In the early development of my project, I edited some default scripts. I didn't think to copy/paste some of the default scripts I changed early prior to changing them, so maybe when I later came back to copy/paste them (then get the unedited version from a blank project), looks like I forgot I changed something somewhere.
Interesting Update​

Now you can watch the notification alert show up when your hero learns or forget a skill at any given point in time! 😀

Side Note:
I guess it probably was something related to custom weapons. Also check if you were supposed to learn a skill.
Interesting Update​

Now you can watch the notification alert show up when your hero learns or forget a skill at any given point in time! 😀

Side Note:
I guess it probably was something related to custom weapons. Also check if you were supposed to learn a skill.
So, the reason I wasn't getting an error on a blank project originally (I end up getting it even on blank projects) is because if I call for the name of a member that doesn't exist in the database, it shows nothing. Didn't know that mattered for this testing but it does.

If you call for the name of a member that exists in the game, whatever you have prior to adding the script will not cause an error, but if you later change it (i.e. \n[3] is deleted and you type in \n[2]) it will pop up the error above.

I don't know what that means but that's consistent amongst multiple blank projects.

EDIT: As I'm typing this, whatever you did to scene_title is causing it to work. I didn't look deep; I just noticed you edited Scene_Title so I copied Scene_Title from a blank project and overwritten yours and it did the same thing. I had \n[2] which showed no error but when I changed it to \n[3] and played again, the error popped up.
Err, and why would my script be involved in that situation at all?
KAlert would only work while you're on the map. Anything that takes place while using a menu or the like isn't affected at all. I even unequipped Aluxes aka Alex all of his weapon and pieces of armor and equipped them again without getting any errors.

The only changes I made to the Scene_Title script were focused on showing the Game Title and its Version. I don't touch the default Window_Message tag replacements. I suspect you're still using a couple of scripts you've modified on your own like Window_Message for instance. That might deserve to be handled in its own help request thread.

And nope, \n[Number] is used to call Game_Actors aka Actors in the DB, it has nothing to do with your party members. I can use \n[3] and watch how somebody mentions Cyrus the ax man out of the blue.
Err, and why would my script be involved in that situation at all?
The only changes I made to the Scene_Title script were focused on showing the Game Title and its Version. I don't touch the default Window_Message tag replacements. I suspect you're still using a couple of scripts you've modified on your own like Window_Message for instance.

And nope, \n[Number] is used to call Game_Actors aka Actors in the DB, it has nothing to do with your party members. I can use \n[3] and watch how somebody mentions Cyrus the ax man out of the blue.
I said I was testing this on a blank project so literally no other script is it in except the defaults and yours. I recommend doing the following in a blank project:

1. Make a blank project (obviously)
2. Make an event that does nothing but shows a text of \n[x] when you interact with it (make sure x is an id of an actual actor)
3. Playtest it.
4. Add the scripts without copy/pasting Scene_Title
5. Playtest it
6. Change the x in \n[x] to the ID of another actor in the database
7. Playtest it

On step 7, you should get an error. I made multiple blank projects and this has been consistent.
Script Improved!​

Version 1.0.5 of KAlert XP now includes a new safety measure plus the possibility to display the alert if a hero joins your team or leaves the party! 😀

@Lord Vectra
What about this new version?
I guess that whenever you call \n[Number] it has to initialize an actor that has never joined your team. This is just part of the default behavior of the RM series.
Script Improved!​

Version 1.0.5 of KItemAlert XP now includes a new safety measure plus the possibility to display the alert if a hero joins your team or leaves the party! 😀

@Lord Vectra
What about this new version?
I guess that whenever you call \n[Number] it has to initialize an actor that has never joined your team. This is just part of the default behavior of the RM series.
It works now! Thank you!

As a suggestion, it would be kind of cool if given multiple items at once that it displays each one in succession, so if given a sword and then a shield (since eventing obviously goes top-to-bottom in order), it would be nice if the sword popped up, and then when it goes away, the shield pops up so it has like an alert queue basically.
Script Improved Once Again!​

Due to @Lord Vectra 's persistence so to say, I have already incorporated the alert queue feature in the script in version 1.1.0, which you can download right away! 😀

kitemalertxp03.jpg
Script Improved Once Again!​

Due to @Lord Vectra 's persistence so to say, I have already incorporated the alert queue feature in the script in version 1.1.0, which you can download right away! 😀

Can you also make the sprite breath fire? Turn the screen red when it's a weapon and blue when it's an armor? Open your browser, show your browser history in-game, give your PC a virus, crash said PC, and charge their bank account $1000 in tacos to be sent to their local police precinct?

😅

Jokes aside, thanks! lol
KyoAlert Can Now Mimic Steam Alerts​

Well, sort of. I would use it mainly for in game jokes. XD

Only available in version 1.2.0!​

Keep in mind that the script is highly configurable.
And yes, it keeps track of them!

Here is the script call:

Ruby:
KyoAlert.achieve(ID)

kitemalertxp04.jpg
Here comes the...

KyoAlert XP: The Kitten Ordeal Minisode!

kyoalertxp05.jpg
I ran the demo up from the folder, but it doesn't look like the achievements menu is working. It shows this error.

VCUMHzy.png
OK, thanks for your report. I confirmed that in the vanilla version of RMXP there's no Sprite#height method. I think it was introduced in RMVX Ace instead, if they ever did it.

Now the demo has been updated to prevent any player or tester or developer getting the same error message ever again!
Is there a way to disable the alerts with a switch? This would be very handy for cutscenes.

Original thread: https://forums.rpgmakerweb.com/threads/kyoalert-xp.154181/