Good Morning / Day / Afternoon / Evening everyone.
I have a request for a bit of support regarding a script:
How difficult it would be to code a script that completely blocks Menu access while on any vehicle?
I will appreciate a reply.
I DID try doing it on my own, while this here worked, it also ignored my command via a event to disable the menu when I wanted it to... and that's a bummer!
I really could use some help here. Thank you.
I have a request for a bit of support regarding a script:
How difficult it would be to code a script that completely blocks Menu access while on any vehicle?
I will appreciate a reply.
I DID try doing it on my own, while this here worked, it also ignored my command via a event to disable the menu when I wanted it to... and that's a bummer!
Ruby:
class Game_Player < Game_Character
attr_accessor :vehicle_type
attr_accessor :save_disabled
attr_accessor :menu_disabled
alias r2_save_disabled_on_vehicle update
def update
r2_save_disabled_on_vehicle
if @vehicle_type == :boat
$game_system.save_disabled = false
$game_system.menu_disabled = true
elsif @vehicle_type == :ship
$game_system.save_disabled = false
$game_system.menu_disabled = true
elsif @vehicle_type == :airship
$game_system.save_disabled = false
$game_system.menu_disabled = true
else
$game_system.save_disabled = false
$game_system.menu_disabled = false
end
end
end
I really could use some help here. Thank you.