Hi, friends.
I've been working on a system for giving NPCs gifts, but seem to have run into a bit of a wall with MV's script calls. Does anyone know how to have items removed by variable? When using "select item" the item's id is stored in variable #12 and I would like to have a script call automatically remove the item by the id stored in that variable.
Here is what I tried (along with many variations of this):
$gameParty.loseItem($dataItems[$gameVariables[12]], 1);
I feel like I'm missing something simple.
It didn't crash or anything...just didn't work. ;_;
On another note...I may just be calling MV scripts wrong or something? I tried to also have a script call within a conditional branch check variable values between numbers and that didn't seem to work either.
For example:
$gameVariables[12] >= 35 && $gameVariables[12] <= 40;
It's tough to get used to the script calls in a new engine. ;___;