how to do: when player equip special item event is changed?

Patroso

Veteran
Veteran
Joined
Jan 19, 2023
Messages
71
Reaction score
8
First Language
Polish
Primarily Uses
RMMZ
The player receives the coat of the Heroine and in the first option puts it on - then passes through the city gate unscathed. However, if the player does not wear the coat - the enforcers(enemy) attack him. Enforcers have a high level and gear, so winning with them is possible, but not profitable.
 

Aerosys

Veteran
Veteran
Joined
Apr 23, 2019
Messages
936
Reaction score
955
First Language
german
Primarily Uses
RMMZ
I remember the game Knight Blade - Howling of Cerberus had a system like this. It was an RPG Maker XP game, by the way.

So for all the maps where you want to enable this feature, put an invisible Event with "Parallel Process". It would look like this:

Code:
Conditional Branch Hero wears Coat Then
  Switch: Player wears Coat ON
Else
  Switch: Player wears Coat OFF
End Branch

The guard events have 2 pages. On the default page, the guards will chase. On the second Page, put the Switch "Player wears Coat" as a condition. On this page, the guard will stand still.
 

ZombieKidzRule

My Zombie Kids ate your RM project.
Veteran
Joined
Jan 9, 2022
Messages
1,002
Reaction score
1,417
First Language
English
Primarily Uses
RMMZ
If you only have one map that you want this, having the Parallel event as @Aerosys indicated above would be cool. Or maybe a couple of maps.

However, if you wanted this effect on many maps and didn't want to have a Parallel event on every map, you could also consider having the coat as an Item. With an Item, when you use it, you can call a Common Event.

So you could set the Common Event up that when you use the Item, you get text that says the Coat is put on and a Switch is enabled. When you use the Item again, the Common Event would have a check to see if the Switch is on. If so, then the Common Event would ask if you want to remove the Coat. If so, you get text that the coat is removed and the Switch is turned off.

That way you only need the item, a Common Event, and a Switch, but no parallel event.

Of course you wouldn't see the coat as Equipped this way.
 

JohnDoeNews

Mod on Steam (MV/MZ)
Veteran
Joined
Apr 25, 2017
Messages
1,703
Reaction score
1,252
First Language
Dutch
Primarily Uses
RMMV
I would take another approach:

Make an event that is set BELOW character level and triggers on PLAYERS TOUCH.

Put this event on the exact border of where the player may not walk without the coat. (Like the entrance of an area)

In this event, make a conditional branch, checking is the coat is equiped. If not, make the guards attack.

If the border between 2 area's is wider than 1 tile, copy/paste this event on each possible first step of the forbidden area.

Now, this condition will always be triggered the moment the player enters the forbidden area. Not before, and not after. You won't need any extra items, or looping parallel events.
 

Shaz

Keeper of the Nuts
Global Mod
Joined
Mar 2, 2012
Messages
46,040
Reaction score
16,850
First Language
English
Primarily Uses
RMMV

I've moved this thread to MZ Support. Thank you.

 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
8,931
Reaction score
6,747
First Language
English
Primarily Uses
RMMV
To be fair, it's not clear from the OP whether the guards are actually moving on the map, leaving their position to chase the player. It just says attack or won't attack.

So if it's just a matter of the player steps on an event tile at the gate and the guards either start a battle processing or do nothing, there's no need for a common event or parallel event or switch - just put the conditional branch that Aerosys showed directly in there.
Conditional Branch -> Tab 2 -> Armor
 

Patroso

Veteran
Veteran
Joined
Jan 19, 2023
Messages
71
Reaction score
8
First Language
Polish
Primarily Uses
RMMZ
thank you all for your help
 

Latest Threads

Latest Posts

Latest Profile Posts


3d Yandere RPG maker game by labylin
With this map, I tried to emulate a Gameboy Color/Advance style.
Hacknet's a hypocritical game.
It's a game about hacking... that's been made in Net framework and the code was left unobfuscated.
So it's a game about hacking that's vulnerable to hacking.
The irony. :p
My message count stands at 999. I was going to ask if I get anything special for hitting 1,000 but then I looked at the post count of some other people who shall remain nameless. Now I don't feel special anymore. I need to either start posting a lot more or wipe my tears away and just focus on my game. Hopefully my keyboard is waterproof. ;_;

Forum statistics

Threads
131,766
Messages
1,223,169
Members
173,533
Latest member
joeyidc
Top