• 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.
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • 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.

[Scripting Question] Using an Item for Field Move Flash?

  • 63
    Posts
    6
    Years
    • Seen Sep 8, 2024
    Just wondering how in 17.2 I can use a item to trigger the effects of Flash. I know plenty of scripts have been made for other HMs, but I can't seem to figure out the coding for Flash. Whenever I use the item in a darkened cave it just tells me that I can't use the item there.
     
    Just wondering how in 17.2 I can use a item to trigger the effects of Flash. I know plenty of scripts have been made for other HMs, but I can't seem to figure out the coding for Flash. Whenever I use the item in a darkened cave it just tells me that I can't use the item there.

    Inside your metadata.txt you will find this:
    Code:
    [050]
    # Rock Cave
    BattleBack=CaveDark
    Bicycle=true
    MapPosition=0,16,10
    [COLOR="Red"]DarkMap=true[/COLOR]

    Map 50 will trigger DarkMap to true. So you need to put the same thing to your custom map.
     
    Inside your metadata.txt you will find this:
    Code:
    [050]
    # Rock Cave
    BattleBack=CaveDark
    Bicycle=true
    MapPosition=0,16,10
    [COLOR="Red"]DarkMap=true[/COLOR]

    Map 50 will trigger DarkMap to true. So you need to put the same thing to your custom map.

    My custom map is already on the DarkMap=true setting and is displayed as such in game. I just think I have done something wrong when it comes to assigning flashs functions to an item.
     
    Back
    Top