Inhabilitate weapon removal?

Discussion in 'RPG Maker MV' started by leoroura, Nov 24, 2018.

  1. leoroura

    leoroura Veteran Veteran

    Messages:
    32
    Likes Received:
    4
    First Language:
    English
    Primarily Uses:
    RMMV
    Hello everyone! It's me again :p
    Today i find myself another simple -yet- maybe complicated question?

    My character in-game has a certain weapon type he can wear. I want to block the player from unequiping it. Yes, basically, i want the player to have the possibility to switch between weapons, but render him unable to remove them and be bare handed.
    Is something like this possible? And then there is the "Remove all equipment" command in the menu, i want that to work, but remove everything BUT the weapon. It's important for the game functionability that a weapon remains equiped at all times.
    How to do this? >.<

    Thanks in advance!
     
    #1
  2. Andar

    Andar Veteran Veteran

    Messages:
    28,123
    Likes Received:
    6,369
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    that is done by the trait "lock equipment".

    you should still be able to change the equipment with the correct event commands, the trait completely prevents the player from changing anything in the locked slot.
     
    #2
  3. leoroura

    leoroura Veteran Veteran

    Messages:
    32
    Likes Received:
    4
    First Language:
    English
    Primarily Uses:
    RMMV
    That's not gonna work :(
    What im looking for is a way to let the player change the weapon from the menu, but unable them to be bare handed...
    Is that even possible? Thanks for the answer though! :)
     
    #3
  4. Andar

    Andar Veteran Veteran

    Messages:
    28,123
    Likes Received:
    6,369
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    no, removing the "none" option either requires laggy eventing (basically force an equip if a parallel process detects none) or a plugin to modify the equipment change behaviour.
     
    #4
    leoroura likes this.
  5. leoroura

    leoroura Veteran Veteran

    Messages:
    32
    Likes Received:
    4
    First Language:
    English
    Primarily Uses:
    RMMV
    Alright. I thought about what you said and i ended up adding a paralel event asking a condition on wether the two weapons are equiped and if none are true, then a message pops up saying "Its not wise to go unarmed" and sends you to main menu. So yeah, kinda fixed haha
    Thank you ! :)
     
    #5

Share This Page