I'm altering Yanfly's Poaching script to work as a pseudo Steal script (Yanfly's Steal/Snatch plugin doesn't work with the TBS I'm using, but Poaching does).
In short, I'm trying to use an array as an integer for adding items to a global pool:
pool1.push($dataItems[Set1]);
Yanfly's lunatic script works by adding items one by one individually:
pool.push($dataItems[1]);
pool.push($dataItems[2);
pool.push($dataItems[3]);
etc...
I'm worried doing this for every item I want to include will lead to bloat (feel free to correct me if I'm wrong!) so I was hoping I could make it more efficient.
I found a post pertaining to what I'm looking for, but I don't understand what it's doing: https://forums.rpgmakerweb.com/index.php?threads/gaining-items-via-array-instead-of-integers.24092/
I'm not fluent in .js but I can usually use context to understand what to do. Any help is greatly appreciated!
In short, I'm trying to use an array as an integer for adding items to a global pool:
pool1.push($dataItems[Set1]);
Yanfly's lunatic script works by adding items one by one individually:
pool.push($dataItems[1]);
pool.push($dataItems[2);
pool.push($dataItems[3]);
etc...
I'm worried doing this for every item I want to include will lead to bloat (feel free to correct me if I'm wrong!) so I was hoping I could make it more efficient.
I found a post pertaining to what I'm looking for, but I don't understand what it's doing: https://forums.rpgmakerweb.com/index.php?threads/gaining-items-via-array-instead-of-integers.24092/
I'm not fluent in .js but I can usually use context to understand what to do. Any help is greatly appreciated!