Yanfly Item Durability Lunatic Mode Help

Discussion in 'Javascript/Plugin Support' started by Quintus, Nov 10, 2018.

  1. Quintus

    Quintus Villager Member

    Messages:
    19
    Likes Received:
    1
    First Language:
    English
    Primarily Uses:
    RMMV
    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?
     
    #1
  2. Isabella Ava

    Isabella Ava Veteran Veteran

    Messages:
    636
    Likes Received:
    751
    First Language:
    English
    Code:
    <Custom Break Effect>
    var newItem = $dataItems[28];
    $gameParty.gainItem(newItem, 1);
    </Custom Break Effect>
     
    #2

Share This Page