Hi everyone! I have an idea for a weapon that the player gets in its corrupted form, and as such i wanted to make it so that when the player attacks with it they have a chance of going into the auto state where they cannot control their actions. Is this possible and if so how would i do so?
Can i make a weapon have a chance of adding a state to the wielder?
RPG Maker MZ SupportVS Battle Core, weapon notetag, something like (replace X with state id that has auto battle trait):
<JS Post-Damage as User>if (this.isPhysical() && Math.random()<0.5){user.addState(X);}</JS Post-Damage as User>Your idea for a corrupted weapon that can potentially take control away from the player is intriguing.
without relying on others plug ins. You can achieve this easily.
First, you'll need to create a new state. Let's call it "Corrupted". In the "Features" section of this state, set the "Auto Battle" option to true. This will make the character automatically perform actions when they're in this state.
Next, create the corrupted weapon. In the "features" section of the weapon, add a new feature: "add state [x]%". replace [x] with the percentage chance you want for the "Corrupted" state to be applied. For example, if you want a 10% chance, you would put "add state 10%".
Now, whenever the player attacks with this weapon, there's a chance they'll enter the "Corrupted" state and lose control of their actions.
without relying on others plug ins. You can achieve this easily.
First, you'll need to create a new state. Let's call it "Corrupted". In the "Features" section of this state, set the "Auto Battle" option to true. This will make the character automatically perform actions when they're in this state.
Next, create the corrupted weapon. In the "features" section of the weapon, add a new feature: "add state [x]%". replace [x] with the percentage chance you want for the "Corrupted" state to be applied. For example, if you want a 10% chance, you would put "add state 10%".
Now, whenever the player attacks with this weapon, there's a chance they'll enter the "Corrupted" state and lose control of their actions.
Thanks guys!
its fine if youre going to say it in passing, but if youre quoting it you should probably use the term thats used in the engine
"add state" is a skill/item effect, not a weapon trait. weapons can have attack states to add states to the target of the user's actions, but those dont do what was mentioned.
Just a reminder that A.I. generated responses can be considered spam and are against forum rules. Its one thing to use A.I. to format a response, but it's another to use it to create the response.
@Alt_Elrond
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.
Original thread: https://forums.rpgmakerweb.com/threads/can-i-make-a-weapon-have-a-chance-of-adding-a-state-to-the-wielder.180239/