Inhabilitate weapon removal?

leoroura

Veteran
Veteran
Joined
Feb 14, 2017
Messages
32
Reaction score
4
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
30,009
Reaction score
7,019
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
4
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
30,009
Reaction score
7,019
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
4
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 Profile Posts

Yesterday, for my youngest sibling's birthday, we watched one of his favorite movies.
Ponyo is such a beautiful, but certainly strange, movie.
I just have to say that I prefer the majority of Studio Ghibli's works to those of Disney.
*sees work place in incoming call history* .... =www= hisssssSSSSSssss.
Please pop up a storm. Please pop up a storm.
So I tried composing a battle theme for the Linear Motion Battle System that I'm probably going to implement into my game. I really love real time combat, and I think that this theme might help give some energy to battles. Tell me what you think of it in the comments! Also, please do not use my music in your games.
My LMBS battle theme
* Me start speak in voice chat
"Lol, you're actually a girl?!"
(But I'm a guy tho... well, let's just pretend and see how long it will last)
* Years has passed... I have changed.

Forum statistics

Threads
97,805
Messages
947,074
Members
129,015
Latest member
franklem
Top