local MAP = "TUTORIAL_COVE" local STARTER = "TUTORIAL_COVE_EMBERKIT" return function(mod) local blocks = {} for i = 1, 30 do blocks[i] = 1 end mod.content.pokemon:register(STARTER, { id = STARTER, name = "EMBERKIT", dex = 152, types = { "FIRE" }, baseStats = { hp = 45, attack = 60, defense = 40, speed = 65, special = 50 }, catchRate = 190, baseExp = 64, growthRate = "MEDIUM_FAST", level1Moves = { "TACKLE" }, learnset = { { level = 7, move = "GROWL" } }, evolutions = {}, spriteFront = mod.assets:path("assets/emberkit_front.png"), spriteBack = mod.assets:path("assets/emberkit_back.png"), frontSize = 5, }) mod.content.icons:register(STARTER, { image = mod.assets:path("assets/emberkit_icon.png"), frames = 2, }) mod.content.maps:register(MAP, { id = MAP, label = "TutorialCove", index = 1000, tileset = "OVERWORLD", width = 6, height = 5, blocks = blocks, borderBlock = 1, warps = {}, signs = {}, objects = { { index = 1, x = 3, y = 1, sprite = "SPRITE_OAK", movement = "STAY", range = "NONE", text = "TEXT_TUTORIAL_COVE_STARTER", name = "TUTORIAL_COVE_GUIDE", }, }, }) mod.content.map_scripts:register(MAP, { talk = { TEXT_TUTORIAL_COVE_STARTER = { { "check_flag", "mod:starter_taken" }, { "jump_if_true", "after" }, { "show_text", "Choose this\nEMBERKIT!" }, { "give_pokemon", STARTER, 5, true }, { "jump_if_false", "full_party" }, { "set_field", "mod:starter_taken", true }, { "show_text", "EMBERKIT is now\nyour partner!" }, { "start_battle", "wild", "RATTATA", 3 }, { "show_text", "A wild RATTATA\nchallenged you!" }, { "jump", "end" }, { "label", "full_party" }, { "show_text", "Make room and\ntalk to me again." }, { "jump", "end" }, { "label", "after" }, { "show_text", "Take care of\nEMBERKIT!" }, { "label", "end" }, }, }, }) mod.content.field:patch("boot", { startMap = MAP, startX = 3, startY = 3, startFacing = "up", lastHeal = { map = MAP, x = 3, y = 3 }, playerName = "COVE", rivalName = "TIDE", }) end