Need help with moghunter's Treasurepop plugin

Plugin Used:


Hi, my problem is that the popup shows if I just do a regular 'Change Items' and give the player some items. But since my game needs randomized loots I relied on using Script Calls but this is where I'm having a problem. Whenever I use a script call to give the player my random loots the popups doesn't up but the player still gets the items.

Here is the script call
JavaScript:
let mapid = $gameMap._mapId;
let randomItem = this.getSelfVariableValue(mapid, this.eventId(), 38);
$gameParty.gainItem($dataItems[randomItem], 1);

Again, the player receives the item but the popups don't show up 🙁


Can somebody help me out or is the plugin actually built around relying on 'Change Items' to get triggered?
Plugin Used:


Hi, my problem is that the popup shows if I just do a regular 'Change Items' and give the player some items. But since my game needs randomized loots I relied on using Script Calls but this is where I'm having a problem. Whenever I use a script call to give the player my random loots the popups doesn't up but the player still gets the items.

Here is the script call
JavaScript:
let mapid = $gameMap._mapId;
let randomItem = this.getSelfVariableValue(mapid, this.eventId(), 38);
$gameParty.gainItem($dataItems[randomItem], 1);

Again, the player receives the item but the popups don't show up 🙁


Can somebody help me out or is the plugin actually built around relying on 'Change Items' to get triggered?

This plugin depends on trigger default Change Items command from RPG Maker.
There's a chance to you do this by events or this is inviable?
This plugin depends on trigger default Change Items command from RPG Maker.
There's a chance to you do this by events or this is inviable?

Inviable. I have many items in my random drop list that's why I'm using script calls to the randomizations for me. It's very time consuming to make a conditional statement every time my variable finds a random number then detect that number and give it to the player via 'Change Items' based on that number. I just want my events and scripts to be clean and simple.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-moghunters-treasurepop-plugin.118136/