• 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 next favorite protagonist poll is now up, this time for the Almia region from Pokémon Ranger 2! This poll is only lasting 2 days, so don't forget to cast your vote for your favorite protagonist!
  • 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.

Disable fly for a while

  • 28
    Posts
    16
    Years
    Hi, is it possible to disable fly to just one certain city as long as a switch is on? It's essential for my storyline and it would be nice if someone can help out.
     
    I don't know if you did this, but, I'd go to the fly script: PokemonHiddenMoves: Line766:

    Code:
    HiddenMoveHandlers::UseMove.add(:FLY,proc{|move,pokemon|
       if !$PokemonTemp.flydata[COLOR="Red"] || $game_switches[x]==true[/COLOR]
         Kernel.pbMessage(_INTL("Can't use that here."))
       end
       if !pbHiddenMoveAnimation(pokemon)
         Kernel.pbMessage(_INTL("{1} used {2}!",pokemon.name,PBMoves.getName(move)))
       end
       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]
          $PokemonTemp.flydata=nil
          $game_temp.player_new_direction=2
          $scene.transfer_player
          $game_map.autoplay
          $game_map.refresh
       }
       return true
    })

    That's what I would do... Change switch x to any other number.
     
    I don't know if you did this, but, I'd go to the fly script: PokemonHiddenMoves: Line766:

    Code:
    HiddenMoveHandlers::UseMove.add(:FLY,proc{|move,pokemon|
       if !$PokemonTemp.flydata[COLOR="Red"] || $game_switches[x]==true[/COLOR]
         Kernel.pbMessage(_INTL("Can't use that here."))
       end
       if !pbHiddenMoveAnimation(pokemon)
         Kernel.pbMessage(_INTL("{1} used {2}!",pokemon.name,PBMoves.getName(move)))
       end
       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]
          $PokemonTemp.flydata=nil
          $game_temp.player_new_direction=2
          $scene.transfer_player
          $game_map.autoplay
          $game_map.refresh
       }
       return true
    })

    That's what I would do... Change switch x to any other number.
    This way you completely disable fly when the switch is on. Steevie88 wants to disable cities on fly.
     
    Yeah I no, this switch would need to be turned on when enterring the city, turned off, when exiting...

    This was a way for people who don't know how to script to give them a start in learning.

    Scripting is hard, when your trying to jump into the deep end, without a float. ;)
     
    Back
    Top