• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Custom Feature Question] A New System for a HM replacement?

Shashu-Greninja

"With great power comes great responsibility"- Whe
  • 99
    Posts
    4
    Years
    Hi, recently I tried out Marin's HM Items script which could be found in the below link:
    https://www.pokecommunity.com/showthread.php?t=411300
    Everything works just fine, each having an item as a replacement for HM's. But instead of an item for HM Fly, I want to add a computer teleport system (or maybe any pokemon teleporting you to a visited place)
    Is there any way I can do it?
     
    Hi, recently I tried out Marin's HM Items script which could be found in the below link:
    https://www.pokecommunity.com/showthread.php?t=411300
    Everything works just fine, each having an item as a replacement for HM's. But instead of an item for HM Fly, I want to add a computer teleport system (or maybe any pokemon teleporting you to a visited place)
    Is there any way I can do it?

    Put this script anywhere above main and below the compiler.

    Code:
    def newFly
      scene = PokemonRegionMap_Scene.new(-1,false)
      screen = PokemonRegionMapScreen.new(scene)
      ret = screen.pbStartFlyScreen
      $PokemonTemp.flydata = ret
      if $PokemonTemp.flydata
        Kernel.pbMessage("Bzzt! Flight system active!")
        pbFadeOutIn(99999){
          $game_temp.player_new_map_id    = $PokemonTemp.flydata[0]
          $game_temp.player_new_x         = $PokemonTemp.flydata[1]
          $game_temp.player_new_y         = $PokemonTemp.flydata[2]
          $game_temp.player_new_direction = 2
          $PokemonTemp.flydata = nil
          $scene.transfer_player
          $game_map.autoplay
          $game_map.refresh
        }
        pbEraseEscapePoint
      else
        Kernel.pbMessage("Flight system canceled...")
      end
    end

    To run the script, just call
    Code:
    Kernel.newFly
     
    Back
    Top