So I was looking to use this script for movement between big maps (https://www.rpgmakercentral.com/topic/12288-map-edge-transfer-vx-ace-v23-updated-0921/), but I'd like for it to work only on specific tiles (as in, the player can go to the next bit of the map only in specific locations). Anyone can help with editing for this purpose if possible?
Editing script so it only work on certain tiles?
RGSS3 Script RequestsThe easiest and quickest solution would probably be that of using regions. You can define a region where map transfers are allowed and disable it on any other region.
Doing so means that, in the script, you just have to add a single line after line 207 that checks the current region. Just to be clear, since you might have more stuff at the beginning of the script, here is the method that has to be modified:
DISCLAIMER
The code above has been written while trying to remember methods by heart, since I cannot access the engine right now. You have to test it and verify that it works.
Doing so means that, in the script, you just have to add a single line after line 207 that checks the current region. Just to be clear, since you might have more stuff at the beginning of the script, here is the method that has to be modified:
Ruby:
def jms_met_edgeblock?
return false if $game_switches[JMSC::MET::Disable_AutoEdgeTransfer_Switch]
# Next line is new. Replace "your_transfer_region_id" with a real region id [0, 63]
return false if region != your_transfer_region_id
return true if jms_met_edgex? == jms_met_dirconvx?
return true if jms_met_edgey? == jms_met_dirconvy?
return false
end
DISCLAIMER
The code above has been written while trying to remember methods by heart, since I cannot access the engine right now. You have to test it and verify that it works.
That's perfect! Thanks!
Original thread: https://forums.rpgmakerweb.com/threads/editing-script-so-it-only-work-on-certain-tiles.148458/