RMMV Yanfly Item Durability: lowering durability outside of battle?

fladdles

Regular
Regular
Joined
Jul 20, 2017
Messages
34
Reaction score
8
First Language
english
Primarily Uses
RMMV
Is there a way to run the Note Tag commands outside of notetags? I want an event on the map to damage a random one of the player's armor every time they run over it but only can find this:

<Target Random Armor Durability: -x>

This is for items and skills, and thus only effects battles, but if someone knew of a way to run a similar command as a plugin command or script call I would be super grateful!
 

caethyril

^_^
Global Mod
Joined
Feb 21, 2018
Messages
5,041
Reaction score
4,393
First Language
EN
Primarily Uses
RMMZ
After looking at the code of my copy of the plugin, I think this may work in a Script command:

$gameParty.members()[0].damageRandomArmorDurability(-123)
I.e. "-123 to the durability of a random armor equipped by the party leader (index 0)". You can replace the numbers as appropriate~
 

Latest Threads

Latest Posts

Latest Profile Posts

I’m so lucky! Simone got referred to a feline cardiologist and had I not called this morning the moment there was a cancellation the next opening would have been SEVEN months from now! The other heart hospital would have been on the other side of Michigan. Who knew that animal specialty appointments were also terrible to get!?
Scalemail project is one step closer to completion. Ordered scales from a local metalworking company, ordered some split rings... now all I need is to wait. :>
And pray that the split rings will be flexible enough to handle that.
A spooky banner and a spooky pfp for a spooky season.
Spooky-Season.png
Broke: Actually making the stuff you need to make before the game can progress.
Woke: Wasting time instead by making a sidequest where you can recruit an imaginary friend to the party.
1696264391516.png
Day 1 I don't know where to start... I enjoy designing icons and brainstorming the abilities my video game will have

Forum statistics

Threads
134,993
Messages
1,252,690
Members
177,900
Latest member
LinkIncGames
Top