Script command for remove items and equipments

Discussion in 'JS Plugin Requests' started by Kuronokun, Nov 23, 2015.

  1. Kuronokun

    Kuronokun Villager Member

    Messages:
    21
    Likes Received:
    2
    First Language:
    French
    Hello !

    I'm looking for the command script to remove all the inventory and all the equipment.

    Thanks for the answer !
     
    Last edited by a moderator: Nov 23, 2015
    #1
  2. Milena

    Milena The woman of many questions Veteran

    Messages:
    1,282
    Likes Received:
    106
    Location:
    Ireland
    First Language:
    Irish
    Primarily Uses:
    N/A
    can you provide us more information?
     
    Last edited by a moderator: Nov 23, 2015
    #2
  3. Kuronokun

    Kuronokun Villager Member

    Messages:
    21
    Likes Received:
    2
    First Language:
    French
    I mean a command who remove all the items, armors, weapons that we have in our inventory.

    In vx ace it was : $game_party.unequip_all and $game_party.init_all_items
     
    #3
  4. Milena

    Milena The woman of many questions Veteran

    Messages:
    1,282
    Likes Received:
    106
    Location:
    Ireland
    First Language:
    Irish
    Primarily Uses:
    N/A
    $game_party.init_all_items in MV is:

    $gameParty.initAllItems();while you can use clear equipments for an actor:

    $gameActors.actor(x).clearEquipments();where x is the actor's number.
     
    #4
    Driftwood Gaming likes this.
  5. Kuronokun

    Kuronokun Villager Member

    Messages:
    21
    Likes Received:
    2
    First Language:
    French
    Oh thank you !

    And if i wanna clear equipement for all actors ?
     
    #5
  6. Milena

    Milena The woman of many questions Veteran

    Messages:
    1,282
    Likes Received:
    106
    Location:
    Ireland
    First Language:
    Irish
    Primarily Uses:
    N/A
    Do something like this:

    Code:
    for(var x = 0; x < $gameParty.members().length; x++){    $gameParty.members()[x].clearEquipments();}
     
    #6
  7. Kuronokun

    Kuronokun Villager Member

    Messages:
    21
    Likes Received:
    2
    First Language:
    French
    Thanks a lot ! ^^
     
    #7
  8. ZcheK

    ZcheK ZcheK Veteran

    Messages:
    96
    Likes Received:
    22
    First Language:
    English
    @Milena What about the GAIN all items and skills, for testing purposes?
     
    Last edited: Aug 14, 2017
    #8

Share This Page