Possible to equip a weapon based on a state?

The A-ster

Villager
Member
Joined
Jun 14, 2017
Messages
23
Reaction score
5
First Language
English
Primarily Uses
RMMV
Before I begin, yes. I know this is the wrong thread to post in. Problem is that I can't quite find a "help me, I'm trying to do really complex stuff and need complex help" thread. Please move it where it should go so that I know where to go next time. Thank you!

Anyway, I'm trying to do some Maker Magic. When you use a skill (say for instance, "Metal Make: Sword") I want it to add a state, which equips a weapon for a bit. After the state ends, I want it to unequip. Tried a parallel common event, but it didn't do anything. Ypu can set the ability to equip a weapon TYPE, but not a specific weapon. I was able to accomplish this with a common event that equipped it after the spell was used, but it didn't make it to where the weapon would unequip. Any help welcome. Thanks!
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
7,867
Reaction score
5,240
First Language
Dutch
Primarily Uses
RMXP

I've moved this thread to MV Support. Please be sure to post your threads in the correct forum next time. Thank you.

 

Aesica

undefined
Veteran
Joined
May 12, 2018
Messages
1,531
Reaction score
1,424
First Language
English
Primarily Uses
RMMV
Yanfly's Buffs & States Core lets you add effects to states that trigger when they expire. Then something like this would probably work:

Code:
<Custom Remove Effect>
user.changeEquipById(1, null);
</Custom Remove Effect>
Or if you want the weapon completely vaporized instead of dropped to the inventory:

Code:
user.forceChangeEquip(0, null);
Note: Both of these assume the weapon is in the first slot. if it's different, you'll need numbers that correspond with the appropriate slot id. (changeEquipById is +1 higher than forceChangEquip for the same slot)
 

The A-ster

Villager
Member
Joined
Jun 14, 2017
Messages
23
Reaction score
5
First Language
English
Primarily Uses
RMMV
@Aesica Thanks! I might give it a try, though an idea was growing on me for being able to sell these items for a little extra Gold if needed by the player. Thanks once more!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,050
Messages
1,018,548
Members
137,835
Latest member
yetisteven
Top