Sleek Item Popup

● ARCHIVED · READ-ONLY
Started by Vlue 20 posts View original ↗
  1. Sleek Item Popup v1.0
    by V.M.


    Introduction
    Quick event script command you ca use to popup the name and icon of an item you obtain in a nicer format then the message window.

    Screenshots

    Spoiler
    Pic_zps4a61c1c4.png
    How to Use
    Plug and play.
    popup(type,item,amount,duration) withing event script boxes
    Details within script

    Script
    Convenient pastebin... here!

    FAQ
    None yet!

    Credit and Thanks
    - By V.M.
    - Free to use in any non-commercial or commercial project

    Author's Notes
    I'm not too fond of tea...
  2. Thank you so much for this awesome script!

    But i do notice a slight lag when the popup happens. And the popop itself doesnt stay up very long when its fully loaded on the screen

    (I change the duration, but it seems its how long it takes to load up )
  3. ReconVirus said:
    Thank you so much for this awesome script!

    But i do notice a slight lag when the popup happens. And the popop itself doesnt stay up very long when its fully loaded on the screen

    (I change the duration, but it seems its how long it takes to load up )
    Hmm, I'm not sure about the lag yet, but as for duration not working as intended, that's different now. Pastebin has been updated
  4. The lag is most likely due to you never disposing of each popup window. In your scene update alias, you never call $popup_window.dispose, thus all the window objects stay in memory. Either change it, or make the window reusable, i.e:

    $popup_window.popup(blah, arg2, bluh)
  5. FenixFyreX said:
    The lag is most likely due to you never disposing of each popup window. In your scene update alias, you never call $popup_window.dispose, thus all the window objects stay in memory. Either change it, or make the window reusable, i.e:

    $popup_window.popup(blah, arg2, bluh)
    Hmm, so you're telling me that setting the variable to nil does not free up all memory objects?
  6. Nope, you need to call #dispose on the window and then set it to nil &/or a new window

    Spoiler
    Code:
    #change this:
    # $popupwindow = nil if $popupwindow.opacity < 0
    #to this:
    if $popupwindow.opacity < 0
    $popupwindow.dispose
    $popupwindow = nil
    end
    -OR-

    Keep the same window and just change its contents per popup.

    Spoiler
    Code:
    #change this:
    # $popupwindow = Item_Popup.new(data,amount,duration,nosound)
    #to this:
    $popupwindow ||= Item_Popup.new
    $popupwindow.pop(data,amount,duration,nosound)
  7. I really like this script so I was attempting to use it but... I'm us'ng Yanfly Menu and I keep getting an error for line 103 when ever I tried to open my menu before grabbing an item. After I get an item and the "item get" popup occurs I'm allowed to open my menu just fine. I'm not so good with scripts but I took out the lines:



    Code:
     def pre_terminate
    	popup_preterminate
    	$popupwindow.visible = false
    end
    These are lines 101-104 and it doesn't give me the error anymore. I have no idea if I screwed something up but I'm just letting you know. It's a very nice script and I would love to use it, but I don't want to go in and change it on you or anything. I'll just wait and see if you fix it, okay? xP
  8. FenixFyreX said:
    Nope, you need to call #dispose on the window and then set it to nil &/or a new window

    Spoiler
    Code:
    #change this:
    # $popupwindow = nil if $popupwindow.opacity < 0
    #to this:
    if $popupwindow.opacity < 0
    $popupwindow.dispose
    $popupwindow = nil
    end
    -OR-

    Keep the same window and just change its contents per popup.

    Spoiler
    Code:
    #change this:
    # $popupwindow = Item_Popup.new(data,amount,duration,nosound)
    #to this:
    $popupwindow ||= Item_Popup.new
    $popupwindow.pop(data,amount,duration,nosound)
    Well, that could add up to quite a leak. Good to know, thanks.

    KyleRiley said:
    I really like this script so I was attempting to use it but... I'm us'ng Yanfly Menu and I keep getting an error for line 103 when ever I tried to open my menu before grabbing an item. After I get an item and the "item get" popup occurs I'm allowed to open my menu just fine. I'm not so good with scripts but I took out the lines:



    Code:
     def pre_terminate
        popup_preterminate
        $popupwindow.visible = false
    end
    These are lines 101-104 and it doesn't give me the error anymore. I have no idea if I screwed something up but I'm just letting you know. It's a very nice script and I would love to use it, but I don't want to go in and change it on you or anything. I'll just wait and see if you fix it, okay? xP
    That would have been a problem just with my script alone. I've updated the pastebin to fix that.
  9. Oh, really? Awesome! I really like this script. :3
  10. your pastebin file isnt working for me.
  11. If it's not copying right, you can just hit download up near the top left to get it in a text file.
  12. my little brother actually had the script so i got it off him.

    How can you make gold popup?
  13. You cheat by making a fake item with the gold icon and name and call the popup manually whenever you add gold, like i used item 40 so the script call would be for when adding 100 gold:

    popup(0,40,100)
  14. My little brother and me figured that out but I was hoping that was not the real it was done but it does work. thanks Vlue!
  15. I'm having an issue when it comes to multiple items: the display overlaps even though I made a wait statement in the event and adjusted the script's timing. Any ideas?

    EDIT:

    Also, can you make an add-on where it can be displayed even when the player is moving? It's kind of boring waiting for all items to display :D
  16. Any ideas... any ideas... Hmm... Ah, oh I know!

    Just updated the script so it queues popups together, so they won't overlap if spammed and yes, if you want, you can move around with them going.

    Report any bugs!
  17. Wow, this update is great! Now, I can just use the Change Items command without calling the script! Thanks! :rock-left: :D :rock-right:
  18. Nicely done! This is a fine script - I love how you accept members advice, and use it to your advantage when updating your scripts.

    I can promise you, it really does make a difference!
  19. Vlue, seriously man, anybody can create an amazing game just by using your scripts. They don't need monsters, actors, nothing but your scripts! Great job, made my stupid game look waaay better now, thanks for that!  :D
  20. I love this script. You really did a good job.