Jessrond

Villager
Member
Joined
Mar 14, 2012
Messages
12
Reaction score
1
First Language
English
Primarily Uses
RMVXA
Is there a way to block the player from saving when they are on the boat/airship/ship?

I want my game to be like the FF series where you can save on the world map and selected save points/crystals but not when you are on the transports.

I've looked around a bit and can't find any information regarding this
 

cotodigital

Veteran
Veteran
Joined
Nov 20, 2013
Messages
40
Reaction score
28
First Language
Spanish
Primarily Uses
RMMV
Without scripting you can do it with a parallel run event. It's a dirty workaround though.

Do one of these for every vehicle.1.png

Just tried on my game and it works.
Tried a little bit and it's not very memory intensive so it's probably a safe workaround.
If it's a world map you can just have 3 events like these running for all types of vehicles and you'll be good.

Cheers
 

Jessrond

Villager
Member
Joined
Mar 14, 2012
Messages
12
Reaction score
1
First Language
English
Primarily Uses
RMVXA
Do I need one of these events for every entry/exit point on my world map (like towns and caves)? Or just one event for each transport type... where do I put it on the world map if I only need one?
 

Jessrond

Villager
Member
Joined
Mar 14, 2012
Messages
12
Reaction score
1
First Language
English
Primarily Uses
RMVXA
Figured it out, I just placed one on the world map for Boat and now you can't save on the boat. Thank you for your help! :)
 

cotodigital

Veteran
Veteran
Joined
Nov 20, 2013
Messages
40
Reaction score
28
First Language
Spanish
Primarily Uses
RMMV
You're welcome brother, I just saw you asked for VX and I showed you a screenshot and tried it on MV, but still happy to know it worked.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,746
Reaction score
15,885
First Language
English
Primarily Uses
RMMV
I don't have MV on this computer, so can't check. But if there's a "Is vehicle (none) driven" you could do it that way - if no vehicle, enable save access, else disable save access.

Otherwise you'd have to do it as a nested condition:
Code:
If Vehicle (airship) is driven
  Disable save access
Else
  If Vehicle (ship) is driven
    Disable save access
  Else
    If Vehicle (boat) is driven
      Disable save access
    Else
      Enable save access
    End
  End
End

And make sure you put a Wait at the very start. This isn't something you need to check 60 times per second. Doing this with no wait could cause lag, depending on what other events are doing. You could do a Wait 60 frames and check just once per second. It's very unlikely that someone will try to save within a second of entering/exiting a vehicle.
 

Latest Threads

Latest Posts

Latest Profile Posts

Why the heck do I keep comparing my games to ones made by huge companies? I'd love them to have that level of polish but I'm simply not good enough.
Hell of a day at the London Games Market! :D

1656892272017.png

Check out my haul!

Forum statistics

Threads
123,297
Messages
1,155,602
Members
161,713
Latest member
randymacalaster
Top