FANDOM


Forbid running in certain maps
This tutorial was written by Ran Tuco. Please give credit.

This tutorial is related to the following pages:

Click here for more tutorials!


This tutorial was inspired by the tutorial Making maps sloped for cycling.

No running indoors on maps pokemon centers, homes, gyms and more

This is to avoid running at places like pokemon centers, homes, gyms, and more. Add the following defs at the bottom of PokemonUtilities:

def interior?
  maps=[03,04,05] 
  for map in maps
    return true if map == $game_map.map_id
  end
  return false
end
def caminando
  slow = $RPGVX ? 4.5: 3.8
  normal = $RPGVX ? 6.5 : 4.8
  if interior?
    move_speed = slow
  else
    move_speed = normal
  end
  return move_speed
end

Change highlighted part to the map id(s) of your Interior.

In "Walk_Run" search in "def character_name" the following line:

  @character_name=meta[1] 
end

and strike down this:

if interior?
  @character_name=meta[1]
end

Also, in the script section "Walk_Run", change the highlighted line:

elsif pbCanRun?
  @move_speed = caminando

And change the following in the script section "Walk_Run":

if meta[4] && meta[4]!="" && Input.dir4!=0 && passable?(@x,@y,Input.dir4) && pbCanRun?

To:

if meta[4] && meta[4]!="" && Input.dir4!=0 && passable?(@x,@y,Input.dir4) && pbCanRun? && interior?

And that's all.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.