Hi all, I am having a problem with the script mentioned on the title, it works fine except for the duration value, for example if i set a pop up message like this : popup(2,12,1,120) it works good but the duration parameter (120) doesn't work, no matter to what number i set it to, it never works, the popup will still have the same default duration.
Sleek Item Popup Duration Problem
RGSSx Script SupportLine 102
@duration = duration #60
@duration = duration #60
But if i change that it will be same problem, i need to change in the event call, but it's not working.
Make that change in the script and when you do the script call in the event the duration will be for whatever time you specify.
*EDIT...
Found a better way to do it @sparta212
@duration = duration ? duration : 90
This will take the duration that you set in the event, but if you don't have an event ( gain items or gold) the default will be 90 frames. Or set to what you like.
@Roninator2 Thanks a lot, this worked perfectly <3
Original thread: https://forums.rpgmakerweb.com/threads/sleek-item-popup-duration-problem.104009/