DQ8 Cursed Equipment

Hi ... I have a small request !!! I wanted to create a cursed equipment system to the Dragon Quest 8:

Cursed Equipment is a recurring set of equipment seen throughout the Dragon Quest games. It is comprised of weapons and armors that are powerful, but curse the wearer when equipped. In addition, they can harm the wearer in battle. Once equipped, the only way to remove it is go to a church and pay the priest to use benediction on the person wearing it.

I'm interested to recreate the part where he says that the cursed equipment once equipped, you can not remove unless you pay a guy to church to be able to remove !!!

You can do with plugins or even to events ???
Give the weapon or armour the "lock equip" feature. To harm the wearer in battle, you can event it by making a troop event that checks whether characters have the item equipped and a Change HP command that damages them. In the event for the priest, use a Change Equipment command to take the cursed item off of them.
Or to harm, you could just make a regeneration state with a negative value and add it to the weapon (using some of yanfly's plugins... I think its Item core...)
Give the weapon or armour the "lock equip" feature. To harm the wearer in battle, you can event it by making a troop event that checks whether characters have the item equipped and a Change HP command that damages them. In the event for the priest, use a Change Equipment command to take the cursed item off of them.


Believe me ... I tried ... but you create me problems !!! we say that removing 5 articles ... for 4 actors ... is a big mess !!!
if you have ideas ... you can make screenshots or even practical examples ???
Well you could run a forEach loop on the actors and equip slots using a script call, which would make things a lot quicker.
I see ... and you ... you'd be able ???
Yep! Put this in the priest event:

Code:
$gameParty.members().forEach(function(member) {
  for (var i = 0; i < member.equips().length; i++) {
    var equip = member.equips()[i];
    if (equip && equip.meta.cursed) {
      member.changeEquip(i, null);
    }
  }
});

Add the notetag <cursed> to any weapon or armour you want to be cursed; you'll still have to add the "lock equip" trait to it.
Yep! Put this in the priest event:

Code:
$gameParty.members().forEach(function(member) {
  for (var i = 0; i < member.equips().length; i++) {
    var equip = member.equips()[i];
    if (equip && equip.meta.cursed) {
      member.changeEquip(i, null);
    }
  }
});

Add the notetag <cursed> to any weapon or armour you want to be cursed; you'll still have to add the "lock equip" trait to it.



I thank you!!! 🤣... em ... if you is not too much trouble ...
you can create a sample event page through maybe screenshot of how it should be set inside the priest ??? ☺️
priest.png


Wooooooow !!! 🤣🤣🤣Thanks thanks thanks...!!! 🤣🤣🤣Wonderful!!! 🤣🤣🤣
It works great !!! 🤣🤣🤣 Thank you so much !!!🤣🤣🤣
Happy to be of assistance!

Original thread: https://forums.rpgmakerweb.com/threads/dq8-cursed-equipment.75424/