8bd5ac2e7a
$ python3 migration_scripts/convert_parties.py src/data/trainers.h src/data/trainer_parties.h src/data/npc_trainers.party Is available to convert Trainer Control-formatted trainers/parties into Competitive-formatted ones. Multiple '#include's can be placed in the trainer section of src/data.c to support spreading the trainers across multiple .party files. trainerproc does not interpret the values, leaving that job to the C compiler, so we use '#line' to associate those errors with the lines in the .party file(s). Because the columns don't make sense we use -fno-show-column and -fno-diagostics-show-caret. We might want to move gTrainers into its own file so that the rest of src/data.c isn't affected by those flags. Extensions (misfeatures, imo): - .party files are passed through cpp, so '#define's are supported, and so are '// ...' and '/* ... */' comments. - .party files also support writing, e.g. 'SPECIES_PIKACHU' instead of 'Pikachu'. This allows people to write constants explicitly if they like. Pragmas: - '#pragma trainerproc ivs explicit' requires an explicit 'IVs:' line rather than defaulting to 31s. - '#pragma trainerproc ivs <IVs>' changes the default IVs. - '#pragma trainerproc level explicit' requires an explicit 'Level:' line rather than defaulting to 100. - '#pragma trainerproc level <level>' changes the default level. Co-authored-by: Eduardo Quezada <eduardo602002@gmail.com> Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com> |
||
---|---|---|
.. | ||
abilities.h | ||
apprentice.h | ||
battle.h | ||
battle_ai.h | ||
battle_anim.h | ||
battle_anim_scripts.h | ||
battle_arena.h | ||
battle_dome.h | ||
battle_factory.h | ||
battle_frontier.h | ||
battle_frontier_mons.h | ||
battle_frontier_trainers.h | ||
battle_move_effects.h | ||
battle_palace.h | ||
battle_partner.h | ||
battle_pike.h | ||
battle_pyramid.h | ||
battle_script_commands.h | ||
battle_setup.h | ||
battle_string_ids.h | ||
battle_tent.h | ||
battle_tent_mons.h | ||
battle_tent_trainers.h | ||
battle_tower.h | ||
battle_z_move_effects.h | ||
berry.h | ||
cable_club.h | ||
coins.h | ||
contest.h | ||
cries.h | ||
daycare.h | ||
decorations.h | ||
easy_chat.h | ||
event_bg.h | ||
event_object_movement.h | ||
event_objects.h | ||
expansion.h | ||
field_effects.h | ||
field_poison.h | ||
field_specials.h | ||
field_tasks.h | ||
field_weather.h | ||
flags.h | ||
form_change_types.h | ||
frontier_util.h | ||
game_stat.h | ||
global.h | ||
heal_locations.h | ||
hold_effects.h | ||
item.h | ||
item_effects.h | ||
items.h | ||
layouts.h | ||
lilycove_lady.h | ||
map_groups.h | ||
map_scripts.h | ||
map_types.h | ||
maps.h | ||
mauville_old_man.h | ||
metatile_behaviors.h | ||
metatile_labels.h | ||
moves.h | ||
mystery_gift.h | ||
opponents.h | ||
party_menu.h | ||
pokedex.h | ||
pokemon.h | ||
pokemon_debug.h | ||
region_map_sections.h | ||
rgb.h | ||
roulette.h | ||
script_menu.h | ||
secret_bases.h | ||
slot_machine.h | ||
songs.h | ||
sound.h | ||
species.h | ||
tms_hms.h | ||
trade.h | ||
trainer_hill.h | ||
trainer_types.h | ||
trainers.h | ||
tv.h | ||
union_room.h | ||
vars.h | ||
weather.h | ||
wild_encounter.h |