• 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.
  • 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!
  • Akari, Selene, Mint, Solana - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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.

Manipulating the light-circle (The one in dark maps)

kvagram

Lead coder, Generation 0
  • 39
    Posts
    11
    Years
    Hello. I am new here, and new to Pokemon Essentials, so I need some help.

    I am currently doing some code-work for the project "Generation 0", and I need some help to manipulate that light-circle that shows up in dark maps. I know the move

    My task is to manipulate the size dynamically as the player-character moves, however, I have no idea of how to access the "light-circle" game mechanic. Can anyone show point me in the right direction?
     
    Pokemon Essentials is poorly documented, I really must say, but then again, good documentation is a rare thing.

    PROBLEM SOLVED!

    After some digging, I found the script that sets the behavior of the move FLASH outside of battle.
    I found it inside the script "PokemonHiddenMoves".

    I made a script that sets the radius to whatever I want, with a practical radius range of 50 (barely even see the player) to 500 (no darkness to be seen).

    Here is the script I just wrote, using variable 100 to hold the radius.

    Code:
    darkness=$PokemonTemp.darknessSprite
    Graphics.update
    Input.update
    pbUpdateSceneMap
    darkness.radius = pbGet(100)
     
    It's not surprising that you didn't find documentation about this, because it was never expected that anyone would want to fiddle with the visibility circle beyond just using Flash, and so there was no functionality for doing so. It can hardly be expected for documentation to exist for a feature that doesn't exist.

    I suppose you're not going to help out with documentation either, despite considering it to be poor.
     
    You know what, helping out with creating a proper documentation is not such a bad idea.
    However, my experience with pokemon essentials in numbered in days, not months.

    Uh, and never expect that nothing is to be "fiddled" with, it is there most innovation comes from. Also: there was a gym in one of the pokemon games that had a feature that changed the size of the circle, based on how many gym-trainers you had beaten (don't remember what gym it was, though).
    So the use of that feature cannot truely be unexpected, can it?
     
    Back
    Top