I was wondering if you could use a note tag or plugin to prevent the use of an item without a specific weapon.
Weapon-Required Item?
RPG Maker MV SupportI'd do indirectly with eventing.
Make two items with exactly the same name and data, only one can be used and the other has no function.
Then exchange those items depending on wether the player has the weapon or not.
The second part might get tricky depending on the ways the player has to get that weapon, or it might need a common event parallel process or a script - that is something I can't guess without more info.
Make two items with exactly the same name and data, only one can be used and the other has no function.
Then exchange those items depending on wether the player has the weapon or not.
The second part might get tricky depending on the ways the player has to get that weapon, or it might need a common event parallel process or a script - that is something I can't guess without more info.
Why exactly are you looking to do this? That would help more. =)
Add something like this on the item notebox
<custom action condition>
if (a.hasWeapon($dataWeapons[ID]) {
result = true;
else {
result = false;
}
</custom action condition>
"ID" is the weapon Id. The code might change based on the exact items and conditions you want.
<custom action condition>
if (a.hasWeapon($dataWeapons[ID]) {
result = true;
else {
result = false;
}
</custom action condition>
"ID" is the weapon Id. The code might change based on the exact items and conditions you want.
I'd like something akin to that of a gun, you'd need ammo to use the weapon.
themrsaturn just have the item set off an event that has a conditional branch i guess I don't know how that would work but there are so many geniuses on here so yah
Inventory items cannot call common events, unfortunately, unless I've overlooked something, so no conditional branches straight out of the item.
Just for my own curiosity, what is meant here by 'inventory item'..? I have 'ordinary' items that call Common Events (by way of 'Effects...). Are there other items that I'm missing or overlooking..?
Original thread: https://forums.rpgmakerweb.com/threads/weapon-required-item.67450/