I'm using Khas' Arc Engine (physics engine), but I only want it on some maps. Is there a way to disable a script on certain maps? I don't see a way in the script itself.
Disable Script on Certain Maps?
RGSSx Script SupportIf the script has no switch to disable it, then it can't be disabled.
If you link us to the script, we might be able to look into it for you...
I've moved this thread to Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
If you link us to the script, we might be able to look into it for you...
I've moved this thread to Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
Sorry, didn't realize there was a specific place for script support. http://arcthunder.blogspot.com/p/rpg-maker.html It's the arc engine one, not the physics engine one, that one is for regular VX.
Can I add a line to the script or something to disable it? I'm not well-versed in Ruby, so I have no idea what or where I'd have to put it.
Can I add a line to the script or something to disable it? I'm not well-versed in Ruby, so I have no idea what or where I'd have to put it.
The real question is :
WHAT do you want to disable?
Every experienced scripter can help you, but you just need to say what is the thing you want to disable.
WHAT do you want to disable?
Every experienced scripter can help you, but you just need to say what is the thing you want to disable.
I want to disable the physics. Gravity, jumping, that stuff, which is basically the whole script.
Code:
module KHAS
module ARC
MY_MAPS = [3]
end
end
class Game_Map
include KHAS::ARC
def setup(mid)
@arc = false
$map_data.each_value {|core| core.unload}
if $map_data.keys.include?(mid) && !MY_MAPS.include?(mid)
@arc = true
@core = $map_data[mid]
@core.load
@y_limit = @core.height
end
arc_setup(mid)
if @arc
@camera.refresh_limits
@camera.focus($game_player)
end
end
end
Take the code above and paste it in a blank script below Arc Engine.
Then add to the KHAS -> ARC -> MY_MAPS the Map iDs that you want to disable Arc Engine
It SHOULD work
Yes! Thak you! It works like a charm. Now I can make my game.
Original thread: https://forums.rpgmakerweb.com/threads/disable-script-on-certain-maps.43575/