button the shield

What do I do when I click on the button the shield appears and when I release the button the character unequips the shield? I don't know, help me
Hey! Could you send some screenshots or a recording of what's happening?
It might help clarify what's going on. 🙂
Ei! Você poderia enviar algumas capturas de tela ou uma gravação do que está acontecendo?
Pode ajudar a esclarecer o que está acontecendo.🙂
Hello my friend, Conditional Branching -> The button is pressed every X frame and using a button to track whether the item is equipped or not and thus unequip, I don't even know how to start
Sorry, but I'm still not sure about your question. Are you equipping a shield every frame the player presses a button? Like I said, screenshots can be helpful.
Olá meu amigo, Ramificação Condicional -> O botão é pressionado a cada quadro X e usando um botão para rastrear se o item está equipado ou não e assim desequipar, nem sei como começar

Desculpe, mas ainda não tenho certeza sobre sua pergunta. Você está equipando um escudo em cada quadro em que o jogador pressiona um botão? Como eu disse, as capturas de tela podem ser úteis.
I don't speak Portuguese, but thanks for the screenshot!
What I'm seeing is that you're trying to equip a shield if the party has it? One thing is that the common event is never set to run. Maybe set that up in an event or something.

There's an easier way to force equips, however.
Eventing page 1: Change equipment (Set the actor to have a shield here)
And in the 'Armor' section: Lock Equip (Set this to be the slot where the shield would go)

Hopefully this helps!
@PauloWanderson

you misunderstood several concepts of the engine.

First, the conditional branch "button pressed" only checks if the button was pressed in that specific framne, it does not wait for the player.
as such it needs to be checked inside a parallel process to work at all.

and because of this, button press can not be used that way during battle, because there is no parallel process during battlescreen.

so what you want cannot be done the way you want it done.
And you never describe the effect you want, only how you want something to happen.

So please take two steps back and describe what you want to happen (ingame effect), then we can try to help you a way on how to do that.
@PauloWanderson

you misunderstood several concepts of the engine.

First, the conditional branch "button pressed" only checks if the button was pressed in that specific framne, it does not wait for the player.
as such it needs to be checked inside a parallel process to work at all.

and because of this, button press can not be used that way during battle, because there is no parallel process during battlescreen.

so what you want cannot be done the way you want it done.
And you never describe the effect you want, only how you want something to happen.

So please take two steps back and describe what you want to happen (ingame effect), then we can try to help you a way on how to do that.
Thank you my friend, yes it is an abs system, mog, battle on the map, I wanted the shield to attack and be saved again, only when the player presses a single button
Thank you my friend, yes it is an abs system, mog, battle on the map, I wanted the shield to attack and be saved again, only when the player presses a single button
If you're using ChronoEngine you need to say so in your thread title because it works a lot differently from the base engine. It also already has shield assigned to D on the keyboard.
If you're using ChronoEngine you need to say so in your thread title because it works a lot differently from the base engine. It also already has shield assigned to D on the keyboard.
Hello my friend, yes letter D, my problem is with the core item, the equipment breaks but does not disappear, the only way to disappear is to create an activate shield button, and then deactivate it so that it disappears from the inventory and the user does not can use the shield anymore.
Currently the shield breaks but you can still use it, I just want it to disappear just like the weapons. Help me, I've seen several of your comments as well as the restart about the chrono engine
Hello my friend, yes letter D, my problem is with the core item, the equipment breaks but does not disappear, the only way to disappear is to create an activate shield button, and then deactivate it so that it disappears from the inventory and the user does not can use the shield anymore.
Currently the shield breaks but you can still use it, I just want it to disappear just like the weapons. Help me, I've seen several of your comments as well as the restart about the chrono engine
So you want to make it so if the player blocks an attack while shielding, it breaks the shield and removes it from the player's inventory? That's doable but will require overwriting a section of the ChronoEngine code.
So you want to make it so if the player blocks an attack while shielding, it breaks the shield and removes it from the player's inventory? That's doable but will require overwriting a section of the ChronoEngine code.
So the weapons, everything gets destroyed and disappears with the core item, the shield even disappears from the inventory but you can still use it, well I realized that if you change shields the other broken one disappears, can you tell me how to update the equipment so that the shield no longer used? After all, it is no longer in inventory
So the weapons, everything gets destroyed and disappears with the core item, the shield even disappears from the inventory but you can still use it
That's not right. If the player has no shield equipped, the guard button doesn't do anything.
yes, but the core item does not work unless you set the last option of the plugin to yes, then it works, but the shield only disappears when you leave the map to another map
That's not right. If the player has no shield equipped, the guard button doesn't do anything.
yes, but the core item does not work unless you set the last option of the plugin to yes, then it works, but the shield only disappears when you leave the map to another map
Your English is really unclear. The last option of the plugin is Escape Gauge Y Axis. What do you mean by "the shield disappears", and how are you removing it?
Seu inglês não é muito claro. A última opção do plugin é Escape Gauge Y Axis. O que você quer dizer com "o escudo desaparece" e como você o remove?
Sem título.png
Ok, that is a completely different plugin, Yanfly Item Core. It would have helped if you said in the first post you were using Cross Engine with Yanfly Item Core. You need to unequip the shield from the equip menu
1710186325835.png
Ok, esse é um plugin completamente diferente, Yanfly Item Core. Teria ajudado se você dissesse no primeiro post que estava usando Cross Engine com Yanfly Item Core. Você precisa desequipar o escudo no menu de equipamentos
View attachment 298012

Yes, the more it breaks and disappears, the more you can use it, I wish it would stop being used when it breaks.
Yes, the more it breaks and disappears, the more you can use it, I wish it would stop being used when it breaks.
What is breaking it in the first place? Are you using Yanfly Item Durability? You need to say exactly what plugins you're using so we don't have to guess.
What is breaking it in the first place? Are you using Yanfly Item Durability? You need to say exactly what plugins you're using so we don't have to guess.
Friend, thanks for the ideas, instead of the button, how do you make it so that when you use a weapon after x turns it breaks or disappears?

Original thread: https://forums.rpgmakerweb.com/threads/button-the-shield.166696/