Try   HackMD

【エメラルド】サイクリングロードTAを自動化する話

この記事はPokémon Past Generation Advent Calendar 2023189日目分の記事です。
(もう一年の折り返し来てるの、冷静に考えて怖くないですか)

突然ですが、皆さんはポケットモンスターエメラルドのタイムアタック要素といったら何を思い浮かべますか?

そう、サイクリングロードですね?

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

出典: Seaside Cycling Road ―From Bulbapedia, the community-driven Pokémon encyclopedia. 2024/06/09閲覧
https://bulbapedia.bulbagarden.net/wiki/Seaside_Cycling_Road

マッハ自転車 飛ばして進もう!!

トレーナーヒル?それはこちらの記事にお任せしましょう。

このサイクリングロードには、ゲートを出てから高架を下りるまでに壁にぶつかった回数と時間を計測してくれるNPCが居ます。

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

計測してもらうにはマッハじてんしゃを使ってキンセツからカイナまでを駆け抜けなければならず、複雑なコースとNPC配置も相まって最速タイムを狙うのはかなりの労力が必要です。

じゃあ自動化しよう

人間がやるのはそれなりの操作テクニックが求められますが、機械にやらせる分には何の問題もありませんね。いつものようにPokeConの力を借りて自動化しましょう。

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

何回か走らせると 9.41秒のベストスコアが出ました。やったね!

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

そらのはしらの自動登頂なども成し遂げられているのですから、これくらいは朝飯前やもしれませんが、一発ネタとしてはアリでしょう。

コードはいつもの通りGitHub Gistに上げてあります。
https://gist.github.com/niart120/11d606abd48cbf7d58c88a3240f96686

ファイル名はRSEと銘打っていますが、恐らくルビーサファイアで動かすには細かい調整が必要です。

これを使う人が居るかは定かではないですがもし使う場合はご留意ください。

余談

実は完走率はあまり高くありません。ポケナビを許すな。

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

受付ゲートを出るタイミングを精緻化すればここら辺は解決できるやもしれませんが、そこまでやる気が起きません。。。

余談の余談

NPCも許すな。

image