I am currently making my first game using MV and am wanting to have a strange class system, I am attempting to make it so as you use swords an enemy will drop a swordsman shard or when you use a bow it will drop an archer shard and once you have enough you can redeem them for your class, I am unsure how to make it so some items only drop while using a specific weapon.
Problems with item drops
RPG Maker MV SupportThere's probably a more simple way but if you go into troops and set the condition to enemy HP = 0 then you can have it check for the class that the actor is and give them the item. If you need me to go into more detail let me know.
the player is has a nobody class I need it to be tied to the weapon used
You can do the same thing but check if they have a certain weapon equipped instead of the class.
I am unsure how to make it check your weapon...
@thunder2821
I took a screenshot of how you could do it. You can find that here: https://ibb.co/nH0phb
If you're still having trouble let me know and I'll try to explain.
I took a screenshot of how you could do it. You can find that here: https://ibb.co/nH0phb
If you're still having trouble let me know and I'll try to explain.
You need Yanfly Extra Enemy Drops.
And for the example:
1. the enemy is going to drop item id 1, which let's say is a class shard.
2. the weapon id is set to one.
3.the code works only for the party leader. I'm assuming you have 1 person in your party for the entire game, ie you play as Bob who is by himself with no one else in the party with him. The code is different if you want this to work with multiple people, ie if in the party Alice is a swordswoman but Bob and Charlie are not, and the enemy will still drop a class shard because Alice is in the party and is a swordswoman.
This is the notetag that you'll place in any enemy you want to drop a class shard. This makes it where if the party leader is equipped with weapon type 1(which I'm assuming are swords), it'll drop a class shard, if not it won't.
<Conditional Item 1 Drop>
EVAL $gameParty.members()[0].isWtypeEquipped(1) : +100%
</Conditional Item 1 Drop>
Bare bones code:
$gameParty.members()[0].isWtypeEquipped(x)
Where x is the weapon type id.
The weapon type id is found in "Types" Tab under "Weapon Types", the id is the number next to the specific weapon type you want.
Also I'm setting this up as weapon type not weapon id, as unless you only have one weapon per type, I'm assuming you want to get a swordsman shard, when you use swords, not just when you're using the basic swords, ie by having it set to weapon type, using a fire sword, or an ice sword, or a basic sword or the Paldin's Ultra Sword,
will make the item drop, not just using the basic sword.
But if you want it to specific weapon forcing it well use this code instead:
<Conditional Item 1 Drop>
EVAL $gameParty.members()[0].hasWeapon($dataWeapons[1]) : +100%
</Conditional Item 1 Drop>
Where 1 is the weapon id of a basic sword, which is weapon id 1. Thus they must have
weapon id 1, aka the basic sword equip for this to drop. The class shard won't drop if the party leader has the flame sword, or ice sword or Paldin's Ultra Sword equipped, only if the party leader has the basic sword equip.
And for the example:
1. the enemy is going to drop item id 1, which let's say is a class shard.
2. the weapon id is set to one.
3.the code works only for the party leader. I'm assuming you have 1 person in your party for the entire game, ie you play as Bob who is by himself with no one else in the party with him. The code is different if you want this to work with multiple people, ie if in the party Alice is a swordswoman but Bob and Charlie are not, and the enemy will still drop a class shard because Alice is in the party and is a swordswoman.
This is the notetag that you'll place in any enemy you want to drop a class shard. This makes it where if the party leader is equipped with weapon type 1(which I'm assuming are swords), it'll drop a class shard, if not it won't.
<Conditional Item 1 Drop>
EVAL $gameParty.members()[0].isWtypeEquipped(1) : +100%
</Conditional Item 1 Drop>
Bare bones code:
$gameParty.members()[0].isWtypeEquipped(x)
Where x is the weapon type id.
The weapon type id is found in "Types" Tab under "Weapon Types", the id is the number next to the specific weapon type you want.
Also I'm setting this up as weapon type not weapon id, as unless you only have one weapon per type, I'm assuming you want to get a swordsman shard, when you use swords, not just when you're using the basic swords, ie by having it set to weapon type, using a fire sword, or an ice sword, or a basic sword or the Paldin's Ultra Sword,
will make the item drop, not just using the basic sword.
But if you want it to specific weapon forcing it well use this code instead:
<Conditional Item 1 Drop>
EVAL $gameParty.members()[0].hasWeapon($dataWeapons[1]) : +100%
</Conditional Item 1 Drop>
Where 1 is the weapon id of a basic sword, which is weapon id 1. Thus they must have
weapon id 1, aka the basic sword equip for this to drop. The class shard won't drop if the party leader has the flame sword, or ice sword or Paldin's Ultra Sword equipped, only if the party leader has the basic sword equip.
Original thread: https://forums.rpgmakerweb.com/threads/problems-with-item-drops.87005/