porymap icon indicating copy to clipboard operation
porymap copied to clipboard

Suggestion: Symbols in Wild Encounter Level and Ratio

Open Dragonflysots opened this issue 2 years ago • 2 comments

Is there a way to insert the levels of the Encounter as "symbols" as well? Currently it is in our project so that you have to make changes every now and then and that is really very very stressful to do that for each map and each entry.

The same would be practical for the ratio of the wild Pokémon.

An unattractive solution would be to disable the wild Pokémon in Porymap and only modify the JSON file via Visual Studio code.

          "map": "MAP_SEA_OF_MIZERIA",
          "base_label": "gSeaOfMizeria_Night",
          "water_mons": {
            "encounter_rate": "RATIO_SEA_OF_MIZERIA",
            "mons": [
              {
                "min_level": "MIN_LEVEL_SEA_OF_MIZERIA",
                "max_level": "MAX_LEVEL_SEA_OF_MIZERIA",
                "species": "SPECIES_CARVANHA"
              },

ike this Then you could create a global header file and correct all levels up or down in a few steps. I did something similar with the trainer data and I can tell you that it is super chilling.

Dragonflysots avatar Sep 18 '21 16:09 Dragonflysots

I imagine Porymap would have to ignore trying to process these. To process them it would have to know where to get the values of the defines from, and because pret's version of the projects don't use any constants here there isn't any precedent for users to know where to put them. It'd rely on users knowing where and how (what prefix) Porymap internally expects them to be defined.

Perhaps Porymap could detect if the level fields are not numbers, and if they aren't then save the define names without trying to process them. It would then disable the spinner box for these entries and output the define names again when it comes time to save. You'd lose the ability to change the values in Porymap, but I assume that's fine for anyone using constants here.

I suppose it could also replace the spinner box with a text entry field when it detects a string

GriffinRichards avatar Dec 19 '21 19:12 GriffinRichards

I guess one solution is that they could be specified in the json file and processed into a C file.

garakmon avatar Dec 20 '21 04:12 garakmon