[Clean it up or Close it or Delete it] KItemAlert MV

Delete it.​
not that I can use it, but a nice alert, but while it is "aquired" instead of adquired,
maybe you need something customizable if they use multi-language?

as a side not, rather doing:
AlertSprite.prototype.set_item = function(alert) {
if (alert[1] == 0) return; <== could be better <== if its equal or lower.

but nice could be usefull or something as a "Tooltip or Hint" if using it
smart.
So there was a typo... Anyway, now that's fixed. You shouldn't worry about it.

Err, I don't think any database has any real object at index -1 unless javascript supports searching for objects starting from the very end of the array. Even if that's the case, why would you that there? Plus index 0 has nothing there.
I ment the timer part, sorry 🙂

this part, copy the wrong section

JavaScript:
AlertSprite.prototype.update = function() {
  Sprite.prototype.update.call(this);
  if (this.timer == 0) return;
    ...
    ...
}
my mistake 🙂
Oh this is nifty
Spoiler: remove
Spoiler: ???
if I make like this.. can I have credits on this?
Spoiler: try added connecting config with your parameter
download attachment... I prefer using zip than upload on post
Spoiler: reason
I cant paste the code in post.. since is big.. I prefer zip inside is js. If asked password, type:
todayIsGoodDay
added feature:
before
Code:
* @param width
* @default 180
after
Code:
 * @param width:int
 * @text Width Frame
 * @default 180
 * @type number
before
Code:
KItemAlert.xCoord = 0;
after
Code:
KItemAlert.xCoord = this.getParam("xCoord", 0);//0;
nb: after // is default number.. need to erase but for readable config.. I leave there

Spoiler: testing (img)
001.jpg
the new config (?) better with good information
Spoiler: in game
002.jpg
4JDUfhOe4X.jpg
lCg7vwpsOL.jpg
I'm thingking if you using more detail parameter and added type after the name, your code can be avoid with error!!
actually.. there is 1 thing I need to added on script.. is the try catch

next task
  • using hex for color (background, font etc)
  • label added using config
  • label added using config json
request can you testing this? and fixed the word inside
Spoiler: example I use include warning
the demo remove the sound.. ignore the sound warning/error..
Spoiler: function added there
if you read this.. It mean you curious about 3 function inside.. this is the explaination:

  1. FromHex .
    for coloring.. Dunno how to use it.. I hope to make the code work with color using hex(#000000) not word (black)
  2. parseKey.
    Parsing Key from name inside the config. You can see one of the name were params:int ..
    it mean Params have type as int / number. Other type you can use:
    • number
    • string
    • char
    • css
    • color (still search)
  3. getParam.
    Parsing params from the config and used on the plugins
Nope, I will not include other people's code.

And the alleged bug doesn't exist.

Actually, I'd prefer a moderator to close the thread and delete any posts except for my own. It's my second attempt to get it closed...
Spoiler: remove
... Okay
Spoiler: apa boleh buat
At least.. I have new knowledge about how using config and use it on plugins..
And added type on the config name..
Then convert it when use it
url.jpg

Thx for sharing your code
Remove your code from here. Please @gundambison
not that I can use it, but a nice alert, but while it is "aquired" instead of adquired,
maybe you need something customizable if they use multi-language?
....
actually thats good idea. But ts said no..
PLEASE remove all this derailed nonsense or close the thread or even delete it!
Done.. Already remove
Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/clean-it-up-or-close-it-or-delete-it-kitemalert-mv.154667/