Inhabilitate weapon removal?

leoroura

Veteran
Veteran
Joined
Feb 14, 2017
Messages
32
Reaction score
5
First Language
English
Primarily Uses
RMMV
Hello everyone! It's me again :p
Today i find myself another simple -yet- maybe complicated question?

My character in-game has a certain weapon type he can wear. I want to block the player from unequiping it. Yes, basically, i want the player to have the possibility to switch between weapons, but render him unable to remove them and be bare handed.
Is something like this possible? And then there is the "Remove all equipment" command in the menu, i want that to work, but remove everything BUT the weapon. It's important for the game functionability that a weapon remains equiped at all times.
How to do this? >.<

Thanks in advance!
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,355
Reaction score
7,668
First Language
German
Primarily Uses
RMMV
that is done by the trait "lock equipment".

you should still be able to change the equipment with the correct event commands, the trait completely prevents the player from changing anything in the locked slot.
 

leoroura

Veteran
Veteran
Joined
Feb 14, 2017
Messages
32
Reaction score
5
First Language
English
Primarily Uses
RMMV
That's not gonna work :(
What im looking for is a way to let the player change the weapon from the menu, but unable them to be bare handed...
Is that even possible? Thanks for the answer though! :)
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,355
Reaction score
7,668
First Language
German
Primarily Uses
RMMV
no, removing the "none" option either requires laggy eventing (basically force an equip if a parallel process detects none) or a plugin to modify the equipment change behaviour.
 

leoroura

Veteran
Veteran
Joined
Feb 14, 2017
Messages
32
Reaction score
5
First Language
English
Primarily Uses
RMMV
Alright. I thought about what you said and i ended up adding a paralel event asking a condition on wether the two weapons are equiped and if none are true, then a message pops up saying "Its not wise to go unarmed" and sends you to main menu. So yeah, kinda fixed haha
Thank you ! :)
 

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

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,975
Members
137,563
Latest member
cexojow
Top