(Help) Allow swimming only when key item available

I'm still very new to RPG Maker (I'm using MZ) and I'm trying to figure this software out. I'm really not familiar with variables and I'm having a really hard time understanding how to do this.

I want to allow my protagonist to be able to swim, but only when they have a certain key item. Being unable to get in the water otherwise.

How would I go into doing this?

If there needs to be use of switches or variables, would it be possible to precise how to do it please? I've seen a lot of answers on similar forums where players say we need to have variables for player locations and such, and I have no idea how to do this.

thanks!
Welcome!

Keep working on tutorials, especially in regards to setting up events and using event commands. I suggest you do several tutorial series and use them to make practice games before trying to actually start your project.

I don't see what this would have to do with a variable.

All you have to do is make water tiles that are passable in the tileset settings of your database.

Then put events around the edges, any tile that the player might use to walk into the water.

The default page has Priority: Same as characters, so it blocks their movement.
1718035172846.png


Then you make a second page with the condition of them having your item, and that's Priority: Below characters, so it doesn't block movement.
1718035264535.png


1718035295290.png


There are other ways to implement this using plugins with region restrictions, but this is a method you should be able to figure out using the default event settings.
HELLO! Now you could do all the garbage that he just said.... (and it would probably work) OR you could just get a plugin... and it would look better, I know CGMZ has a really good swimming plugin.....
  • Change Swim Access - allow the player to swim (or disable their ability to swim)
  • Change Swim Dash - enable/disable the player's ability to dash (swim faster) while swimming
  • Change Swim Image - change the actor's swim sprite
  • Attempt Swim - Attempt to start or stop swimming for the player
  • Force Swim - Force the player to start or stop swimming
(These are the features copied from his "Itch.io" page......)
Just in every map, make an event.... click the "parallel" option on the triggers. Set up a conditional branch to where. "If you have a key item, you can swim, (feature from plugin), but if you don't.... then you can't!!! (Restrict swim access as stated in the plugin commands)
You could also link the plugin you're talking about or not call Turan's answer "garbage", but maybe that's just me.
HELLO! Now you could do all the garbage that he just said....
You are getting a universally bad attitude on here.

Nothing I said is garbage, and teaching a new user how to use basic event functionality is much better than throwing a plugin at it. You claimed in another thread just a few days ago how you think people should stop using scripts and plugins because you can do it all with event commands.

There's nothing wrong with you mentioning the existence of this plugin as another way to do it, but there's zero reason for the antagonizing and insulting language when you do so.
Ok... I shouldn't have said that..... I fixed it... I'm actually not sure why I said it like that.... but it's not like I meant to insult you or your advice or anything, I was just saying that some things would look BETTER with a plugin, even though you don't NEED a plugin....
@CoolBeans there are 2 ways to keep in mind as well as plugins can be easier,
which I can agree on, but 2 things you should remember

-> use events if it's only on 1-5 spots or lower then 10!
-> use plugin(s) if it require extensively to use it more than that.

a good evented way don't have any problems using it over and over,
but if it's a complex way to implement that can give trouble later on,
a plugin would be nicer to user.

but ATT_Turan's way is a nice start or region based and item requirement.
but keep it nice as I would go for ATT_Turan user-friendly, beginner way.

start easy and simple 🙂
Just in every map, make an event.... click the "parallel" option on the triggers.
Except maybe this is why you shouldn't skip learning events because this is a bad way handling this and causing unnecessary performance overhead.

Several times now you've come into threads from beginners and your suggestion often equates to "don't learn, just take this short cut".
Never mind the fact there is still a learning curve to using plugins, apologies for the straw man.
The attitude at which you present these solutions is often not great either, and at times insulting.

Let's encourage folks to learn so that we have time to answer threads that need support, instead of answering future support threads generated because someone recommended a solution that 1) bypassed the learning process, 2) is above their skill level.
I was just saying that some things would look BETTER with a plugin
Okay, but that plugin doesn't make anything look better (or different) by itself.

The visual options of splashing into the water and having different swimming graphics are both things you have to draw. And they could be included in the event I showed before, as can gathering and turning off the followers.

Is it a potentially useful tool? And worth mentioning here? Absolutely. But presented to a beginner, the notion of "here's a plugin to do stuff except now you also have to learn how to draw pixel art and format it for your game" is probably overwhelming when they haven't even learned how to use RPG Maker's default tools.

And I'm not going to bother getting into the rest of it. You shouldn't need other people to tell you when what you're saying is impolite.

Original thread: https://forums.rpgmakerweb.com/threads/help-allow-swimming-only-when-key-item-available.169410/