Change weapon with skill mid-battle

Status
Not open for further replies.

Masterslash2000

Villager
Member
Joined
Aug 7, 2018
Messages
9
Reaction score
0
First Language
Spanish
Primarily Uses
RMMV
So the thing is, I'm trying to make a skill which you can activate to change weapons of a certain actor in the middle of the battle.

Using a call to a common event is NOT working, neither placing a switch in it that leads to a battle event.

Anyone got any ideas?
 

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
2,571
Reaction score
3,774
First Language
English
Primarily Uses
RMMV
Could you post screenshots of your skill with the call to the common event and the common event itself?
 

belatucadrus

Veteran
Veteran
Joined
Mar 6, 2017
Messages
78
Reaction score
13
First Language
french
Primarily Uses
RMMV
The common event works for me.

Just call the common event from the skill effect like this :

1582246821464.png

My common event was only this :

1582246867742.png

And then, using this skill, my warrior went from a spear to sword.
 

Masterslash2000

Villager
Member
Joined
Aug 7, 2018
Messages
9
Reaction score
0
First Language
Spanish
Primarily Uses
RMMV
Ok sorry for the late reply. I have it exactly as belatucadrus pointed out, but somehow does not make it possible.

I debugged the event and it actually DOES go throught it.
 

belatucadrus

Veteran
Veteran
Joined
Mar 6, 2017
Messages
78
Reaction score
13
First Language
french
Primarily Uses
RMMV
Is your character able to wield that weapon ?

In the database you have to configure your weapons, actors and classes, to link each weapon to their respective actors.

For example,you will probably set a mage like this :

1582460852030.png

Mage can equip rods as weapon and capes as armor. Meaning that even via event, you cannot make your mage equip something like an axe or an iron plate.

Then my guess is that either you didn't add the weapon in your actor/class traits, or when you created your weapon, you didn't set a weapon type that is compatible with the actor in question

Let me know is this has helped you
 

Masterslash2000

Villager
Member
Joined
Aug 7, 2018
Messages
9
Reaction score
0
First Language
Spanish
Primarily Uses
RMMV
I am sorry, but it didnt. I checked and yes, the character can equip a dagger and im trying for it to equip a dagger.

Can you pass your plugin list in case its because of a plugin?
 

belatucadrus

Veteran
Veteran
Joined
Mar 6, 2017
Messages
78
Reaction score
13
First Language
french
Primarily Uses
RMMV
I created a fresh and new project for debugging. And it's true that the common event actually doesn't properly change the weapon when using "Change equip" command.

I have so much plugins, I had to test them one by one. The plugin that made possible the weapon switch is Yanfly's Item Core

If you use this plugin, you'll be able to use the "change equip" command during battle. You can configure it so it doesn't affect too much how you manage your items and the item menu screen

EDIT : If you never used one of Yanfly's plugin before, you'll also need the Core Engine plugin
 

Masterslash2000

Villager
Member
Joined
Aug 7, 2018
Messages
9
Reaction score
0
First Language
Spanish
Primarily Uses
RMMV
THANKS! The plugin made it possible. Yet, after equipping it, I put it in the inventory and then I can change it.
 

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
2,571
Reaction score
3,774
First Language
English
Primarily Uses
RMMV
@Masterslash2000 If your issue has been resolved please report your thread so it can be closed. The report button is just beside the edit button at the bottom of your post. Just write "Thread solved".
 

Kes

Global Moderators
Global Mod
Joined
Aug 3, 2012
Messages
21,762
Reaction score
10,984
First Language
English
Primarily Uses
RMVXA

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

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

Latest Posts

Latest Profile Posts

so, ive been gone for too long when i log in and see that everything is where is shouldn't be. XD
Steam killing my eyes.. I forgot why I use it only when I have no other choice
Making a map, my brain went "Look, Mjölnir!" as I plotted out a sacrificial entrance.

Actually, it went, "Look, hammer. Wait, Thor's hammer!"
CG tile rendering, take 3: windows.
which section you guys think looks more accurate to the perspective? left or right?

for reference, this is what it looks like "at street level"
Okay, Animal Crossing is remarkably addictive and exceptionally calming. I've been playing it pretty exclusively... like... 6 hours a day. Been a while since I've been this engrossed.

Forum statistics

Threads
95,402
Messages
928,922
Members
125,622
Latest member
Komalis
Top