Title. I want to make a cursed weapon that, when used, gives the user a cursed state for a certain amount of turns. I used to be able to do this with a plugin for MV, but I haven't seen anything like that for MZ. Is there any other way to do it?
How do you make weapons give the user a state?
RPG Maker MZ SupportQuick question. Can the cursed weapon be removed after it is equipped?
Or are you planning on letting the player change equipment in battle?
Or are you planning on letting the player change equipment in battle?
I'd like the player to be able to equip and unequip it whenever they wish outside of battle.
So once they are in battle, they are stuck using it? At least if they use an attack that is based on a weapon?
Yeah, pretty much.
There might be more effective ways to do it, but you can use Visustella (skill&states) to give the weapon a passive state notetag.
Then you can have that state have a condition that:
$gameTroop.turnCount()<=X;
(EDIT: There might be better scripts for counting turns than the one above)
Then you can have that state have a condition that:
$gameTroop.turnCount()<=X;
(EDIT: There might be better scripts for counting turns than the one above)
That did it. Thanks a bunch 🙂
I'm glad @rpgLord69 was able to help. I was experimenting this morning with using Events in the Troops battle processing to do this, but I got stuck at a certain point.
So I am glad a plugin provided an easy answer!
So I am glad a plugin provided an easy answer!
You could do this with a turn 0 troop event.
Conditional Branch -> Actor -> Weapon is your cursed sword
- Change State -> that actor -> a cursed state with a duration of however many turns.
repeat for each actor
Or you can make the troop event more efficient with a Script call:
Code:
$gameParty.aliveMembers().forEach(actor => actor.hasWeapon($dataWeapons[X]) ? actor.addState(Y) : 0)
@ATT_Turan Thanks! I was actually going down that road, but it sounds like the OP only wanted the curse to apply if the actor used the weapon, not just had it equipped. So I got stuck trying to figure out if I could get the last skill used of a specific actor and not necessarily the last actor to act.
I was ok if it was just the cursed state applies if the actor enters combat with the cursed weapon equipped.
It was the only trigger if used that stopped me.
That is assuming the actor has other skills they can use that don’t require a weapon.
I was ok if it was just the cursed state applies if the actor enters combat with the cursed weapon equipped.
It was the only trigger if used that stopped me.
That is assuming the actor has other skills they can use that don’t require a weapon.
I had the same thought from the first post, but the passive state rpgLord provided has the same caveat. So both of these methods work equally. (except of course it's more effort to have an event in every troop in your game)
Original thread: https://forums.rpgmakerweb.com/threads/how-do-you-make-weapons-give-the-user-a-state.155556/