Yanfly Item Durability Lunatic Mode Help

● ARCHIVED · READ-ONLY
Started by Quintus 2 posts View original ↗
  1. I'm attempting to make it so that when a weapon breaks it will drop a certain item, in my case the item ID is 28. The Lunatic Mode section of the help file looks like it has what I need but I'm unfamiliar with JS so I'm not sure what I'm supposed to do with it. The code is
    <Custom Break Effect>
    var newItem = $dataitems[1];
    $gameParty.gainItem(newItem, 1);
    </Custom Break Effect>
    How would I go about editing that to give me the item?
  2. Code:
    <Custom Break Effect>
    var newItem = $dataItems[28];
    $gameParty.gainItem(newItem, 1);
    </Custom Break Effect>