main 0acd660a80ef cached
26 files
13.4 MB
306.2k tokens
1 requests
Download .txt
Showing preview only (724K chars total). Download the full file or copy to clipboard to get everything.
Repository: KeeyanGhoreshi/PokemonPlatinumSingleSequence
Branch: main
Commit: 0acd660a80ef
Files: 26
Total size: 13.4 MB

Directory structure:
gitextract_sk5cygt3/

├── .gitignore
├── LICENSE
├── README.md
├── autosaves/
│   ├── Script1/
│   │   └── placeholder.txt
│   ├── Script2/
│   │   └── placeholder.txt
│   ├── Script3/
│   │   └── placeholder.txt
│   ├── Script4/
│   │   └── placeholder.txt
│   ├── Script5/
│   │   └── placeholder.txt
│   ├── Script6/
│   │   └── placeholder.txt
│   ├── Script7/
│   │   └── placeholder.txt
│   ├── Script8/
│   │   └── placeholder.txt
│   └── Script9/
│       └── placeholder.txt
└── commands/
    ├── 1.lua
    ├── 2.lua
    ├── 3.lua
    ├── 4.lua
    ├── 5.lua
    ├── 6.lua
    ├── 7.lua
    ├── 8.lua
    ├── 9.lua
    ├── alterMemory.lua
    ├── full.lua
    ├── movement.lua
    ├── recordInputs.lua
    └── startAll.lua

================================================
FILE CONTENTS
================================================

================================================
FILE: .gitignore
================================================
autosaves/**/*.state


================================================
FILE: LICENSE
================================================
                    GNU GENERAL PUBLIC LICENSE
                       Version 3, 29 June 2007

 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.

                            Preamble

  The GNU General Public License is a free, copyleft license for
software and other kinds of works.

  The licenses for most software and other practical works are designed
to take away your freedom to share and change the works.  By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.  We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors.  You can apply it to
your programs, too.

  When we speak of free software, we are referring to freedom, not
price.  Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.

  To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights.  Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.

  For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received.  You must make sure that they, too, receive
or can get the source code.  And you must show them these terms so they
know their rights.

  Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.

  For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software.  For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.

  Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so.  This is fundamentally incompatible with the aim of
protecting users' freedom to change the software.  The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable.  Therefore, we
have designed this version of the GPL to prohibit the practice for those
products.  If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.

  Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary.  To prevent this, the GPL assures that
patents cannot be used to render the program non-free.

  The precise terms and conditions for copying, distribution and
modification follow.

                       TERMS AND CONDITIONS

  0. Definitions.

  "This License" refers to version 3 of the GNU General Public License.

  "Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.

  "The Program" refers to any copyrightable work licensed under this
License.  Each licensee is addressed as "you".  "Licensees" and
"recipients" may be individuals or organizations.

  To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy.  The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.

  A "covered work" means either the unmodified Program or a work based
on the Program.

  To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy.  Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.

  To "convey" a work means any kind of propagation that enables other
parties to make or receive copies.  Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.

  An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License.  If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.

  1. Source Code.

  The "source code" for a work means the preferred form of the work
for making modifications to it.  "Object code" means any non-source
form of a work.

  A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.

  The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form.  A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.

  The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities.  However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work.  For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.

  The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.

  The Corresponding Source for a work in source code form is that
same work.

  2. Basic Permissions.

  All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met.  This License explicitly affirms your unlimited
permission to run the unmodified Program.  The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work.  This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.

  You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force.  You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright.  Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.

  Conveying under any other circumstances is permitted solely under
the conditions stated below.  Sublicensing is not allowed; section 10
makes it unnecessary.

  3. Protecting Users' Legal Rights From Anti-Circumvention Law.

  No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.

  When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.

  4. Conveying Verbatim Copies.

  You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.

  You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.

  5. Conveying Modified Source Versions.

  You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:

    a) The work must carry prominent notices stating that you modified
    it, and giving a relevant date.

    b) The work must carry prominent notices stating that it is
    released under this License and any conditions added under section
    7.  This requirement modifies the requirement in section 4 to
    "keep intact all notices".

    c) You must license the entire work, as a whole, under this
    License to anyone who comes into possession of a copy.  This
    License will therefore apply, along with any applicable section 7
    additional terms, to the whole of the work, and all its parts,
    regardless of how they are packaged.  This License gives no
    permission to license the work in any other way, but it does not
    invalidate such permission if you have separately received it.

    d) If the work has interactive user interfaces, each must display
    Appropriate Legal Notices; however, if the Program has interactive
    interfaces that do not display Appropriate Legal Notices, your
    work need not make them do so.

  A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit.  Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.

  6. Conveying Non-Source Forms.

  You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:

    a) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by the
    Corresponding Source fixed on a durable physical medium
    customarily used for software interchange.

    b) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by a
    written offer, valid for at least three years and valid for as
    long as you offer spare parts or customer support for that product
    model, to give anyone who possesses the object code either (1) a
    copy of the Corresponding Source for all the software in the
    product that is covered by this License, on a durable physical
    medium customarily used for software interchange, for a price no
    more than your reasonable cost of physically performing this
    conveying of source, or (2) access to copy the
    Corresponding Source from a network server at no charge.

    c) Convey individual copies of the object code with a copy of the
    written offer to provide the Corresponding Source.  This
    alternative is allowed only occasionally and noncommercially, and
    only if you received the object code with such an offer, in accord
    with subsection 6b.

    d) Convey the object code by offering access from a designated
    place (gratis or for a charge), and offer equivalent access to the
    Corresponding Source in the same way through the same place at no
    further charge.  You need not require recipients to copy the
    Corresponding Source along with the object code.  If the place to
    copy the object code is a network server, the Corresponding Source
    may be on a different server (operated by you or a third party)
    that supports equivalent copying facilities, provided you maintain
    clear directions next to the object code saying where to find the
    Corresponding Source.  Regardless of what server hosts the
    Corresponding Source, you remain obligated to ensure that it is
    available for as long as needed to satisfy these requirements.

    e) Convey the object code using peer-to-peer transmission, provided
    you inform other peers where the object code and Corresponding
    Source of the work are being offered to the general public at no
    charge under subsection 6d.

  A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.

  A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling.  In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage.  For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product.  A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.

  "Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source.  The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.

  If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information.  But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).

  The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed.  Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.

  Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.

  7. Additional Terms.

  "Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law.  If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.

  When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it.  (Additional permissions may be written to require their own
removal in certain cases when you modify the work.)  You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.

  Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:

    a) Disclaiming warranty or limiting liability differently from the
    terms of sections 15 and 16 of this License; or

    b) Requiring preservation of specified reasonable legal notices or
    author attributions in that material or in the Appropriate Legal
    Notices displayed by works containing it; or

    c) Prohibiting misrepresentation of the origin of that material, or
    requiring that modified versions of such material be marked in
    reasonable ways as different from the original version; or

    d) Limiting the use for publicity purposes of names of licensors or
    authors of the material; or

    e) Declining to grant rights under trademark law for use of some
    trade names, trademarks, or service marks; or

    f) Requiring indemnification of licensors and authors of that
    material by anyone who conveys the material (or modified versions of
    it) with contractual assumptions of liability to the recipient, for
    any liability that these contractual assumptions directly impose on
    those licensors and authors.

  All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10.  If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term.  If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.

  If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.

  Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.

  8. Termination.

  You may not propagate or modify a covered work except as expressly
provided under this License.  Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).

  However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.

  Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.

  Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License.  If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.

  9. Acceptance Not Required for Having Copies.

  You are not required to accept this License in order to receive or
run a copy of the Program.  Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance.  However,
nothing other than this License grants you permission to propagate or
modify any covered work.  These actions infringe copyright if you do
not accept this License.  Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.

  10. Automatic Licensing of Downstream Recipients.

  Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License.  You are not responsible
for enforcing compliance by third parties with this License.

  An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations.  If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.

  You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License.  For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.

  11. Patents.

  A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based.  The
work thus licensed is called the contributor's "contributor version".

  A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version.  For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.

  Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.

  In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement).  To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.

  If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients.  "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.

  If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.

  A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License.  You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.

  Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.

  12. No Surrender of Others' Freedom.

  If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License.  If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all.  For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.

  13. Use with the GNU Affero General Public License.

  Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work.  The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.

  14. Revised Versions of this License.

  The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time.  Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

  Each version is given a distinguishing version number.  If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation.  If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.

  If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.

  Later license versions may give you additional or different
permissions.  However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.

  15. Disclaimer of Warranty.

  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

  16. Limitation of Liability.

  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.

  17. Interpretation of Sections 15 and 16.

  If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.

                     END OF TERMS AND CONDITIONS

            How to Apply These Terms to Your New Programs

  If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

  To do so, attach the following notices to the program.  It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

    <one line to give the program's name and a brief idea of what it does.>
    Copyright (C) <year>  <name of author>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

  If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

    <program>  Copyright (C) <year>  <name of author>
    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
    This is free software, and you are welcome to redistribute it
    under certain conditions; type `show c' for details.

The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License.  Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".

  You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.

  The GNU General Public License does not permit incorporating your program
into proprietary programs.  If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library.  If this is what you want to do, use the GNU Lesser General
Public License instead of this License.  But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.


================================================
FILE: README.md
================================================
# Overview

This repository contains a list of inputs that will beat Pokemon Platinum.  Using a combination of techniques and simulations, progress through the game is guarenteed. There is no RNG-manipulation involved, no frame-perfect inputs required, and the sequence of inputs is static and unchanging regardless of in-game occurences.

You can find the simulator code [here](https://github.com/KeeyanGhoreshi/PlatinumSimulator)

# Contents

The inputs can be found in the `commands` directory.  Each file corresponds to a different part of the game, and they each flow into each other from 1 to 9.  There is also a helper file to alter the memory of the game for testing, and a file for recording inputs while playing.

Each command file contains a list of commands with the format `[<command>, <frames>]`, where the first value is which command to do, and the second is how many frames to hold that command for.  In cases where the command is a set of button presses, `<frames>` indicates how many repititions of that command to do.

The basic commands are as follows:

| Command | Description |
| ------------- | ------------- |
| a  | A |
| b  | B |
| uf  | Up |
| df  | Down |
| lf  | Left |
| rf  | Right |
| st  | Start |
| x | X |
| y | Y |
| ub  | Up + B |
| db  | Down + B |
| lb  | Left + B |
| rb  | Right + B |
| w  | Wait |

Other buttons, like select, L, and R, are unused.

In the command files, additional commands are used to represent a set of these basic button presses. For example, to press A 10 times, `{'press_a', 10}` is used as shorthand, rather than 10 commands in a row to hold the A button for 60 frames.

Each file also defines up to 12 custom commands that do various routines like handle memory mail, do standard battle actions, or navigate sections of the game that must be repeated.

Note that the `l`, `r`, `u`, and `d` commands are shorthand for taking one step in a direction, and `lf`, `rf`, `uf`, and `df` are the commands for holding a directional button for a certain number of frames.

## Recording inputs

Rather than writing commands by hand, if you want to modify the sequence or create a new one, you can use the `recordInputs` file in conjuction with the [bizhawk](https://tasvideos.org/BizHawk) emulator to record the inputs you make and then output them in a format that can be used in the scripts.  

To record your inputs, first you must clear controller hotkeys, i.e. prevent the emulator from using your inputs as commands directly. You can do this through `Config -> Controllers ->  Misc -> Clear`.  You can load back the hotkeys later with `Misc -> Load Defaults` in the same menu.

Then you must open the lua console through `Tools -> Lua Console -> Script -> Open Script`, where you then open the `recordInputs.lua` script.  Once the script starts running, it will record your inputs.

The button hotkeys are listed in the `recordInputs.lua` file, but the most important two are the `lshift`, which outputs the list of formatted commands when you're done recording, and `rshift`, which adds a 60 frame waittime command.  The input recorder does NOT record idle time, meaning if you do not add in the wait times with `rshift`, it will just execute the commands rapidly one after the other with no breaks. 

This causes the output list of inputs, and what you actually did when playing, to be different.  It can be easy to forget to add in the waittimes, which will cause issues when played back.  But as a benefit, there's no pressure to record the inputs on a timer.

Other keys match the default for the emulator, the arrow keys for movement, `x`,`z`,`s`, `a` for `A`, `B`, `X`, `Y`, and `enter` for start.   

# Notes

There may be some volatility with the touch control, which is a required input at the very beginning of the game.  To advance, you must tap the middle of the screen, hitting the center of a pokeball.  This is a non-standard analog input, and is denoted in the code as `touch_middle`.  This only occurs once.

There is also a chance that the inputs don't account for something I am simply unaware of, or didn't think to check.  This human error is always present, regardless of how many times I've checked and rechecked the sequence for problems and bugs.

# More Info

Pokemon uses a Linear Congruent Random Number Generator (LCRNG) to produce most of its random numbers.  This works by creating a sequence of numbers that appears random enough, and then stepping through the sequence one at a time to produce "random" numbers.

The generation 4 pokemon games are different from their predecessors in that they do not cycle through random numbers, they only use a random number when it is needed.  

For example, in Ruby/Sapphire/Emerald, the game will step through the sequence of random numbers every other frame, even if nothing is happening in game, and produce whatever number its currently on when the game asks for one. 

In Diamond/Pearl/Platinum, the random number generator stays static until the game asks for a value.  Meaning if you're standing in an empty area in the game, the random number generator won't do anything.

If you simulate all possible outcomes of the random number generator for a given action, say flip a coin, in Gen 4 games this outcome is deterministic (assuming you are in an empty, or "quiet" area) regardless of your timing.

In Gen 3 games this outcome is not deterministic, it depends on your timing.  Meaning if you flip the coin now, it could have a different result than if you flipped it 2 seconds later.

For our purposes, this quality of the Gen 4 games makes it so that even if a human player uses this list of inputs to play the game, it will still function properly, since a human player would not do the inputs at exact times, and either press the buttons a bit early or a bit late.  So long as the buttons aren't pressed too early, you can delay them for an indefinite amount of time, with no effect on the outcome of the game (assuming you do, eventually, press the buttons).

Using this principle, simulating all 4 billion possible seeds, or starting positions, on Pokemon Platinum's random number sequence allows us to predict what will happen in all possible games.  For example, flipping a coin 100 times has a deterministic number of outcomes.  By checking all of them, we can discover the worst/best case scenario, which in this case is an 80/20 split.

For coin flipping, this process very closely resembles using math to just determine our expected value using simple statistics.  For more complicated things, like Pokemon battles, it becomes much more difficult to use math to determine the outcome.  It is easier to simulate all 4 billion possibilities than it is to calculate the probability given the chance to crit, miss, damage rolls, AI rng, secondary effect chances, etc. 

Doing this gives us insight into which strategies win in every possible game, and allow me to defeat different trainers with 100% certainty, even if mathematically there would be a chance to fail or lose.

The end result is this sequence of inputs, which should beat every game of platinum start to finish without any chances of failure, barring misinputs or bugs.

================================================
FILE: autosaves/Script1/placeholder.txt
================================================


================================================
FILE: autosaves/Script2/placeholder.txt
================================================


================================================
FILE: autosaves/Script3/placeholder.txt
================================================


================================================
FILE: autosaves/Script4/placeholder.txt
================================================


================================================
FILE: autosaves/Script5/placeholder.txt
================================================


================================================
FILE: autosaves/Script6/placeholder.txt
================================================


================================================
FILE: autosaves/Script7/placeholder.txt
================================================


================================================
FILE: autosaves/Script8/placeholder.txt
================================================


================================================
FILE: autosaves/Script9/placeholder.txt
================================================


================================================
FILE: commands/1.lua
================================================
package.path = "./commands/?.lua;"
console.clear()
movement = loadfile('movement.lua')
m = movement()
scriptName = "Script1"

run_daycare = {
    {"runR", 120},
    {"runL", 120},

}
custom1 = {
    {'u', 1},
    {'grass_cycle', 1}
}
custom2 = {
    {'r', 1},
    {'grass_cycle', 1}
}
custom3 = {
    {'d', 1},
    {'grass_cycle', 1}
}
custom4 = {
    {'l', 1},
    {'grass_cycle', 1}
}

custom5 = {
    {'w', 120},
    {'spin', 50},
    {'w', 360}, -- battle started
    {'l', 2},
    {'u', 2},
    {'use_move', 1},
    {'press_b', 10},
    {'d', 1}, -- realign against wall
}
custom6 = {
    {'w', 120},
    {'spin', 50},
    {'w', 360}, -- battle started
    {'l', 2},
    {'u', 2},
    {'press_a', 1},
    {'w', 360},
    {'press_a', 1},
    {'w', 1200},
    {'press_b', 1},
    {'w', 360},
    {'press_b', 1},
    {'w', 360},
    {'d', 1}, -- realign against wall
}
a = {
       -- rom starts
       {'w', 1200},
       {'s', 360},
       {'s', 60},
       {'s', 60},
       {'press_b', 40},
       {'d', 2},
       {'press_a',1},
       {'press_b',8},
       {'w', 360},
       {'press_b',8},
       {'w', 360},
       {'touch_middle', 15},
       {'w', 60},
       {'touch_middle', 15},
       {'w', 60},
       {'press_b', 60},
       {'press_a', 3},
       {'w', 180},
       {'a', 60},
       {'w', 180},
       {'a', 60},
       {'w', 180},
       {'a', 60},
    --    {'a', 60},
       {'r', 8},
       {'d', 1},
       {'a', 15},
       {'l', 4},
       {'a', 15},
       {'l', 4},
       {'d', 1},
       {'a', 15},
       {'r', 5},
       {'u', 1},
       {'a', 15},
       {'s', 15},
       {'press_a', 2},
       {'w', 360},
       {'press_b', 1},
       {'press_a', 1},
       {'w', 180},
       {'press_b', 9},
       {'press_a', 1},
       {'w', 180},
       {'press_a', 1},
       {'d', 1},
       {'r', 2},
       {'a', 15},
       {'u', 1},
       {'l', 2},
       {'a', 15},
       {'r', 9},
       {'d', 1},
       {'a', 15},
       {'l', 2},
       {'u', 1},
       {'a', 15},
       {'s', 15},
       {'press_a', 2},
       {'w', 360},
       {'press_a', 4},
       {'press_b', 40},
       {'w', 600},
       {'press_a', 1},
       {'press_b', 20},
       {'w', 600}, -- standing in room
       {'save', '01-GameBegins'},
    {'r', 2},
    {'press_b', 68},
    {'w', 180},
    {'r', 3},
    {'u', 2},
    {'r', 1},
    {'u', 2},
    {'r', 2},
    {'w', 540},
    {'press_b', 14},
    {'d', 7},
    {'l', 5},
    {'w', 360},
    {'press_b', 18},
    {'d', 1},
    {'w', 180},
    {'d', 1},
    {'w', 720}, -- outside house
    {'l', 8},
    {'u', 10},
    {'l', 5},
    {'u', 2},
    {'press_b', 40},
    {'u', 2},
    {'w', 540},
    {'l', 5},
    {'u', 8},
    {'r', 4},
    {'w', 540},
    {'press_b', 28},
    {'u', 1},
    {'l', 2},
    {'w', 360},
    {'d', 8},
    {'r', 5},
    {'d', 4},
    {'w', 540}, -- outside rival's house
    {'x', 15}, -- change text settings
    {'d', 3},
    {'press_a', 1},
    {'r', 1},
    {'d', 2},
    {'r', 1},
    {'press_b', 2},
    {'press_a', 1},
    {'press_b', 5}, -- text fast and battle anim off
    {'w', 60},
    {'r', 8}, -- walk to rival
    {'u', 24},
    {'w', 180},
    {'press_b', 60}, -- talk to prof
    {'press_a', 25},
    {'press_b', 60},
    {'w', 180},
    {'l', 2}, -- pick a pokemon
    {'press_a', 1},
    {'w', 240},
    {'press_b', 4},
    {'r', 1},
    {'press_a', 4},
    {'w', 180},
    {'press_b', 45},
    {'press_a', 10},
    {'save', '02-RivalBattle'},

    {'w', 1680}, -- battle starts with rival
    {'u', 2},
    {'a', 90},
    {'r', 1},
    {'w', 15},
    {'use_move', 25}, -- lose on purpose
    {'press_b', 40}, -- get running shoes from mom
    {'d', 4}, -- leave mom's place
    {'w', 540},
    {'l', 5},
    {'u', 7},
    {'l', 3},
    {'u', 27},
    {'press_b', 20}, -- talk to math
    {'l', 7},
    {'u', 4},
    {'l', 23},
    {'u', 8},
    {'l', 2},
    {'u', 6},
    {'press_b', 9}, 
    {'w', 540},
    {'press_b', 4},
    {'w', 360},
    {'press_b', 70}, -- talk to genocide man
    {'d', 3},
    {'w', 540},
    {'d', 9},
    {'r', 35}, -- about to walk into grass
    {'u', 2}, -- avoid npc in bottom 2 rows
    {'r', 3},
    {'grass_cycle', 1},
    {'r', 1},
    {'grass_cycle', 1},
    {'r', 1},
    {'grass_cycle', 1},
    {'r', 1},
    {'grass_cycle', 1},
    {'r', 1},
    {'grass_cycle', 1},
    {'r', 1},
    {'grass_cycle', 1},
    {'r', 1},
    {'grass_cycle', 1},
    {'r', 1},
    {'grass_cycle', 1},
    {'r', 1},
    {'grass_cycle', 1},
    {'r', 1},
    {'grass_cycle', 1},
    {'r', 1}, -- out of grass
    {'r', 20},
    {'u', 2},
    {'grass_cycle', 1},
    {'u', 1},
    {'grass_cycle', 1},
    {'u', 1},
    {'grass_cycle', 1},
    {'u', 1},
    {'grass_cycle', 1},
    {'u', 1},
    {'grass_cycle', 1},
    {'u', 1},
    {'grass_cycle', 1},
    {'u', 1},
    {'grass_cycle', 1},
    {'r', 1},
    {'grass_cycle', 1},
    {'r', 1},
    {'grass_cycle', 1},
    {'r', 1},
    {'grass_cycle', 1},
    {'r', 1},
    {'r', 15},
    {'w', 180},
    {'press_b', 30}, -- talk to dawn
    {'w', 720},
    {'press_b', 1},
    {'w', 30},
    {'press_b', 1},
    {'w', 30},
    {'press_b', 1},
    {'w', 30},
    {'press_b', 1},
    {'w', 30},
    {'press_b', 1},
    {'w', 30},
    {'press_b', 1},
    {'w', 30},
    {'press_b', 1},
    {'w', 60},
    {'press_a', 1}, -- name chimchar
    {'w', 300},
    {'press_a', 1},
    {'d', 2},
    {'press_a', 1},
    {'u', 3},
    {'r', 1},
    {'press_a', 1},
    {'d', 2},
    {'r', 1},
    {'press_a', 1},
    {'l', 1},
    {'u', 1},
    {'press_a', 1},
    {'d', 1},
    {'l', 1},
    {'press_a', 1},
    {'r', 3},
    {'u', 1},
    {'press_a', 1},
    {'u', 1},
    {'l', 2},
    {'press_a', 1},
    {'d', 1},
    {'r', 2},
    {'press_a', 1},
    {'u', 1},
    {'press_a', 1},
    {'d', 1},
    {'l', 3},
    {'press_a', 1},
    {'r', 3},
    {'press_a', 1},
    {'w', 30},
    {'s', 15},
    {'press_a', 50}, -- done naming
    {'press_b', 30}, -- listen to prof, receive RETURN
    {'save', '03-AcquiredReturn'},

    {'d', 10},
    {'w', 360},
    {'press_b', 90}, -- listen to dawn
    {'w', 180},
    {'l', 37}, -- done with tutorial, walk back to mom
    {'d', 5},
    {'w', 180},
    {'d', 3},
    {'l', 24},
    {'r', 2},
    {'u', 3},
    {'l', 17},
    {'d', 2},
    {'w', 180},
    {'d', 24},
    {'r', 2},
    {'d', 11},
    {'r', 4},
    {'u', 2},
    {'w', 360}, -- inside mom's house
    {'u', 2},
    {'r', 1},
    {'press_a', 1}, -- talk to mom
    {'press_b', 90}, -- get JOURNAL and PARCEL
    {'d', 3},
    {'w', 360},
    {'l', 4}, -- walk back to poke center
    {'u', 35},
    {'r', 3}, -- before grass
    {'r', 1},
    {'grass_cycle', 1},
    {'r', 1},
    {'grass_cycle', 1},
    {'r', 1},
    {'grass_cycle', 1},
    {'r', 1},
    {'grass_cycle', 1},
    {'r', 1},
    {'grass_cycle', 1},
    {'r', 1},
    {'grass_cycle', 1},
    {'r', 1},
    {'grass_cycle', 1},
    {'r', 1},
    {'grass_cycle', 1},
    {'r', 1},
    {'grass_cycle', 1},
    {'r', 1},
    {'grass_cycle', 1},
    {'r', 1}, -- out of grass
    {'r', 20},
    {'u', 2},
    {'grass_cycle', 1},
    {'u', 1},
    {'grass_cycle', 1},
    {'u', 1},
    {'grass_cycle', 1},
    {'u', 1},
    {'grass_cycle', 1},
    {'u', 1},
    {'grass_cycle', 1},
    {'u', 1},
    {'grass_cycle', 1},
    {'u', 1},
    {'grass_cycle', 1},
    {'r', 1},
    {'grass_cycle', 1},
    {'r', 1},
    {'grass_cycle', 1},
    {'r', 1},
    {'grass_cycle', 1},
    {'r', 1},
    {'r', 28}, -- walk to pokecenter
    {'u', 4},
    {'w', 360},
    {'u', 2},
    {'l', 7}, -- up escalator 
    {'w', 360},
    {'u', 3},
    {'l', 3},
    {'r', 1},
    {'w', 180}, -- get ready for running
    {'run_daycare', 2730}, -- max out friendship :)
    {'save', '04-AfterFriendshipMax'},
    {'w', 60},
    {'r', 3}, -- leave pokecenter
    {'d', 3},
    {'l', 2},
    {'w', 360},
    {'r', 5},
    {'d', 4},
    {'w', 360}, -- outside again
    {'r', 5}, -- position for reset
    {'u', 3},
    {'l', 2},
    {'d', 1},

    {'reset_start', 1},
    {'w', 180},
    {'r', 2}, -- go to grass
    {'d', 5},
    {'l', 33},
    {'x', 15}, -- learn return
    {'d', 3},
    {'press_a', 1},
    {'w', 180},
    {'l', 1}, -- menuing
    {'w', 30},
    {'l', 1},
    {'w', 30},
    {'l', 1},
    {'w', 30},
    {'l', 1},
    {'w', 30},
    {'l', 1},
    {'w', 30},
    {'press_a', 7}, -- use return TM
    {'press_b', 8}, -- exit start menu
    {'x', 15}, -- reopen menu
    {'w', 180},
    {'u', 1},
    {'press_a', 1}, -- open pokemon menu
    {'w', 180},
    {'press_a', 2},
    {'w', 180},
    {'r', 3}, -- swap return to first position
    {'press_a', 1},
    {'d', 2},
    {'press_a', 1},
    {'u', 2},
    {'press_a', 1},
    {'press_b', 8}, -- close menu

    {'save', '05-BeforeTraining'},

    {'u', 3},
    {'l', 2}, -- enter grass
    {'w', 30},
    -- start training.  Reach lvl 9, fastest in 12 battles
    {'wild_train_cycle', 11},
    {'save', '05b-BeforeLeveling'},
    {'w', 60},
    {'wild_train_cycle_2', 7}, -- all parallel universes not at lvl 9
    -- max discrepancy can be 24xp
    {'u', 2},
    {'press_a', 1},
    {'w', 240},
    {'d', 2},
    {'press_a', 2}, -- replace scratch with taunt
    {'w', 1080},
    {'press_b', 3},
    {'r', 1},
    {'grass_cycle', 1}, -- leave the grass
    {'r', 4}, -- realign against sign post
    {'w', 60},
    {'d', 2},
    {'r', 28},
    {'u', 3}, -- into pokecenter
    {'w', 540},
    {'u', 6},
    {'press_a', 9}, -- heal
    {'press_b', 10},
    {'d', 8},
    {'w', 600}, --outside pokecenter
    {'save', '06-AfterTraining'},

    {'r', 8},
    {'u', 17},
    {'l', 5},
    {'w', 360}, -- listen to dawn tutorial
    {'press_b', 8},
    {'w', 3420},
    {'press_b', 36}, -- get 5 pokeballs
    {'l', 1},
    {'grass_cycle', 1},
    {'l', 1},
    {'grass_cycle', 1},
    {'l', 1},
    {'grass_cycle', 1}, 
    {'l', 1},
    {'grass_cycle', 1},
    {'l', 1}, --out of grass
    {'l', 6},
    {'grass_cycle', 1},
    {'l', 1},
    {'grass_cycle', 1},
    {'l', 1},
    {'grass_cycle', 1},
    {'u', 1},
    {'grass_cycle', 1},
    {'u', 1},
    {'grass_cycle', 1},
    {'u', 1},
    {'grass_cycle', 1},
    {'u', 1},
    {'grass_cycle', 1},
    {'u', 1},
    {'grass_cycle', 1},
    {'u', 1},
    {'grass_cycle', 1},
    {'u', 1},
    {'grass_cycle', 1},
    {'u', 1},
    {'grass_cycle', 1},
    {'u', 1},
    {'grass_cycle', 1},
    {'u', 1}, -- out of grass
    {'u', 1},
    {'r', 2},
    {'w', 360}, -- fight Tristan
    {'press_b', 4},
    {'w', 900},
    {'use_move', 2}, -- starly down
    {'press_b', 10},
    {'save', '07-AfterTristan'},

    {'r', 5}, -- go back to pokecenter
    {'d', 7},
    {'w', 180},
    {'d', 4},
    {'r', 5},
    {'grass_cycle', 1},
    {'r', 1},
    {'grass_cycle', 1},
    {'r', 1},
    {'grass_cycle', 1},
    {'r', 1},
    {'grass_cycle', 1},
    {'r', 1},
    {'grass_cycle', 1},
    {'r', 1},
    {'grass_cycle', 1},
    {'r', 1}, -- out of grass
    {'r', 6},
    {'d', 9},
    {'l', 5},
    {'d', 9},
    {'l', 6},
    {'u', 3},
    {'w', 360},
    {'pokecenter_heal', 1},
    {'d', 8},
    {'w', 540}, -- out of pokecenter
    {'r', 8},
    {'u', 17},
    {'l', 5},
    {'l', 1},
    {'grass_cycle', 1},
    {'l', 1},
    {'grass_cycle', 1},
    {'l', 1},
    {'grass_cycle', 1}, 
    {'l', 1},
    {'grass_cycle', 1},
    {'l', 1},
    {'grass_cycle', 1},
    {'l', 1},
    {'grass_cycle', 1},
    {'l', 1}, --out of grass
    {'l', 6},
    {'grass_cycle', 1},
    {'l', 1},
    {'grass_cycle', 1},
    {'l', 1},
    {'grass_cycle', 1},
    {'u', 1},
    {'grass_cycle', 1},
    {'u', 1},
    {'grass_cycle', 1},
    {'u', 1},
    {'grass_cycle', 1},
    {'u', 1},
    {'grass_cycle', 1},
    {'u', 1},
    {'grass_cycle', 1},
    {'u', 1},
    {'grass_cycle', 1},
    {'u', 1},
    {'grass_cycle', 1},
    {'u', 1},
    {'grass_cycle', 1},
    {'u', 1},
    {'grass_cycle', 1},
    {'u', 1}, -- out of grass
    {'r', 11}, -- go to lass
    {'d', 2},
    {'r', 7},
    {'w', 540},
    {'press_b', 5},
    {'w', 900},
    {'use_move', 2}, -- defeat lass
    {'press_b', 24},
    {'w', 180},
    {'r', 2},
    {'d', 3},
    {'r', 6},
    {'u', 2}, -- to burmy boy
    {'grass_cycle', 1},
    {'u', 1},
    {'grass_cycle', 1},
    {'u', 1},
    {'grass_cycle', 1},
    {'u', 1},
    {'grass_cycle', 1},
    {'u', 1},
    {'grass_cycle', 1},
    {'u', 1},
    {'grass_cycle', 1},
    {'u', 1},
    {'grass_cycle', 1},
    {'u', 1},
    {'grass_cycle', 1},
    {'u', 1},
    {'grass_cycle', 1},
    {'u', 1},
    {'grass_cycle', 1},
    {'u', 1}, -- out of grass
    {'u', 5}, -- to jubilife
    {'l', 3},
    {'w', 360},
    {'press_b', 4},
    {'w', 720},
    {'use_move', 2},
    {'press_b', 20},
    {'l', 3},
    {'grass_cycle', 1},
    {'l', 1},
    {'grass_cycle', 1},
    {'l', 1},
    {'grass_cycle', 1},
    {'l', 1},
    {'grass_cycle', 1},
    {'l', 1},
    {'grass_cycle', 1},
    {'l', 1}, -- out of grass
    {'l', 4},
    {'u', 11},
    {'press_b', 135}, -- finish talking to dawn // 25
    {'d', 2},
    {'r', 6},
    {'u', 2},
    {'w', 360},
    {'pokecenter_heal', 1}, -- heal
    {'d', 8},
    {'w', 360},
    {'save', '08-InJubilife'},

    {'l', 13},
    {'u', 2},
    {'w', 360},
    {'u', 8},
    {'l', 1},
    {'w', 30},
    {'press_a', 1},
    {'press_b', 41},
    {'d', 2},
    {'l', 6},
    {'u', 2},
    {'l', 1},
    {'w', 30},
    {'press_a', 1},
    {'press_b', 9},
    {'r', 3},
    {'d', 2},
    {'r', 4},
    {'d', 6},
    {'r', 6},
    {'u', 6},
    {'w', 60},
    {'press_a', 5}, -- fight students
    {'press_b', 6},
    {'w', 720},
    {'use_move', 2},
    {'press_b', 10},
    {'r', 3},
    {'u', 1},
    {'w', 30},
    {'press_a', 4},
    {'press_b', 14},
    {'w', 360},
    {'use_move', 3},
    {'press_b', 25},
    {'l', 3},
    {'u', 1},
    {'w', 30},
    {'press_a', 2},
    {'press_b', 20},
    {'d', 7},
    {'l', 6},
    {'d', 2},
    {'w', 360}, -- outside school
    {'r', 7},
    {'u', 2},
    {'w', 360},
    {'press_b', 18}, -- talk to watch guy
    {'r', 2},
    {'u', 5},
    {'r', 6},
    {'u', 4},
    {'r', 200},
    {'press_a', 10},
    {'press_b', 10}, -- get coupon 1
    {'u', 3},
    {'l', 10},
    {'u', 7},
    {'l', 7},
    {'u', 10},
    {'l', 4},
    {'press_a', 10},
    {'press_b', 10}, -- get coupon 2
    {'r', 4},
    {'d', 6},
    {'l', 22},
    {'u', 4},
    {'l', 200},
    {'w', 180},
    {'press_a', 8},
    {'press_b', 14}, -- get coupon 3
    {'d', 5},
    {'r', 29},
    {'d', 5},
    {'r', 4},
    {'d', 9},
    {'press_a', 2},
    {'press_b', 23}, -- get watch
    {'save', '09-WatchAcquired'},

    {'u', 8}, -- got to route 204
    {'l', 4},
    {'u', 10},
    {'r', 4},
    {'u', 28},
    {'l', 2},
    {'u', 2},
    {'l', 1},
    {'press_a', 5}, -- fight lass
    {'press_b', 17},
    {'w', 360},
    {'use_move', 2},
    {'press_b', 24},
    {'l', 1},
    {'w', 60},
    {'u', 2},
    {'l', 6},
    {'u', 2},
    {'l', 2},
    {'u', 1},
    {'press_a', 4}, -- fight magikarp boy
    {'press_b', 20},
    {'use_move', 2},
    {'press_b', 11},
    {'w', 180},
    
    {'r', 7},
    {'u', 2}, -- 28 save state
    {'custom1', 12},
    {'custom4', 1}, -- traverse grass
    {'l', 1}, 
    {'l', 1},
    {'d', 2},-- behind girl
    {'press_a', 3},
    {'press_b', 4}, -- should be level 12 in most PUs
    {'w', 720},
    {'use_move', 2},
    {'press_b', 18}, -- go through level up prompt
    {'w', 60}, -- 29 ss
    {'r', 1}, 
    {'custom2', 1},
    {'custom3', 12}, -- out of grass
    {'w', 30},
    {'r', 3}, -- to pokecenter
    {'d', 32},
    {'l', 4},
    {'d', 10},
    {'r', 4},
    {'d', 17},
    {'r', 7},
    {'u', 3},
    {'w', 360}, -- into pokecenter
    {'pokecenter_heal', 1}, 
    {'d', 8},
    {'w', 540}, -- back outside ss 30
    {'save', '10-BeforeTrainingAgain'},

    {'d', 2},
    {'l', 7},
    {'d', 29},
    {'l', 3},
    {'d', 4},
    {'w', 180},
    {'d', 9},
    {'r', 13},
    {'d', 5},
    {'w', 180},
    {'d', 21},
    {'l', 37}, -- ready to train
    {'custom5', 18}, -- halfway there kinda
    {'grass_cycle', 1}, -- in case we get supremely unlucky realigning
    {'reset_start', 1},
    {'x', 15}, -- swap ember to pos 1
    {'w', 60},
    {'d', 2},
    {'press_a', 1},
    {'w', 360},
    {'press_a', 2},
    {'w', 360},
    {'l', 2},
    {'w', 180},
    {'press_a', 1},
    {'w', 180},
    {'u', 2},
    {'press_a', 1},
    {'d', 2},
    {'press_a', 1},
    {'press_b', 13}, -- done
    {'custom6', 25}, -- finish our training, hit level 14 (mach punch)
    -- we should be on "wants to learn the move..."
    {'press_a', 1},
    {'w', 240},
    {'press_a', 1},
    {'w', 240},
    {'press_a', 1},
    {'w', 240},
    {'d', 1},
    {'w', 30},
    {'press_a', 1},
    {'w', 180},
    {'press_b', 15}, -- done learning mach punch
    {'save', '11-DoneLearningMachPunch'},

    {'custom2', 1},
    {'r', 1}, -- out of grass
    -- breakpoint // realign 
    {'u', 3},
    {'r', 4},
    {'w', 180},
    {'l', 2},
    {'d', 3},
    {'r', 1},
    {'w', 60},
    -- end breakpoint
    {'r', 35},
    {'u', 20},
    {'l', 5},
    {'custom4', 6},
    {'l', 1}, -- out of grass
    {'l', 5},
    {'custom4', 3},
    {'custom1', 8},
    {'u', 1},
    {'r', 12},
    {'d', 4},
    {'r', 12},
    {'u', 1},
    {'custom1', 10},
    {'u', 1}, -- out of grass

    {'u', 5},
    {'l', 4},
    {'custom4', 5},
    {'l', 1},
    {'l', 4},
    {'u', 29}, -- into jubilife
    {'r', 7},
    {'u', 2},
    {'w', 360},
    {'u', 6}, -- heal
    {'w', 180},
    {'press_a', 9},
    {'press_b', 10},
    {'d', 8},
    {'w', 360},
    {'l', 7},
    {'u', 19},
    {'r', 23},
    {'w', 360},
    {'press_b', 8},
    {'w', 800},
    {'press_a', 1},
    {'w', 180},
    {'d', 1},
    {'r', 1},
    {'w', 180},
    {'use_move', 5},
    {'press_b', 14}, -- after rival battle
    {'save', '12-AfterRival'},

    {'r', 4},
    {'u', 6},
    {'r', 3},
    {'u', 5},
    {'w', 360},
    {'press_b', 6},
    {'w', 800},
    {'use_move', 1},
    {'press_a', 1},
    {'w', 180},
    {'r', 2},
    {'d', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 1200}, -- beat zubat boy
    {'u', 5},
    {'r', 10},
    {'d', 4},
    {'w', 180},
    {'press_a', 1},
    {'press_b', 7},
    {'d', 4},
    {'w', 180},
    {'d', 4},
    {'r', 7},
    {'custom2', 2},
    {'r', 3},
    {'w', 360},
    {'press_b', 3},
    {'w', 900}, -- defeat lad
    {'press_a', 1},
    {'r', 1},
    {'d', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 900},
    {'press_b', 20}, -- lvl 15
    {'r', 3},
    {'custom2', 2},
    {'r', 7},
    {'u', 2},
    {'w', 360},
    {'press_b', 4},
    {'w', 1080},
    {'press_a', 1},
    {'w', 180},
    {'r', 1},
    {'d', 1},
    {'use_move', 2}, -- machop may survive first return
    {'press_b', 4},
    {'d', 3},
    {'r', 7},
    {'custom2', 3}, -- into sight line of wanderer
    {'save', '13-BeforeWanderer'},

    {'w', 26524}, -- guarentee her seeing us
    {'press_b', 5},
    {'w', 800},
    {'press_b', 1},
    {'w', 1080},
    {'press_a', 1},
    {'d', 1},
    {'r', 1},
    {'w', 30},
    {'use_move', 4},
    {'press_b', 3},
    {'w', 120}, -- defeated her
    {'save', '14-AfterWanderer'},

    {'custom2', 3},
    {'r', 1},
    {'u', 11},
    {'l', 6},
    {'l', 1},
    {'w', 360},
    {'press_b', 1},
    {'w', 1200},
    {'press_a', 1},
    {'r', 1},
    {'d', 1},
    {'use_move', 1},
    {'press_b', 1}, -- avoid learning fury swipes
    {'w', 180},
    {'press_b', 1},
    {'w', 900},
    {'press_b', 1},
    {'w', 300},
    {'press_a', 1},
    {'w', 300},
    {'press_b', 10},
    {'w', 180}, 
    {'r', 3}, -- go get repel
    {'u', 4},
    {'l', 1},
    {'custom4', 13},
    
    {'l', 7},
    {'u', 1},
    {'press_a', 1},
    {'press_b', 8},
    {'r', 7},
    {'custom2', 13},
    {'r', 1},

    {'r', 4}, -- to oreburgh gate
    {'d', 4},
    {'r', 2},
    {'w', 720}, -- wait to get inside
    {'custom2', 3},
    {'press_b', 20}, -- let hiker man talk to us
    {'custom2', 10}, -- go to first trainer
    {'r', 1},
    {'press_b', 12},
    {'w', 900},
    {'use_move', 2},
    {'w', 400},
    {'custom2', 7}, -- go to second trainer
    {'r', 1},
    {'w', 180},
    {'press_b', 5},
    {'w', 900},
    {'press_a', 1},
    {'r', 1},
    {'use_move', 1},
    {'w', 400},
    {'custom2', 4},
    {'r', 1},
    {'w', 720}, -- out of oreburgh gate
    {'r', 8},
    {'w', 180},
    {'press_b', 10},
    {'w', 720},
    {'press_b', 3},
    {'w', 180},
    {'d', 3},
    {'r', 7},
    {'d', 2},
    {'r', 14},
    {'u', 6},
    {'r', 6},
    {'u', 2},
    {'w', 360},
    {'pokecenter_heal', 1},
    {'d', 8},
    {'w', 540}, -- out of pokecenter
    {'save', '15-InOreburgh'},


    {'l', 4},
    {'d', 21},
    {'reset_start', 1},
    {'w', 180},
    {'r', 3},
    {'d', 20},
    {'w', 540},
    {'x', 15}, -- use repel
    {'u', 4},
    {'press_a', 1},
    {'w', 180},
    {'l', 1},
    {'w', 30},
    {'l', 1},
    {'w', 30},
    {'l', 1},
    {'w', 30},
    {'press_a', 2},
    {'press_b', 5}, -- done using repel // insidethemine
    {'save', '16-InsideTheMine'},

    -- BREAKPOINT
    {'d', 20},
{'w', 540},
{'d', 7},
{'r', 2},
{'d', 3},
{'l', 2},
{'d', 6},
{'r', 12},
{'d', 4},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_b', 4},
{'w', 1800},
{'press_a', 1},
{'r', 1},
{'use_move', 2},
{'press_b', 4},
{'r', 3},
{'d', 8},
{'l', 2},
{'d', 3},
{'l', 7},
{'d', 2},
{'l', 4},
{'u', 1},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_b', 26},
{'l', 11},
{'u', 1},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_b', 3},
{'w', 1800},
{'press_a', 1},
{'r', 1},
{'use_move', 1},
{'press_b', 4},
{'press_a', 1},
{'d', 1},
{'use_move', 1},
{'press_b', 20},
{'l', 2},
{'u', 2},
{'l', 3},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_b', 7},
{'r', 2},
{'d', 2},
{'r', 15},
{'w', 60},
{'press_b', 1},
{'x', 15},
{'w', 60},
{'press_a', 1},
{'w', 240},
{'press_a', 2},
{'w', 900},
{'save', '17-AfterTheMine'},

    -- END BREAKPOINT
    -- fight gym trainers to gain XP
    {'u', 31},
    {'l', 3},
    {'u', 9},
    {'r', 4},
    {'u', 2},
    {'w', 540},
    {'pokecenter_heal', 1},
    {'d', 8},
    {'w', 360},
    {'l', 5},
    {'d', 6},
    {'l', 18},
    {'u', 7},
    {'w', 360},
    
    {'u', 6},
    {'w', 180},
    {'press_b', 5},
    {'w', 900},
    {'press_a', 1},
    {'r', 1},
    {'use_move', 2},
    {'press_b', 2},
{'w', 180},
{'u', 8},
{'w', 360},
{'press_b', 5},
{'w', 900},
{'press_a', 1},
{'r', 1},
{'use_move', 4},
{'press_b', 3},
{'w', 240},
{'press_b', 2},
{'d', 15}, -- leave to go heal
{'w', 360},
{'d', 5},
{'r', 18},
{'u', 6},
{'r', 5},
{'u', 2},
{'w', 360},
{'pokecenter_heal', 1},
{'d', 8},
{'w', 360},
{'l', 5},
{'d', 6},
{'l', 20},
{'u', 2},
{'l', 11},
{'u', 13},
{'l', 14},
{'w', 540}, -- in cave for last bit of training to hit lvl 18
{'save', '18-BeforeTraining'},
{'u', 1},
{'custom1', 1},
{'u', 1},
{'w', 30},
{'spin_fast', 112}, -- enter fight 1
{'l', 2},
{'u', 2},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'d', 1},
{'w', 60},
{'use_move', 1}, -- use return to KO zubats and psyducks
{'w', 60},
{'press_b', 5}, -- in case of level up now
{'press_a', 1},
{'w', 60},
{'x', 15}, -- menu prevents motion
{'w', 30},
{'u', 1},
{'w', 30},
{'x', 15},
{'w', 30},
{'use_move', 2}, -- two mach punches take out defense curling geodudes
{'press_b', 15},
{'l', 1}, 
{'w', 30},
{'spin_fast', 112}, -- enter fight 2
{'l', 2},
{'u', 2},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'d', 1},
{'w', 60},
{'use_move', 1}, -- use return to KO zubats and psyducks
{'w', 60},
{'press_b', 15}, -- in case of level up now
{'press_a', 1},
{'w', 60},
{'x', 15}, -- menu prevents motion
{'w', 30},
{'u', 1},
{'w', 30},
{'x', 15},
{'w', 30},
{'use_move', 2}, -- two mach punches take out defense curling geodudes
{'press_b', 15},
{'l', 1}, 
{'w', 30},
{'spin_fast', 112}, -- enter fight 1
{'l', 2},
{'u', 2},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'d', 1},
{'w', 60},
{'use_move', 1}, -- use return to KO zubats and psyducks
{'w', 60},
{'press_b', 5}, -- in case of level up now
{'press_a', 1},
{'w', 60},
{'x', 15}, -- menu prevents motion
{'w', 30},
{'u', 1},
{'w', 30},
{'x', 15},
{'w', 30},
{'use_move', 2}, -- two mach punches take out defense curling geodudes
{'press_b', 12},
{'custom1', 1},
{'custom3', 3},
{'custom2', 1},
{'r', 1}, -- out of the gate
{'w', 540},
{'save', '19-AfterTraining'},

{'r', 9},
{'d', 12},
{'r', 14},
{'d', 3},
{'r', 20},
{'u', 6},
{'r', 5},
{'u', 2},
{'w', 360},
{'pokecenter_heal', 1},
{'d', 8},
{'w', 360},
{'l', 5},
{'d', 6},
{'l', 18},
{'u', 7},
{'w', 360},
{'u', 20},
{'w', 60}, -- in front of roark
{'save', '20-BeforeRoark'},

{'press_a', 1},
{'w', 60},
{'press_b', 12},
{'w', 1260}, -- in battle
-- x attack lets us K0 cranidos in one hit
-- and 2HKO geodude and onix.  We know that after the first mach punch 
-- on geodude, roark will use a potion, so we use a potion as well to heal
-- this gives us enough health to survive an onix rock thow crit 
-- while we use mach punch twice on it
-- then cranidos goes down in one mach punch
-- ggs
{'w', 60},
{'u', 1},
{'d', 1},
{'press_a', 1},
{'w', 120},
{'r', 1},
{'d', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 900},
{'u', 1},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'use_move', 1},
{'w', 120}, -- use potion
{'d', 1},
{'press_a', 1},
{'w', 60},
{'u', 1},
{'l', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 2},
{'w', 120},
{'press_a', 1},
{'w', 1200},
{'press_b', 10},
{'u', 3},
{'press_a', 1},
{'w', 60},
{'use_move', 1},
{'w', 300},
{'use_move', 3}, -- finish off onix and cranidos
{'w', 300},
{'use_move', 1},
{'press_a', 60},
{'press_b', 4},
{'w', 90},
{'d', 22},
{'w', 540},
{'r', 4},
{'d', 6},
{'r', 15},
{'u', 6},
{'r', 5},
{'u', 2},
{'w', 360},
{'pokecenter_heal', 1},
{'d', 8},
{'w', 720},
{'save', '21-AfterRoark'},
{'w', 30},
}



client.unpause()
client.unpause_av()

m.executeOrders(a)

client.pause_av()
client.pause()


================================================
FILE: commands/2.lua
================================================
package.path = "./commands/?.lua;"
console.clear()
movement = loadfile('movement.lua')
m = movement()

scriptName = "Script2"

custom1 = {
    {'u', 1},
    {'grass_cycle', 1}
}
custom2 = {
    {'r', 1},
    {'grass_cycle', 1}
}
custom3 = {
    {'d', 1},
    {'grass_cycle', 1}
}
custom4 = {
    {'l', 1},
    {'grass_cycle', 1}
}

custom5 = {
    {'w', 30},
    {'spin', 48},
    {'w', 900}, -- battle started
    {'l', 2},
    {'u', 2},
    {'use_move', 1},
    {'press_b', 15},
    {'u', 1}, -- realign against wall
    {'w', 30},
    {'r', 1}, -- prevent wall bump movement
}
custom6 = {
    {'r', 1},
    {'w', 30},
    {'spin', 48},
    {'w', 1080},
    {'l', 3},
    {'u', 3},
    {'press_a', 1},
    {'w', 360},
    {'press_a', 1},
    {'w', 1280},
    {'press_b', 1},
    {'w', 360},
    {'press_b', 1},
    {'w', 360},
    {'press_a', 1},
    {'w', 360},
    {'press_a', 1},
    {'w', 1280},
    {'press_b', 1},
    {'w', 360},
    {'press_b', 1},
    {'w', 360},
}
custom7 = {
    {'u', 1},
    {'w', 990}, -- begin grass run cycle
    {'press_b', 1},
    {'w', 360},
    {'press_b', 1},
    {'w', 360},
    {'press_b', 1},
    {'w', 360},
    {'press_b', 1},
    {'w', 360},
    {'x', 15},
    {'d', 2},
    {'rf', 10},
    {'x', 15},
    {'a', 60},
    {'w', 360},
    {'press_b', 1},
    {'w', 360}, -- end grass run cycle
    {'u', 23},
    {'w', 60},
    {'d', 13},
    {'r', 5},
    {'u', 2},
    {'w', 540},
    {'u', 6},
    {'w', 60},
    {'a', 60},
    {'w', 360},
    {'a', 60},
    {'w', 360},
    {'a', 60},
    {'w', 360},
    {'r', 1},
    {'a', 60},
    {'w', 550},
    {'press_b', 1},
    {'w', 360},
    {'press_b', 1},
    {'w', 360},
    {'press_b', 1},
    {'w', 360},
    {'press_b', 1},
    {'w', 360},
    {'d', 8},
    {'w', 540},
    {'l', 5},
    {'d', 11},
}
custom8 = {
    {'r', 1},
    {'w', 30},
    {'spin', 48},
    {'w', 1080},
    {'l', 3},
    {'u', 3},
    {'use_move', 2},
    {'w', 1280},
    {'press_b', 12},
    {'w', 40},
}
custom9 = {
    {'custom1', 1},
    {'u', 23},
    {'w', 60},
    {'d', 13},
    {'r', 5},
    {'u', 2},
    {'w', 540},
    {'u', 6},
    {'w', 60},
    {'a', 60},
    {'w', 180},
    {'a', 60},
    {'w', 360},
    {'a', 60},
    {'w', 360},
    {'r', 1},
    {'a', 60},
    {'w', 550},
    {'press_b', 10},
    {'w', 60},
    {'d', 8},
    {'w', 540},
    {'l', 5},
    {'d', 11},
}
custom10 = {
    {'custom8', 10},
    {'custom9', 1},
}
custom11 = {
    {'custom6', 10},
    {'custom7', 1},
}

run_daycare = { -- repurpose to hatch egg
    {'lf', 200},
    {'rf', 200}
}
a = {
    {'l', 5}, -- go to mart
    {'u', 5},
    {'l', 9},
    {'u', 7},
    {'l', 7},
    {'u', 2},
    {'w', 360},
    {'u', 4},
    {'w', 60},
    {'press_a', 1},
    {'w', 60},
    {'press_a', 1},
    {'w', 60},
--$# breakpoint, fixing potion debacle
{'d', 1},
{'w', 60},
{'press_a', 1},
{'w', 240},
{'u', 2},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 120},
{'d', 1},
{'w', 60},
--done fixing debacle
    {'press_a', 1},
    {'w', 180},
    {'u', 2},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 60},
    {'d', 7},
    {'w', 60},
    {'press_a', 1},
    {'w', 180},
    {'u', 9},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'w', 120},
    {'press_b', 10}, -- done buying repels and potions
    {'d', 6},
    {'w', 540},
    {'r', 7},
    {'d', 7},
    {'r', 9},
    {'d', 9},
    {'l', 4},
    {'d', 2},
    {'l', 13},
    {'u', 2},
    {'l', 17},
    {'u', 13},
    {'l', 9},
    {'press_b', 23}, -- done talking to nerd boy
    {'d', 5},
    {'w', 60},
    {'reset_start', 1},
    {'w', 60},
    {'x', 15},
    {'w', 60},
    {'u', 4},
    {'w', 60},
    {'press_a', 1},
    {'w', 360},
    {'press_a', 1},
    {'w', 60},
    {'press_a', 1},
    {'w', 60},
    {'press_b', 9}, -- used repel 
    {'u', 5},
    {'l', 5},
    {'w', 720},
    {'l', 24},
    {'w', 540},
    {'l', 6},
    {'d', 4},
    {'l', 2},
    {'d', 4},
    {'w', 60},
    {'l', 17},
    {'d', 2},
    {'l', 16},
    {'d', 2},
    {'l', 25},
    {'press_b', 23},
    {'l', 7},
    {'press_b', 4},
    {'l', 5},
    {'d', 5},
    {'l', 9},
    {'u', 19},
    {'r', 6},
    {'u', 3},
    {'press_b', 65}, -- start battle with grunts
    {'w', 1220},
    {'press_a', 1}, -- mach punch glameow
{'w', 60},
{'r', 1},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 2400}, -- double battle wait time :O
{'press_a', 40}, -- handle monferno xp edge case 
{'press_b', 12}, -- return to menu
{'press_a', 1},
{'w', 60},
{'d', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'press_a', 1}, -- return on stunky
{'w', 900},
{'press_b', 105}, -- potentially poisoned :(
    {'w', 360},
    {'d', 3},
    {'l', 5},
    {'d', 19},
    {'r', 7},
    {'d', 7},
    {'l', 3},
    {'d', 10},
    {'r', 7},
    {'u', 2},
    {'w', 540},
    {'pokecenter_heal', 1}, -- heal off poison maybe
    {'save', '01-AfterDoubleBattle'},
    {'w', 60},
    {'d', 8},
    {'w', 360},
    {'l', 6},
    {'d', 32},
    {'l', 4},
    {'d', 3},
    {'w', 120},
    {'d', 12},
    {'w', 120},
    {'d', 1},
    {'r', 2},
    {'use_repel', 1},
    {'r', 9},
    {'d', 7},
    {'r', 3},
    {'d', 15},
    {'l', 36},
    {'d', 4},
    {'w', 120},
    {'d', 3},
    {'l', 19},
    {'u', 3},
    {'l', 11},
    {'press_b', 5},
    {'l', 39},
    {'w', 120},
    {'l', 3},
    {'u', 8},
    {'w', 540},
    {'u', 8},
    {'r', 1},
    {'save', '02-BeforeVerityTraining'},
    -- lake verity loop 
    -- need to get at least 12 HP EVs to beat Mars at intended level (22)
    -- can guarentee getting at least 12 HP EVs by fighting the bidoofs in the grass
    -- over the course of 70 fights, 57 will be starly and 13 bidoof in worst case
    -- this gives us the HP EVs needed to survive Mars' Purugly fake out and scratch crits
    {'u', 3}, -- start lake verity loop
    {'r', 2}, -- into grass
    {'custom5', 24}, -- use up flame wheels
    -- need to avoid alignment movements prior to move switch
    {'w', 30},
    {'spin', 48},
    {'w', 900}, -- battle started
    {'l', 2},
    {'u', 2},
    {'use_move', 1},
    {'press_b', 15},
    {'save', '02a-AfterFlameWheel'},
    {'x', 15}, -- switch position of moves
    {'w', 60},
    {'u', 1},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 2},
    {'w', 180},
    {'l', 2},
    {'w', 60},
    {'press_a', 1},
    {'w', 60},
    {'press_a', 1},
    {'d', 1},
    {'w', 15},
    {'press_a', 1},
    {'press_b', 9}, -- done
    {'u', 1}, -- realign against wall
    {'w', 30},
    {'r', 1}, -- prevent wall bump movement
    {'custom5', 29},
    -- need to avoid alignment movements prior to move switch
    {'w', 30},
    {'spin', 48},
    {'w', 900}, -- battle started
    {'l', 2},
    {'u', 2},
    {'use_move', 1},
    {'press_b', 15},
    {'save', '02b-AfterMachPunch'},
    {'x', 15}, -- switch position of moves
    {'w', 60},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 2},
    {'w', 180},
    {'l', 2},
    {'w', 60},
    {'press_a', 1},
    {'w', 60},
    {'press_a', 1},
    {'u', 2},
    {'w', 15},
    {'press_a', 1},
    {'press_b', 10},
    {'u', 1}, -- realign against wall
    {'w', 30},
    {'r', 1}, -- prevent wall bump movement
    {'custom5', 15}, -- done with training
    {'save', '03-AfterTraining'},

    -- breakpoint for divergence
    {'custom4', 2},
    {'l', 2},
    {'w', 60},
    {'d', 8},
    {'l', 2},
    {'d', 3},
    {'reset_start', 1},
    {'r', 2},
    {'d', 3},
    {'w', 540},
    {'d', 8},
    {'r', 8},
    {'d', 2},
    {'r', 29},
    {'u', 2},
    {'r', 1},
    {'x', 15},
    {'w', 60},
    {'u', 4},
    {'x', 15},
    {'w', 60},
    {'use_repel', 1},
    {'r', 31},
    {'u', 9},
    {'r', 39},
    {'u', 19},
{'l', 6},
{'w', 60},
{'press_b', 2},
{'use_repel', 1},
{'l', 14},
{'u', 10},
{'r', 9},
{'d', 4},
{'r', 15},
{'u', 15},
{'l', 14},
{'u', 26},
{'w', 60},
{'press_b', 3},
{'u', 4},
{'r', 7},
{'u', 2},
{'w', 540},
{'pokecenter_heal', 1},
{'d', 8},
{'w', 540},
{'l', 7},
{'u', 17},
{'l', 5},
{'u', 18},
{'r', 5},
{'u', 22},
{'l', 2},
{'u', 2},
{'use_repel', 1},
{'u', 12},
{'l', 3},
{'u', 6},
{'w', 540},
{'u', 6},
{'r', 3},
{'w', 60},
{'press_a', 1},
{'press_b', 5},
{'w', 60},
{'x', 15},
{'w', 60},
{'press_a', 1},
{'w', 360},
{'l', 1},
{'w', 30},
{'l', 1},
{'w', 30},
{'l', 1},
{'w', 30},
{'l', 1},
{'w', 30},
{'l', 1},
{'w', 30},
{'d', 1},
{'w', 60},
{'press_a', 22},
{'press_b', 12},
{'r', 1},
{'w', 60},
{'press_a', 4},
{'press_b', 6},
{'w', 360},
{'r', 6},
{'d', 2},
{'w', 540},
{'x', 15},
{'press_a', 1},
{'w', 360},
{'l', 1},
{'w', 60},
{'l', 1},
{'w', 60},
{'l', 1},
{'w', 60},
{'press_b', 6},
{'l', 9},
{'u', 8},
{'r', 5},
{'w', 60},
{'press_a', 1},
{'press_b', 3},
{'w', 1080},
{'u', 1},
{'press_a', 1},
{'r', 1},
{'press_a', 1},
{'w', 1260},
{'press_b', 16},
{'use_move', 1},
{'press_b', 16},
{'w', 360},
{'d', 4},
{'r', 4},
{'w', 60},
{'press_a', 1},
{'press_b', 9},
{'r', 2},
{'u', 4},
{'u', 5},
{'r', 3},
{'u', 3},
{'w', 540},
{'press_b', 3},
{'w', 1260},
{'u', 1}, -- cursor
{'press_a', 1},
{'r', 1},
{'use_move', 1},
{'press_b', 10},
{'use_move', 1},
{'press_b', 10},
{'u', 2},
{'l', 13},
{'u', 17},
{'press_b', 8},
{'save', '04-InFloaroma'},

{'w', 60}, -- in floaroma
-- breakpoint
{'r', 12}, -- go buy potion to align with previous mine sequence
{'u', 11},
{'r', 3},
{'u', 2},
{'w', 540},
{'u', 4},
{'w', 60},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'w', 240},
{'d', 1},
{'w', 60},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'w', 180},
{'press_b', 12},
{'d', 6},
{'w', 540}, -- done

{'d', 3}, -- go to girl
{'r', 27},
{'w', 60}, -- done

{'press_a', 1}, --  potential breakpoint
{'press_b', 14},
{'l', 8},
{'u', 4},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 2}, -- berry time
{'press_b', 9},
{'l', 2},
{'u', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 2},
{'press_b', 9},
{'l', 24},
{'u', 8},
{'l', 2},
{'u', 1},
{'press_a', 4},
{'press_b', 4},
{'r', 5},
{'u', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 3},
{'press_b', 6},
{'r', 3},
{'u', 13},
{'l', 19},
{'d', 3},
{'l', 4},
{'u', 3},
{'w', 540}, -- into meadow

{'u', 6},
{'w', 120},
{'press_b', 17},
{'w', 1080},
{'u', 1},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'use_move', 1}, -- potentially ko stunky, 
{'press_b', 47}, -- cancel through dialogue
{'w', 720}, -- potentially be starting next fight
{'press_b', 9},
{'u', 2},
{'press_a', 1},
{'r', 1},
{'use_move', 1}, -- ko stunky or first zubat
{'press_b', 42},
{'w', 720},
{'press_b', 12},
{'u', 2},
{'press_a', 1},
{'r', 4},
{'use_move', 1}, -- ko second zubat or first zubat
{'w', 180},
{'press_b', 49},
{'use_move', 1}, -- ko second zubat
{'press_b', 60}, -- begone honey man
{'save', '05-DoneWithHoneyMan'},

{'d', 8},
{'w', 540},
{'l', 3},
{'d', 24},
{'r', 13},
{'d', 3},
{'r', 4},
{'u', 2},
{'w', 540},
{'pokecenter_heal', 1},
{'d', 8},
{'w', 540},
{'r', 14},
{'u', 6},
{'r', 55},
{'w', 60}, -- maybe bump reset?
{'u', 4},
{'r', 2},
{'u', 4},
{'w', 60},
{'press_a', 1},
{'press_b', 10},
{'w', 1260},
{'u', 1},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'d', 1},
{'use_move', 1},
{'w', 300},
{'press_b', 45},
{'u', 1},
{'press_a', 6},
{'press_b', 3},
{'u', 1},
{'w', 540},
{'press_b', 12},
{'l', 10},
{'u', 5},
{'r', 2},
{'u', 4},
{'w', 60},
{'press_a', 1}, -- fight grunt
{'press_b', 3},
{'w', 1080},
{'u', 1},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'use_move', 1},
{'press_b', 23},
{'save', '06-BeforeMars'},

{'l', 2}, -- go to mars
{'u', 3},
{'r', 7},
{'d', 2},
{'r', 7},
{'u', 2},
{'r', 4},
    -- mars has lvl 15 zubat and lvl 17 purugly
    -- zubat basically can't do anything if we taunt it
    -- and we need 2 turns to KO it, so no OHKO flame wheel 
    -- purugly outspeeds low-speed monfernos, and knows fake out
    -- which outspeed mach punch first turn
    -- the strategy is thus:
        -- taunt zubat, then mach punch twice
        -- max damage mach punch crit on highest ATK monfernos
            -- only deals ~95% of zubat's hp
        -- which means we can guarentee a 3 turn KO by doing
            -- mach punch -> mach punch -> flame wheel
        -- this lets us know when our first turn against purugly is
        -- since fake out will flinch us anyway, we can use a potion
        -- to heal back damage zubat did with bite
        -- purugly hp -> 53
        -- monferno hp -> 61
        -- scenario 1, nature is -def
            -- purugly max dmg -> 30
            -- monferno min damage -> 32
            -- monferno KOs in 2 hits, dealing 64 dmg, overcoming 
            -- the oran berry, which puts purugly at 63hp
                -- First hit from purugly is fake out, which puts us at 31
                -- second turn, mach punch brings purugly to 21 -> 31
                -- scratch max crit brings us to 1 hp
                -- third turn, mach punch will KO 31 -> 0 
        -- scenario 2, nature is -atk
            -- purugly max dmg -> 27
            -- monferno min dmg -> 30
                -- First turn, fake out max crit puts us at 34
                -- second turn, mach punch puts purugly to 23
                    -- oran berry triggers, putting purugly to 33
                    -- scratch max crit puts us at 7
                -- third turn, we super potion
                    -- health goes to 57
                    -- scratch max crit brings us to 30
                -- fourth turn
                    -- mach punch brings purugly to 3
                    -- scratch max crit brings us to 3
                -- fifth turn
                    -- mach punch KOs, fight over with 3 hp
        -- both scenarios resolve because in the -def scenario, using 
            -- a super potion is just buying an extra turn, it's stalling
            -- and we still KO afterwards anyway.
            {'r', 2},
            {'w', 60},
            {'press_b', 21},
            {'w', 1260},
            {'u', 1},
            {'press_a', 1},
            {'w', 60},
            {'d', 1},
            {'use_move', 1}, -- use taunt
            {'w', 60},
            {'press_a', 1},
            {'w', 60},
            {'r', 1},
            {'use_move', 2}, -- double mach punch to soften zubat
            {'press_a', 1},
            {'u', 1},
            {'press_a', 1}, -- guarenteed flame wheel ko
            {'w', 1480}, -- purugly comes out
            {'d', 1},
            {'press_a', 1},
            {'w', 60},
            {'press_a', 1}, 
            {'w', 60},
            {'r', 2},
            {'press_a', 1},
            {'w', 60},
            {'press_a', 1},
            {'w', 120},
            {'press_a', 1},
            {'w', 980}, -- potion used
            {'u', 1},
            {'press_a', 1},
            {'w', 60},
            {'d', 1},
            {'use_move', 1}, -- mach punch num 1
            {'w', 120},
            {'d', 1},
            {'press_a', 1},
            {'w', 60},
            {'d', 3},
            {'w', 60},
            {'press_a', 1},
            {'w', 60},
            {'press_a', 1},
            {'w', 120},
            {'press_a', 1},
            {'w', 1080}, -- potion again
            {'u', 1},
            {'press_a', 1},
            {'w', 60},
            {'use_move', 2}, -- mach punch 2 and 3 depending on if we have low def or atk
            {'press_b', 77}, -- reunite the girl with dad 
            {'l', 7}, -- leave the windworks
            {'d', 2},
            {'l', 7},
            {'u', 2},
            {'l', 5},
            {'d', 9},
            {'r', 10},
            {'d', 3},
            {'w', 720},
            {'press_b', 41}, -- talk to looker
            {'w', 60},
            {'d', 3},
            {'r', 4},
            {'d', 1},
            {'w', 60},
            {'press_a', 1},
            {'press_b', 8},
            {'d', 4},
            {'l', 52},
            {'u', 2},
            {'l', 15},
            {'d', 6},
            {'l', 6},
            {'u', 2},
            {'w', 420},
            {'pokecenter_heal', 1}, -- healed bby
            {'save', '07-AfterMars'},

            {'d', 8},
            {'w', 420},
            {'d', 2},
            {'reset_start', 1},
            {'w', 60},
            {'x', 15}, -- put mach punch first
            {'w', 60},
            {'d', 2},
            {'w', 60},
            {'press_a', 1},
            {'w', 360},
            {'press_a', 2},
            {'w', 360},
            {'r', 1},
            {'w', 60},
            {'r', 2},
            {'w', 60},
            {'press_a', 1},
            {'w', 60},
            {'u', 2},
            {'press_a', 1},
            {'d', 2},
            {'press_a', 1},
            {'w', 60},
            {'press_b', 13},
            
            {'r', 14},
            {'u', 9},
            {'r', 29},
            {'u', 15},
            {'l', 2},
            {'u', 2},
            {'l', 1},
            {'w', 60},
            {'press_a', 3},
            {'press_b', 17},
            {'w', 540},
            {'use_move', 2}, -- face ponyta
            {'press_b', 5},
            {'w', 420},
            {'press_b', 4},
            {'u', 5},
            {'l', 2},
            {'x', 15},
            {'w', 60},
            {'d', 1},
            {'w', 60},
            {'press_b', 1},
            {'w', 60},
            {'use_repel', 1},
            {'l', 7},
            {'u', 5},
            {'r', 3},
            {'u', 1},
            {'w', 60},
            {'press_a', 3},
            {'press_b', 22},
            {'w', 360},
            {'use_move', 5}, -- defeat geodudes
            {'press_b', 10},
            {'w', 420},
            {'r', 4},
            {'d', 2},
            {'press_a', 3},
            {'press_b', 4},
            
            {'l', 5},
            {'u', 6},
            {'r', 7},
            {'u', 1},
            {'w', 60},
            {'press_a', 2}, -- defeat roselia 
            {'press_b', 11},
        
            {'w', 780},
            {'press_a', 1},
            {'w', 60},
            {'r', 1},
            {'use_move', 1},
            {'press_b', 24},
            {'w', 60}, -- at about 8 hp 
                     
            {'l', 9},
            {'u', 6},
            {'r', 3},
            {'w', 720},
            {'press_b', 13},
            {'w', 720},
            {'use_move', 1}, -- mach punch aipom
            {'w', 180},
            {'press_b', 13}, -- defeat camper
            
            {'l', 4}, -- backtrack to pokecenter
            {'d', 23},
            {'r', 6},
            {'u', 2},
            {'r', 7},
            {'d', 12},
            {'l', 7},
            {'w', 240},
            {'press_b', 5},
            {'l', 1},
            {'w', 60},
            {'press_b', 5},
            {'w', 60},
            {'l', 1},
            {'w', 60},
            {'press_b', 5},
            {'w', 60},
            {'l', 1},
            {'w', 60},
            {'press_b', 5},
            {'l', 27},
            {'d', 3},
            {'l', 4},
            {'d', 5},
            {'l', 4},
            {'u', 4},
            {'w', 720},
            {'pokecenter_heal', 1},
            {'save', '08-IdkWhatsGoingOnHere'},

            {'press_b', 3},
            {'d', 8},
            {'w', 720},
            {'r', 14}, -- back to the grind
            {'u', 8},
            {'r', 29},
            {'u', 19},
            {'l', 3},
            {'use_repel', 1}, -- repel bcuz im lazy ;)
            {'l', 8},
            {'u', 13},
            {'l', 2},
            {'u', 52},
            {'w', 60},
            {'r', 3},
            {'d', 1},
            {'press_a', 3}, -- defeat 
            {'press_b', 6},
            {'w', 900},
            {'use_move', 2}, -- onix down
            {'press_b', 14},
            {'u', 7},
            {'w', 720},
            {'press_b', 5},
            {'w', 900},
            {'press_a', 1},
            {'w', 60},
            {'r', 1},
            {'w', 60},
            {'use_move', 2}, -- machop down but now we are weak
            {'press_b', 17},
            {'u', 2},
            {'l', 6},
            {'d', 1},
            {'press_a', 3}, -- snag that repel
            {'press_b', 3},
            {'r', 8},
            {'d', 10},
            {'l', 3},
            {'d', 14},
            {'r', 2},
            {'d', 20},
            {'w', 60},
            {'l', 2},
            {'d', 6},
            {'press_b', 4},
            {'w', 60},
            {'r', 1},
            {'press_b', 4},
            {'w', 60},
            {'r', 1},
            {'w', 60},
            {'press_b', 4},
            {'r', 1},
            {'w', 60},
            {'press_b', 4}, -- repel runs out (technically we only needed 2 :+)
            {'r', 4}, -- backtrack again 
            {'u', 2},
            {'r', 2},
            {'w', 360},
            {'u', 1},
            {'press_a', 1},
            {'press_b', 1},
            {'r', 3},
            {'d', 7},
            {'w', 180},
            {'d', 20},
            {'l', 37},
            {'d', 7},
            {'l', 6},
            {'u', 2},
            {'w', 540},
            {'pokecenter_heal', 1},
            {'d', 8},
            {'w', 720},
            {'r', 14},
            {'u', 7},
            {'r', 29},
            {'u', 20},
            {'l', 3},
            {'use_repel', 1},
            {'l', 7},
            {'u', 43},
            {'w', 60},
            {'r', 2},
            {'u', 11},
            {'l', 24},
            {'w', 60},
            {'u', 6},
            {'r', 6},
            {'w', 60},
            {'u', 1},
            {'w', 60},
            {'press_a', 3},
            {'press_b', 8},
            {'w', 900},
            {'use_move', 2},
            {'press_b', 12},
            {'w', 60},
            {'r', 7},
            {'u', 3},
            {'w', 540},
            {'u', 3},
            {'r', 2},
            {'w', 60},
            {'press_a', 4}, -- heal
            {'press_b', 6},
            {'l', 2},
            {'d', 5},
            {'w', 540},
            {'r', 3},
            {'d', 14},
            {'r', 3},
            {'w', 60},
            {'press_a', 1},
            {'press_b', 7},
            {'d', 4},
            {'press_a', 3},
            {'w', 60},
            {'d', 1},
            {'press_b', 7},
            {'d', 2},
            {'w', 120},
            {'l', 5},
            {'d', 3},
            {'save', '09-BeforeLongWait'},

            {'w', 26524}, -- get ready
            {'press_b', 15},
            {'w', 600},
            {'use_move', 1},
            {'press_a', 1},
            {'r', 1},
            {'use_move', 2},
            {'press_b', 16},
            {'l', 3},
            {'u', 3},
            {'w', 60},
            {'press_a', 3},
            {'press_b', 7},
            {'l', 2},
            {'u', 1},
            {'w', 60},
            {'press_a', 4},
            {'press_b', 8},
            {'d', 4},
            {'l', 7},
            {'w', 60},
            {'press_a', 1},
            {'press_b', 7},
            {'r', 9},
            {'d', 6},
            {'r', 3},
            {'d', 5},
            {'w', 60},
            {'d', 2},
            {'l', 4},
            {'u', 3},
            {'w', 60},
            {'press_a', 1},
            {'press_b', 7},
            {'d', 9},
            {'r', 6},
            {'d', 5},
            {'w', 120},
            {'d', 20},
            {'l', 37},
            {'d', 7},
            {'l', 6},
            {'u', 2},
            {'w', 540},
            {'pokecenter_heal', 1},
            {'d', 8},
            {'w', 540},
            {'x', 15}, -- switch flame wheel to front
    {'w', 60},
    {'u', 1},
    {'w', 60},
    {'press_a', 1},
    {'w', 360},
    {'press_a', 2},
    {'w', 300},
    {'l', 2},
    {'w', 60},
    {'press_a', 1},
    {'w', 60},
    {'d', 1},
    {'press_a', 1},
    {'u', 1},
    {'press_a', 1},
    {'w', 60},
    {'press_b', 11},
    {'save', '10-BeforeCycling'},

    -- start cycle
    {'l', 5},
    {'d', 11},
    {'custom8', 4},
    {'custom9', 1},
    {'custom8', 4},
    {'custom9', 1},
    {'custom8', 4},
    {'custom9', 1},
    {'custom8', 4}, -- 16 fights // lowest 
    {'custom9', 1},
    {'custom6', 4}, 
    {'custom7', 1}, -- highest xp is now potentially cycling
    {'custom6', 4}, 
    {'custom7', 1}, -- highest xp is now guarenteed cycling // 24 total, need 32
    {'custom6', 4}, 
    {'custom7', 1},
    {'custom6', 4}, 
    {'custom7', 1}, -- min xp should be cycling now too;
    {'u', 2},
    {'d', 1},
    {'w', 30},
    {'a', 15},
    {'w', 360},
    {'a',  15}, 
    {'press_b', 12}, -- don't learn feint
    {'custom9', 1},
    {'custom10', 6},
    {'custom11', 4}, -- cycling on 
    {'u', 2},
    {'d', 1},
    {'w', 30},
    {'a', 15},
    {'w', 360},
    {'a',  15}, 
    {'w', 360},
    {'custom1', 1}, -- up
    {'u', 23}, -- align against house 
    {'w', 60},
    {'w', 60},
    {'d', 13},
    {'r', 5},
    {'u', 2},
    {'w', 540},
    {'pokecenter_heal', 1}, 
    {'d', 8}, 
    {'w', 540}, -- out of the pokecenter :)
    {'save', '11-AfterCycling'},

    {'r', 7}, -- go to mart
{'u', 10},
{'r', 3},
{'u', 2},
{'w', 540},
{'u', 5},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 360},
{'d', 9},
{'w', 30},
{'press_a', 1},
{'w', 360},
{'u', 4},
{'press_a', 1},
{'w', 360},
{'press_a', 1},
{'w', 180},
{'press_b', 13},
{'d', 5},
{'r', 2},
{'d', 1},
{'reset_start', 1},
{'press_b', 3},
{'w', 60},
{'x', 15},
{'w', 90},
{'u', 4},
{'press_b', 3},
{'l', 2},
{'d', 2},
{'w', 540},
{'d', 2},
{'r', 33},
{'u', 19},
{'l', 2},
{'w', 60},
{'use_repel', 1},
{'l', 8},
{'u', 46},
{'w', 60},
{'r', 2},
{'u', 9},
{'l', 18},
{'w', 60},
{'u', 5},
{'r', 4},
{'u', 17},
{'w', 540},
{'u', 1},
{'press_b', 26},
{'u', 1},
{'r', 4},
{'u', 2},
{'r', 5},
{'u', 9},
{'r', 5},
{'u', 3},
{'w', 60},
{'press_b', 5},
{'u', 5}, -- before fight 
{'w', 60}, -- before pachirisu fight // breakpoint
{'save', '12-BeforePachirisuFight'},

{'x', 15}, -- give cheri berry to monferno :)
{'w', 60},
{'press_a', 1},
{'w', 360},
{'r', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'d', 2},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 60},
{'press_b', 12}, -- done berrying up 
{'u', 1},
-- Double battle w/ pachirisu
--      Lowest possible level is 29
--      Cheri berry required to prevent paralysis from spark
--      Pachirisu can either spark or charm
--          - charm lowers atk by 2 stages
--          - need to KO pachirisu on turn 2 or else we can get KOed
--              - For example:
--                 - Chansey KOs wurmple, beautifly comes out, gust crits us on turn 2
--                 - By turn 3 we get gusted again and die if we are still dealing with pachirisu
--      TURN 1:
--          - Flame wheel on pachirisu 100% -> 25% at lowest
--          - We can be charmed, sparked, poison sting, string shot
--              - Either poisoned, -1 speed
--              - Either damaged from spark (23% dmg) or charmed (-2 atk stages)
--          - Total damage, 23% from spark, 12.5% from poison, 5% from poison sting
--                  - Total 40% damage taken at most
--     TURN 2:
--          - Even while charmed, mach punch will deal at least 25% damage to pachirisu
--          - Wurmple could tackle crit us, or lower speed with string shot
--              - Either -2 speed, poisoned and -1 speed, or max damage and no speed loss
--          - Pachirisu KOed
--              - If pachirisu died turn 1, we just idle here
--          - Take 7% dmg from tackle, 12.5% from poison
--              - Total 40 + 7 + 12.5 = 60% damage taken
--      TURN 3:
--          - Beautifly could be out
--              - If we are -2 speed, beautifly could outspeed us
--                  - Doesn't matter, because if we got string shot twice, we DIDNT get poison stung
--                  - So we have health to spare
--          - Flame wheel on beautifly KOs
--          - Max damage taken:
--              - 60 + 12.5 = 72.5%
--          - If beautifly outspeed:
--              - 52% from beautifly, 23% from spark
--              - 75% total, but we can't be posioned in this case
--      TURN 4:
--          - Silicoon could be out
--          - Too slow to attack us, gets flame wheeled
--          - Max damage taken:
--              - 72.5 + 12.5 = 83%
--      Fight is over
{'w', 180},
{'press_b', 23},
{'w', 1080},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 2160},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 2160},
{'press_b', 8},
{'press_a', 1},
{'l', 1},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'press_a', 1},
{'w', 2160},
{'press_a', 2},
{'w', 60},
{'press_a', 1},
{'w', 1320},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 1440},
{'press_b', 13}, -- fight over
{'save', '13-AfterPachirisuFight'},

{'u', 3},
{'r', 3},
{'u', 6},
{'w', 60},
{'press_a', 1}, -- grab paralyze heal
{'press_b', 5},
{'r', 2},
{'u', 2},
{'r', 10},
{'d', 6},
{'l', 2},
{'d', 3},
{'w', 60},
{'press_a', 1}, -- fight first abra guy
{'press_b', 6},
{'w', 1260},
{'use_move', 1}, -- flame wheel easy
{'w', 360},
{'press_b', 3},
{'r', 6},
{'d', 1},
{'w', 60},
{'press_a', 1}, -- fight second flame wheel guy
{'press_b', 6},
{'w', 1440},
{'use_move', 1}, -- flame wheel easy
{'press_b', 3},
{'l', 3},
{'d', 9},
{'r', 3},
{'d', 2},
{'w', 60},
{'x', 15}, -- use repel, reset start menu to items
{'w', 60},
{'press_a', 1},
{'w', 180},
{'l', 1},
{'w', 60},
{'l', 2},
{'w', 60},
{'l', 1},
{'w', 60},
{'l', 1},
{'w', 60},
{'press_a', 2},
{'w', 60},
{'press_b', 7},
{'d', 4},
{'r', 9},
{'u', 20},
{'r', 11},
{'d', 3},
{'r', 14},
{'u', 15},
{'l', 11},
{'u', 12},
{'r', 7},
{'w', 180},
{'press_b', 30}, -- right before leaving, get soothe bell
{'r', 4},
{'w', 60},
{'press_b', 4},
{'r', 1},
{'w', 720}, -- into eterna
{'save', '14-InEterna'},

{'r', 2},
{'d', 7},
{'r', 13},
{'d', 4},
{'r', 33},
{'d', 30},
{'r', 7},
{'w', 60},
{'press_a', 1},
{'press_b', 22}, -- talk to gardenia
{'r', 1},
{'u', 2},
{'w', 720}, -- into gym
{'u', 5},
{'r', 3},
{'w', 60},
{'press_a', 1},
{'press_b', 3},
{'w', 1080},
{'use_move', 2},
{'press_b', 21},
{'w', 1800},
{'l', 3},
{'u', 5},
{'w', 180},
{'u', 4},
{'r', 10},
{'d', 4},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_b', 6},
{'w', 1260},
{'use_move', 3},
{'w', 180},
{'press_b', 8},
{'w', 1080},
{'press_b', 9},
{'u', 4},
{'l', 15},
{'w', 60},
{'l', 3},
{'u', 6},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_b', 4},
{'w', 1080},
{'use_move', 1},
{'w', 180},
{'press_b', 9},
{'w', 1620},
{'press_b', 13},
{'d', 6},
{'r', 10},
{'u', 4},
{'u', 1},
{'u', 1},
{'w', 60},
{'u', 3},
{'w', 60}, -- in front of gardenia
{'press_a', 1},
{'press_b', 14},
{'w', 1620},
{'use_move', 1},
{'w', 180},
{'use_move', 4},
{'press_b', 70},
{'w', 120}, -- battle over
{'save', '15-BeatGardenia'},

{'d', 5},
{'w', 60},
{'d', 19},
{'w', 540},
{'l', 6},
{'u', 7},
{'r', 11},
{'d', 1},
{'w', 60},
{'press_a', 1},
{'press_b', 10},
{'l', 13},
{'u', 28},
{'w', 540},
{'pokecenter_heal', 1},
{'d', 8},
{'w', 540},
{'l', 7},
{'u', 8},
{'r', 5},
{'w', 360},
{'press_b', 9},
{'w', 720},
{'press_b', 51}, -- talk to rival
    {'u', 6},
    {'r', 4},
    {'press_a', 3}, -- pick up draco plate
    {'press_b', 15},
    {'l', 3},
    {'d', 4},
    {'l', 21},
    {'w', 600},
    {'press_b', 50}, -- talk to cynthia
    {'w', 300},
    {'l', 5},
{'d', 10}, -- go to berries
{'l', 16},
{'u', 6},
{'r', 2},
{'u', 4},
{'l', 5},
{'u', 5},
{'l', 2},
{'u', 2},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_a', 2},
{'press_b', 5},
{'l', 2},
{'u', 1},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_a', 2},
{'press_b', 10},
{'l', 2},
{'u', 1},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_a', 2},
{'press_b', 11},
{'l', 2},
{'u', 1},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_a', 2},
{'press_b', 11}, -- done grabbing berries
{'r', 5},
{'d', 6},
{'r', 5},
{'d', 10},
{'l', 13},
{'u', 4},
{'l', 13},
{'u', 8},
{'l', 4},
{'w', 540},
{'l', 10},
{'d', 4},
{'use_repel', 1},
{'d', 9},
{'r', 9},
{'d', 15},
{'l', 8}, -- can't fight psyduck :(
    {'l', 3},
    {'d', 5},
    {'w', 60},
    {'press_a', 1},
    {'press_b', 5},
    {'w', 1200},
    {'use_move', 1}, -- defeat medatite 
    {'press_b', 6},
    {'u', 4},
    {'l', 13},
    {'d', 22},
    {'r', 4},
    {'w', 360},
    {'press_b', 5},
    {'w', 360},
    {'use_move', 3}, -- defeat wurmple/dustox/cascoon
    {'w', 180},
    {'press_b', 6}, -- get ready to fight burmy guy
    {'w', 1200}, -- they know protect :(
    {'use_move', 12}, 
    {'w', 90}, -- we're done here
    {'press_b', 5},
    {'r', 5},
    {'d', 3},
    {'r', 8},
    {'u', 3},
    {'r', 4},
    {'w', 120},
    {'press_b', 4},
    {'r', 1},
    {'use_repel', 1}, -- get potion
    {'r', 5},
    {'u', 2},
    {'w', 60},
    {'press_a', 1},
    {'press_b', 8},
    {'w', 60},
    {'u', 1},
    {'r', 3},
    {'u', 34},
    {'l', 10},
    {'u', 14},
    {'l', 5},
    {'u', 3},
    {'w', 60},
    {'press_a', 1},
    {'press_b', 24}, -- talk to gardenia
    {'r', 12},
    {'d', 3},
    {'r', 4},
    {'w', 720}, -- back out of eterna forest
    {'r', 3},
    {'d', 8},
    {'r', 6},
    {'w', 180},
    {'press_b', 4},
    {'r', 6},
    {'d', 4},
    {'r', 9},
    {'d', 8},
    {'l', 7},
    {'w', 60},
    {'press_a', 1}, -- get the guard spec
    {'w', 120},
    {'press_b', 8},
    {'r', 11},
    {'u', 8},
    {'r', 21},
    {'u', 5},
    {'w', 540},
    {'pokecenter_heal', 1}, -- heal/restore pp
    {'d', 8},
    {'w', 540},
    {'l', 6},
    {'u', 7},
    {'r', 17},
    {'u', 5},
    {'w', 540}, -- into herb shop
    {'l', 2},
    {'u', 3},
    {'w', 60},
    {'press_a', 1},
    {'w', 240},
    {'press_a', 1},
    {'w', 240},
    {'d', 2},
    {'w', 60},
    {'press_a', 1},
    {'w', 360},
    {'u', 2},
    {'w', 60},
    {'press_a', 1},
    {'w', 360},
    {'press_a', 1},
    {'w', 180},
    {'press_b', 11},
    {'r', 2},
    {'d', 4},
    {'w', 540},
    {'save', '16-DoneShopping'},

    {'d', 2}, -- to route 209
    {'r', 10},
    {'d', 9},
    {'r', 29},
    {'w', 60},
    {'use_repel', 1}, -- go through grass to fight ninja boy
    {'r', 8},
    {'u', 7},
    {'w', 180},
    {'press_b', 6},
    {'w', 1260},
    {'use_move', 3}, -- level up to 32
    {'press_b', 17},
    {'use_move', 1},
    {'press_b', 8},
    {'w', 540},
    {'d', 7},
    {'r', 17},
    {'w', 1720}, -- wait for rock man to notice us
    {'press_a', 1},
    {'press_b', 11},
    {'w', 720},
    {'press_a', 1},
    {'r', 1},
    {'use_move', 3}, -- destroy him// take damage from onix
    {'press_b', 8},
    {'r', 2},
    {'u', 5},
    {'r', 2},
    {'u', 1},
    {'press_a', 5}, -- rock smashu
    {'press_b', 12},
    {'u', 3},
    {'l', 13},
    {'w', 540},
    {'press_b', 22}, -- bird lady
    {'w', 900},
    {'use_move', 2}, -- ohko
    {'press_b', 5},
    {'d', 8},
    {'r', 2},
    {'d', 3},
    {'w', 60},
    {'press_a', 1}, -- get taunt tm
    {'press_b', 11},
    {'u', 3},
    {'l', 2},
    {'u', 8},
    {'r', 13},
    {'d', 5},
    {'l', 2},
    {'d', 6},
    {'l', 2},
    {'u', 2},
    {'l', 2},
    {'w', 180},
    {'press_b', 8}, -- repel runs out
    {'l', 1},
    {'w', 180},
    {'press_b', 8}, -- if rock boy saw us on step
    {'l', 12},
    {'use_repel', 1},
    {'l', 44}, -- back to eterna
    {'u', 5},
    {'l', 4},
    {'u', 5},
    {'l', 17},
    {'d', 9},
    {'r', 5},
    {'d', 17},
    {'r', 5},
    {'w', 180},
    {'press_b', 4}, -- repel runs out again
    {'r', 4},
    {'u', 2},
    {'w', 540}, -- into the mart
    {'u', 4},
    {'w', 60},
    {'press_a', 1}, -- buy repels tyty
    {'w', 180},
    {'press_a', 1},
    {'w', 360},
    {'u', 1},
    {'d', 1},
    {'w', 60},
    {'d', 1},
    {'w', 60},
    {'d', 1},
    {'w', 60},
    {'d', 1},
    {'w', 60},
    {'d', 1},
    {'w', 60},
    {'d', 1},
    {'w', 60},
    {'d', 1},
    {'w', 60},
    {'d', 1},
    {'w', 60},
    {'d', 1},
    {'w', 60},
    {'press_a', 1},
    {'w', 180},
    {'u', 4},
    {'press_a', 1},
    {'w', 240},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 60},
    {'u', 6},
    {'press_a', 1},
    {'w', 180},
    {'u', 2},
    {'w', 60},
    {'press_a', 1},
    {'w', 240},
    {'press_a', 1},
    {'w', 180},
    {'press_b', 9}, -- bought 5 repels and 3 antidotes
    {'d', 6},
    {'w', 540},
    {'l', 4},
    {'u', 16},
    {'l', 2},
    {'u', 5},
    {'w', 720},
    {'pokecenter_heal', 1}, -- heal
    {'d', 8},
    {'w', 540},


    {'x', 15}, -- teach monferno cut
    {'w', 60},
    {'press_a', 1},
    {'w', 360},
    {'r', 1},
    {'w', 60},
    {'r', 1},
    {'w', 60},
    {'r', 1},
    {'w', 60},
    {'d', 6},
    {'w', 60},
    {'u', 2},
    {'w', 60},
    {'press_a', 1},
    {'w', 60},
    {'press_a', 1},
    {'w', 240},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 360},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'d', 1},
    {'press_a', 1},
    {'w', 180},
    {'press_b', 18},
        -- go to galactic building
        {'l', 6},
        {'u', 9},
        {'r', 6},
        {'u', 2},
        {'w', 180},
        {'press_a', 1}, -- use cut
        {'w', 240},
        {'press_a', 1},
        {'w', 180},
        {'press_b', 8},
        {'w', 360},
        {'u', 3},
        {'w', 540}, -- enter
        {'press_b', 32}, -- talk to looker
        {'u', 2}, -- go fight double trainers one at a time
        {'r', 2},
        {'u', 6},
        {'w', 60},
        {'press_a', 1}, -- fight first guy
        {'w', 60},
        {'press_b', 10},
        {'w', 900},
        {'press_a', 1},
        {'use_move', 2}, -- double OHKO
        {'press_b', 6},
        {'r', 5},
        {'u', 1},
        {'w', 60},
        {'press_a', 1}, -- fight second guy
        {'w', 60},
        {'press_b', 7},
        {'w', 900},
        {'use_move', 2}, -- double OHKO
        {'w', 180},
        {'l', 3}, -- go up stairs
        {'u', 4},
        {'l', 2},
        {'w', 540},
        {'d', 3},
        {'w', 180},
        {'press_a', 1}, -- fight loser trainer 
        {'press_b', 7},
        {'w', 1080},
        {'use_move', 1}, -- croagunk dies instantly
        {'press_b', 4},
        {'l', 2},
        {'d', 3},
        {'r', 2},
        {'d', 5},
        {'w', 60},
        {'press_a', 1}, -- pick up XSPEED (X SPEED / X-SPEED) 
        {'press_b', 10},
        {'u', 5},
        {'l', 2},
        {'u', 5},
        {'r', 3}, -- back down the stairs 
        {'w', 540},
        {'d', 8},
        {'r', 7},
        {'u', 8},
        {'l', 2}, -- up the right stairs
        {'w', 540},
        -- breakpoint
        {'d', 3}, -- go to wrong stairs
        {'r', 2},
        {'d', 5},
        {'l', 2},
        {'d', 4},
        {'r', 14},
        {'u', 10},
        {'l', 4},
        {'w', 540},
        {'d', 3}, -- talk to trainer
        {'w', 360},
        {'press_b', 9},
        {'w', 1080},
        {'use_move', 2},
        {'press_b', 28}, -- hit level 33 (jupiter has no chance)
        {'use_move', 2}, -- might get fake-out'd by the lvl 16 glameow 
        {'press_b', 7},
        {'l', 2},
        {'d', 5},
        {'r', 3},
        {'w', 60},
        {'press_a', 1}, -- grab xspecial (x special x-special)
        {'press_b', 8},
        {'l', 3}, -- back down the stairs
        {'u', 6},
        {'r', 3},
        {'w', 540},
        {'d', 10},
        {'l', 7},
        {'u', 5},
        {'l', 1},
        {'w', 60},
        {'press_a', 1}, -- fight trainer
        {'press_b', 11},
        {'w', 1080},
        {'use_move', 1}, -- KO glameow lvl 19 
        {'press_b', 10},
        {'u', 6},
        {'l', 2},
        {'w', 720}, -- go upstairs
        {'d', 9},
        {'r', 18},
        {'u', 7},
        {'w', 180},
        {'press_b', 10}, -- fight kadabra guy
        {'w', 1080},
        {'use_move', 2}, -- gg
        {'press_b', 7},
        {'d', 7},
        {'l', 6},
        {'u', 9},
        {'l', 2}, -- go up stairs
        {'w', 540}, -- enter final floor
        {'d', 10}, -- go to jupiter
        {'r', 13},
        {'u', 7},
        {'l', 1},
        {'w', 30}, -- wait by jupiter
        {'save', '17-BeforeJupiter'},

        {'x', 15}, -- switch oran berry on (we might have a cheri berry still on monferno)
        {'w', 60},
        {'u', 1},
        {'w', 30},
        {'press_a', 1},
        {'w', 180},
        {'press_a', 1},
        {'w', 60},
        {'d', 4},
        {'press_a', 2},
        {'w', 360},
        {'r', 1},
        {'w', 60},
        {'d', 3},
        {'w', 60},
        {'press_a', 1},
        {'w', 180},
        {'press_a', 12}, -- give monferno oran berry (log this in item tracker)
        {'press_b', 10},
        {'x', 15}, -- use potion in case we got fake-out by glameow (time save, no pokecenter backtrack)
        {'w', 60},
        {'d', 1},
        {'press_a', 1}, 
        {'w', 540},
        {'l', 2},
        {'w', 60},
        {'l', 1},
        {'w', 60},
        {'l', 2},
        {'w', 60},
        {'press_a', 2},
        {'w', 180},
        {'press_a', 2},
        {'press_b', 9}, -- done using potion (track potion use in tracker)
        {'press_a', 1}, -- fight jupiter
        {'w', 60},
        {'press_b', 12}, 
        {'w', 900}, -- jupiter fight begins
    -- Lowest hp -> 10 // Seed: 1303324 Calm nature Monferno lvl 33
    -- zubat (21) is KOed in 1 hit by lvl 33 monferno flame wheel regardless of stats
        -- lvl 32 monferno does NOT OHKO zubat, which opens us up to wing attack
        -- super effective wing attack basically makes the fight unwinnable at 32
    -- Ineffective strategies 
        -- Pecha berry opens up gentle (-def) monfernos to a triple crit death even with energy root
        -- Taunt opens us up to fourth turn accuracy decrease (smokescreen) which makes us lose
            -- only way to avoid is heal stalling which would cost too much money
        -- Guard spec but no heal and we die to poison + crits
    -- Effective strategy
        -- Use Guard spec on first turn vs skuntank
        -- Attack twice
        -- heal with energy root
        -- attack twice more 
            -- effective health of skuntank is 103 with the sitrus berry
            -- flame wheel on low-atk monferno deals 31 dmg, low-def deals 34
            -- needs 4 turns to KO either way in worst case (which happens in quite a few seeds)
    {'press_a', 1},
    {'use_move', 1},
    {'press_b', 3},
    {'d', 1},
    {'press_a', 1},
    {'w', 60},
    {'r', 1},
    {'d', 1},
    {'press_a', 1},
    {'w', 60},
    {'r', 1},
    {'w', 60},
    {'press_a', 2},
    {'u', 1},
    {'w', 1440},
    {'u', 1},
    {'use_move', 2},
    {'d', 1},
    {'press_a', 1},
    {'w', 60},
    {'u', 1},
    {'l', 1},
    {'press_a', 1},
    {'w', 60},
    {'d', 1},
    {'press_a', 1},
    {'w', 60},
    {'press_a', 1},
    {'use_move', 1},
    {'press_b', 21},
    {'u', 1},
    {'w', 1260},
    {'u', 1},
    {'use_move', 2},
    {'press_b', 40},
    -- fight over, use an antidote just in case
    {'x', 15},
    {'w', 30},
    {'press_a', 1},
    {'w', 360},
    {'u', 1},
    {'d', 5},
    {'press_a', 2},
    {'w', 180},
    {'press_a', 1},
    {'w', 60},
    {'press_a', 2},
    {'w', 60},
    {'press_a', 1},
    {'press_b', 10},
    -- done using antidote
        -- go get the other items
        {'u', 5},
        {'w', 60},
        {'d', 3},
        {'r', 6},
        {'w', 60},
        {'press_a', 1},
        {'press_b', 9},
        {'l', 7},
        {'d', 8},
        {'l', 12},
        {'u', 10},
        {'r', 2},
        {'w', 540},
        {'d', 9},
        {'r', 7},
        {'u', 9},
        {'l', 2},
        {'w', 540},
        {'d', 3},
        {'w', 60},
        {'press_a', 1}, -- blue shard
        {'press_b', 8},
        {'r', 2},
        {'d', 1},
        {'w', 60},
        {'press_a', 1}, -- revive
        {'press_b', 8},
        -- items acquired, time to leave
        {'l', 2},
        {'u', 3},
        {'r', 2},
        {'w', 540},
        {'d', 9},
        {'l', 19},
        {'u', 9},
        {'r', 2},
        {'w', 540},
        {'d', 10},
        {'l', 7},
        {'u', 4},
        {'r', 2},
        {'u', 5},
        {'l', 2},
        {'u', 3},
        {'r', 2},
        {'w', 540},
        {'d', 8},
        {'l', 10},
        {'d', 4},
        {'w', 720}, -- outside of the galactic building
        {'save', '18-AfterJupiter'},

        {'r', 4}, -- go get thief TM
        {'u', 6},
        {'r', 5},
        {'w', 60},
        {'press_a', 1},
        {'w', 180},
        {'press_a', 3},
        {'press_b', 4},
        {'w', 60},
        {'r', 3},
        {'d', 2},
        {'r', 12},
        {'w', 60},
        {'press_a', 1}, -- acquired TM
        {'press_b', 9},
        {'l', 12},
        {'u', 2},
        {'l', 8},
        {'d', 6},
        {'l', 4},
        {'d', 1},
        {'w', 60},
        {'press_a', 4},
        {'press_b', 3}, -- back by galactic building
    {'w', 60},
    {'d', 5}, -- go to bike shop
    {'l', 5},
    {'d', 10},
    {'r', 6},
    {'d', 8},
    {'r', 3},
    {'w', 540},
    {'press_a', 13}, -- talk to cynthia
    {'press_b', 7},
    {'w', 180},
    {'r', 3},
    {'u', 3},
    {'w', 540},
    {'u', 4},
    {'l', 5},
    {'u', 2},
    {'w', 60},
    {'press_a', 1},
    {'press_b', 23}, -- acquire bike
    {'r', 5},
    {'d', 7},
    {'w', 540},
    {'d', 1},
    {'l', 5},
    {'u', 8},
    {'l', 2},
    {'u', 5},
    {'w', 540},
    {'pokecenter_heal', 1}, -- heal from jupiter fight
    -- togepi egg acquired, but it will hatch naturally exactly 2805 steps from now
    -- so we can just deal with it naturally, no need to worry about rng budding in
    {'d', 8}, -- out of center
    {'w', 540},
    {'d', 1},
    {'r', 6},
    {'u', 3},
    {'w', 540},
    {'r', 3},
    {'u', 3},
    {'press_a', 2},
    {'press_b', 32}, -- get explorer kit just to advance 
    {'l', 3},
    {'d', 4},
    {'w', 540},
    {'d', 2},
    {'l', 7},
    {'d', 32},
    {'l', 1},
    {'d', 7},
    {'w', 540},
    {'d', 1},
    {'l', 1},
    {'w', 60},
    {'press_a', 1},
    {'press_b', 24}, -- get EXP SHARE
    {'u', 3},
    {'w', 540}, -- go to eterna forest shortcut
    {'u', 36},
    {'l', 33},
    {'u', 4},
    {'l', 10},
    {'d', 7},
    {'l', 2},
    {'u', 4},
    {'l', 16},
    {'d', 7},
    {'w', 30},
    
    {'press_a', 1}, -- grab some berries and items
    {'w', 120},
    {'press_a', 1},
    {'w', 60},
    {'press_b', 8},
    {'d', 3},
    {'r', 3},
    {'d', 15},
    {'l', 17},
    {'u', 2},
    {'w', 60},
    {'press_a', 1},
    {'w', 60},
    {'press_a', 2},
    {'press_b', 6},
    {'l', 2},
    {'u', 1},
    {'w', 60},
    {'press_a', 3},
    {'press_b', 9},
    {'l', 2},
    {'u', 1},
    {'w', 60},
    {'press_a', 1},
    {'w', 60},
    {'press_a', 1},
    {'w', 60},
    {'press_a', 1},
    {'press_b', 8},
    {'l', 2},
    {'u', 1},
    {'w', 60},
    {'press_a', 1},
    {'w', 60},
    {'press_a', 2},
    {'press_b', 9},
    {'d', 2},
    {'r', 15},
    {'d', 6},
    {'l', 11},
    {'d', 11},
    {'l', 6},
    {'w', 60},
    {'press_a', 1},
    {'press_b', 7},
    {'r', 15},
    {'u', 2},
    {'w', 60},
    {'press_a', 1},
    {'press_b', 9},
    {'d', 2},
    {'l', 10},
    {'u', 10}, -- done grabbing items and berries
    {'r', 6}, -- back to eterna mart
    {'u', 2},
    {'r', 7},
    {'u', 6},
    {'r', 5},
    {'u', 14},
    {'l', 4},
    {'u', 3},
    {'r', 2},
    {'u', 10},
    {'r', 19},
    {'u', 2},
    {'r', 8},
    {'d', 4},
    {'r', 33},
    {'d', 16},
    {'r', 6},
    {'u', 2},
    {'w', 540}, -- enter mart
    
    {'u', 4}, -- buy 10 repels
    {'w', 60},
    {'press_a', 1},
    {'w', 60},
    {'press_a', 1},
    {'w', 180},
    {'d', 9},
    {'w', 60},
    {'press_a', 1},
    {'w', 180},
    {'u', 9},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'w', 120},
    {'press_b', 11},
    
    {'l', 2}, -- buy 4 nest balls
    {'u', 1},
    {'w', 60},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'w', 180},
    {'d', 3},
    {'w', 60},
    {'press_a', 1},
    {'w', 180},
    {'u', 3},
    {'w', 60},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'press_b', 9},
    {'r', 2},
    {'d', 6}, -- leave mart
    {'w', 360},

    {'l', 6}, -- go buy some energy roots
    {'u', 16},
    {'l', 6},
    {'u', 11},
    {'r', 18},
    {'u', 4},
    {'w', 540},
    {'l', 2},
    {'u', 3},
    {'w', 60},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'w', 120},
    {'d', 2},
    {'w', 60},
    {'press_a', 1},
    {'w', 180},
    {'u', 4},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 60},
    {'press_b', 11}, -- bought 4 energy roots
    {'r', 2},
    {'d', 4},
    {'w', 540}, -- back outside in eterna
    -- 2097 steps left until togepi hatches
    {'d', 1},
    {'l', 16},
    {'d', 10},
    {'r', 6},
    {'u', 1},
    {'w', 60},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'w', 60},
    {'r', 2},
    {'d', 3},
    {'r', 11},
    {'l', 1}, -- setup to start // 43 steps taken
    -- 2054 to go on 45 step intervals = ~46 cycles
    {'press_b', 1}, -- switch to higher gear
    {'run_daycare', 36}, -- hatch togepi
    {'save', '19-HatchedTogepi'},

    {'w', 60}, -- name togepi 
    {'press_a', 1},
    {'w', 1080},
    {'press_a', 1},
    {'w', 180},
    {'d', 1},
    {'r', 9},
    {'d', 1},
    {'press_a', 1},
    {'u', 2},
    {'l', 2},
    {'press_a', 1},
    {'d', 1},
    {'r', 4},
    {'press_a', 1},
    {'l', 3},
    {'d', 1},
    {'press_a', 1},
    {'l', 2},
    {'press_a', 1},
    {'l', 1},
    {'u', 1},
    {'l', 1},
    {'press_a', 1},
    {'d', 1},
    {'r', 8},
    {'press_a', 1},
    {'u', 2},
    {'r', 1},
    {'press_a', 1},
    {'w', 360}, -- done naming thomas
    {'rf', 500}, -- align against wall
    {'w', 60}, -- need to allow settling time
    {'l', 3}, -- leave eterna (for now)
    {'d', 3},
    {'w', 60},
    {'press_a', 2},
    {'w', 180},
    {'u', 5},
    {'l', 11},
    {'d', 39},
    {'w', 540}, -- enter entrance to bike route
    {'x', 15}, -- register bike to Y button
    {'w', 60},
    {'press_a', 1},
    {'w', 180},
    {'l', 1},
    {'w', 60},
    {'l', 2},
    {'w', 60},
    {'d', 5},
    {'press_a', 1},
    {'w', 60},
    {'d', 1},
    {'press_a', 1},
    {'press_b', 8},
    {'x', 15}, -- equip EXP share on thomas
    {'w', 60},
    {'u', 1},
    {'press_a', 1},
    {'w', 180},
    {'r', 1},
    {'press_a', 1},
    {'d', 2},
    {'press_a', 2},
    {'w', 180},
    {'r', 1},
    {'w', 60},
    {'d', 13},
    {'u', 2},
    {'press_a', 1},
    {'w', 60},
    {'press_b', 9}, -- done 
    {'y', 30}, -- equip bike
    {'d', 11}, -- shimmy into route 206
    {'w', 540},
    {'d', 16},

    {'l', 3},
    {'d', 2},
    {'w', 180},
    {'press_a', 1},
    {'press_b', 3},
    {'w', 1000},
    {'press_a', 1},
    {'use_move', 1},
    {'press_a', 40},
    {'uf', 240},
    {'press_a', 1},
    {'uf', 240}, -- staring at sign
    {'r', 1},
    {'w', 30},
    {'r', 2},
    {'u', 4},
    {'w', 540},
    {'u', 10},
    {'w', 540},
    {'y', 30}, -- off bike
    {'u', 36},
    {'r', 2},
    {'u', 4},
    {'w', 540},
    {'pokecenter_heal', 1}, -- heal
    {'d', 8},
    {'w', 540}, -- go back to bike route
    {'r', 1},
    {'w', 60},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'w', 60},
    {'d', 40}, -- shimmy down
    {'w', 540},
    {'d', 10},
    {'w', 540},
    {'d', 16},
    {'d', 1},
    {'w', 180}, -- bike into guy
    {'press_a', 1},
    {'w', 60},
    {'press_a', 2},
    {'w', 900},
    {'press_a', 1},
    {'r', 1},
    {'d', 1},
    {'use_move', 2},
    {'w', 720},
    {'press_a', 6},
    {'w', 900},
    {'lf', 60},
    {'bike_slide', 10},
    {'lf', 300}, -- wait for her to see us (or we talked to her)
    {'bike_slide', 1}, -- retry, if we wait correct time (or close to it) it should work this time if we bumped the previous try
    {'press_a', 1}, -- fight starly girl
{'w', 60},
{'press_a', 1},
{'w', 1440},
{'use_move', 1}, -- level up togepi and monferno
{'press_b', 25}, -- get through prompts
{'use_move', 1},
{'press_b', 25},
{'use_move', 1},
{'w', 540}, -- finish fight
{'press_a', 2}, -- togepi levels up again
{'w', 1080}, -- let bike glide down to next trainer (bump)
{'uf', 360},
{'rf', 120},
{'uf', 360},
{'w', 30},
{'l', 2},
{'u', 3},
{'w', 360},
{'u', 12},
{'w', 540},
{'uf', 360},
{'w', 15},
{'y', 30}, -- unequip bike 
{'r', 2},
{'u', 2},
{'w', 540},
{'pokecenter_heal', 1},
{'d', 8},
{'w', 540},
{'d', 39},
{'w', 540},
{'y', 30}, -- equip bike
{'d', 3},

{'d', 7},
{'w', 540},
{'d', 2},
{'l', 5},
{'d', 16},
{'w', 1080}, -- in position vs next trainer
{'press_a', 1}, -- enter battle
{'w', 60},
{'press_a', 2},
{'w', 1260},
{'use_move', 1}, -- flame wheel the shinx (OHKO)
{'w', 1260}, -- gg biker man
{'lf', 60}, -- hug wall, gravity will take us next trainer
{'w', 300},
{'press_a', 1}, -- talk to her

{'w', 180},
{'press_a', 1},
{'w', 60},
{'press_a', 2},
{'w', 1080},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'d', 1},
{'w', 60},
{'use_move', 2}, -- potential KO in one turn by crit but togepi level up prompt will eat inputs, so no worries
{'w', 120},
{'press_b', 12}, -- togepi levels up
{'w', 720},
{'press_a', 1},
{'w', 60},
{'u', 1},
{'l', 1},
{'w', 60},
{'use_move', 1},
{'w', 180},
{'press_a', 1}, -- togepi levels up again
{'w', 60},
{'press_a', 1},
{'w', 720},
{'rf', 120},
{'w', 300},
{'press_a', 1},
{'w', 1370},
{'use_move', 1}, -- defeat pikachu
{'w', 720},
{'lf', 120},
{'w', 90},
{'r', 3}, -- scoot over to exit
{'d', 2},
{'w', 540},
{'d', 12},
{'w', 540}, -- out of bike route
{'save', '21-OutOfBikeRoute'},

}

client.unpause()
client.unpause_av()

m.executeOrders(a)
client.pause_av()
client.pause()


================================================
FILE: commands/3.lua
================================================
package.path = "./commands/?.lua;"
console.clear()
movement = loadfile('movement.lua')
m = movement()

scriptName = "Script3"

custom1 = {
    {'w', 44},
    {'spin_fast', 50},
    {'w', 600},
    {'l', 4},
    {'u', 4},
    {'a', 30},
    {'w', 30},
    {'a', 30},
    {'w', 1000},
    {'press_b', 1},
    {'w', 300},
    {'press_b', 1},
    {'w', 300},
    {'u', 1}, -- reset
    {'w', 16},
    {'l', 1}, -- align
    {'w', 16},
}
custom2 = {
    {'w', 44},
    {'spin_fast', 50},
    {'w', 600},
    {'l', 4},
    {'u', 4},
    {'a', 30},
    {'w', 30},
    {'r', 1},
    {'w', 30},
    {'a', 30},
    {'w', 1000},
    {'press_b', 1},
    {'w', 300},
    {'press_b', 1},
    {'w', 300},
    {'u', 1}, -- reset
    {'w', 16},
    {'l', 1}, -- align
    {'w', 16},
}
custom3 = {
    {'grass_cycle', 1}, -- go back to mums house
    {'l', 1},
    {'grass_cycle', 1},
    {'l', 1},
    {'w', 60},
    {'d', 12},
    {'w', 540},
    {'d', 9},
    {'r', 34},
    {'d', 34},
    {'r', 4},
    {'u', 2},
    {'w', 540},
    {'u', 2},
    {'r', 1},
    {'w', 60},
    {'press_a', 1},
    {'press_b', 1}, -- done healing
    {'w', 90},
    {'press_b', 1}, -- done healing
    {'w', 90},
    {'press_b', 1}, -- done healing
    {'w', 90},
    {'press_b', 1}, -- done healing
    {'w', 90},
    {'w', 60},
    {'d', 4},
    {'w', 540},
    {'l', 4},
    {'u', 34},
    {'l', 34},
    {'u', 11},
    {'w', 540},
    {'u', 10},
    {'r', 2},
    {'w', 60}, -- back to verity
}
custom4 = {
    {'custom1', 30},
    {'custom2', 20},
    {'custom3', 1},
}
-- fantina gym puzzle first step
custom5 = {
    {'rf', 2400}, -- hold right until we're guarenteed against the side
    {'uf', 4000}, -- hold up until we're guarenteed through the door & through the 
}
-- fantina gym puzzle solver
custom6 = {
    {'custom5', 1},
   
    {'w', 60},
    {'l', 3},
    {'u', 3},
    {'l', 2},
    {'u', 4},
    {'w', 60},
    {'r', 2},
    {'d', 3},
    {'w', 60},
    {'r', 2},
    {'u', 3},
    {'l', 3},
    {'w', 60},
    {'r', 3},
    {'u', 4},
    {'w', 60},
    {'r', 2},
    {'d', 3},
    {'w', 60},
    {'r', 13},
    {'u', 7},
    {'w', 60},
    {'l', 2},
    {'d', 3},
    {'w', 60},
    {'l', 3},
    {'u', 5},
    {'w', 360},
    {'u', 2}, -- realign in first room
    {'w', 540},
    {'r', 8},
    {'d', 7},
    {'w', 60},
    {'l', 8},
    {'u', 3},
    {'w', 30},
}
-- eevee friendship reduction
custom7 = {
    {'w', 30},
    {'l', 1}, --realign
    {'w', 16},
    {'spin_fast', 50},
    {'w', 900},
    {'l', 2},
    {'u', 2},
    {'use_move', 1},
    {'l', 1}, -- realign on teleport
    {'w', 30}, -- bump settling
    {'d', 1},
    {'r', 1},
    {'use_move', 1}, -- run away
    {'press_b', 6},
    {'x', 15},
    {'w', 15},
    {'a', 60},
    {'w', 180},
    {'d', 3}, -- use energypowder
    {'u', 1},
    {'press_a', 2},
    {'w', 180},
    {'press_a', 1},
    {'press_b', 11},

}
-- use full heal or bite
custom8 = {
    {'d', 1}, -- go to bag
    {'press_a', 1},
    {'l', 2},
    {'u', 2},
    {'d', 1}, -- go to status healers
    {'press_a', 1}, -- open
    {'d', 8}, -- align against bottom
    {'u', 1}, -- find heal powder
    {'r', 1},
    {'press_a', 2}, -- use 
    {'w', 360}, -- let poke menu open
    {'press_a', 1}, -- select lead 
    {'w', 1440}, -- wait for either heal to happen, and then enemy takes its turn, or nothing occurs and we're stuck
    {'press_b', 1}, -- exit menu on seeds that didn't heal
    {'w', 60},
    {'r', 1}, -- align to "RUN" option from "BAG" option
    {'d', 1}, -- align cursor to "return" button on bag menu
    {'press_a', 1}, -- return to command select screen and simultaneously attempt to run from battle in scenarios that have already taken this turn
    {'w', 60},
    {'u', 1}, -- from BAG we go to FIGHT, from RUN we stay on RUN, maintaining desync
    {'press_a', 1}, -- unnecessary
    {'use_move', 1}, -- use previously used move, change here if we want to use a different move
    {'l', 2},
    {'u', 2}, -- realign back on fight, seeds synced back up on the same turn number
    
}
-- use energy root or bite
custom9 = {
    {'d', 1}, -- same as above, with minor changes
    {'press_a', 1},
    {'l', 2},
    {'u', 2}, -- no down input (remain aligned on top left, for medicine)
    {'press_a', 1},
    {'d', 8},
    {'u', 2}, -- path to energy root location
    {'l', 1},
    {'press_a', 2},
    {'w', 360},
    {'press_a', 1},
    {'w', 1440},
    {'press_b', 1},
    {'w', 60},
    {'r', 1},
    {'d', 2},
    {'press_a', 1},
    {'w', 60},
    {'u', 1},
    {'press_a', 1},
    {'use_move', 1},
    {'l', 2},
    {'u', 2}, -- realign
}
-- do gastly training
custom10 = {
    {'w', 30},
    {'spin_fast', 112}, -- 112 spins to satisfy seed 152570095
    {'w', 900}, -- wait for battle to start in worst seed
    {'l', 3},
    {'u', 3}, -- realign cursor
    {'use_move', 1}, -- flame wheel the gastly
    {'press_b', 20}, -- we can press b freely since gastly won't be hitting the stopping rule this cycle no matter what
    {'d', 1}, --realign on the stair 
}
custom11 = {
    {'w', 30},
    {'spin_fast', 112}, -- 112 spins to satisfy seed 152570095
    {'w', 900}, -- wait for battle to start in worst seed
    {'l', 3},
    {'u', 3}, -- realign cursor
    {'press_a', 1},
    {'w', 200},
    {'press_a', 1},
    {'w', 200},
    {'w', 1200},
    {'press_b', 1}, -- careful on the b inputs so we don't prevent evolution
    {'w', 360}, 
    {'press_b', 1},
    {'w', 360},
    {'d', 1}, --realign on the corner 
}
a = {
    {'df', 360},
    {'w', 30},
    {'y', 30}, -- no more bike
    {'r', 5},
    {'d', 2}, -- down slope
    {'w', 60},
    {'d', 4},
    {'l', 8},
    {'d', 34}, -- go to oreburgh center
    {'r', 5},
    {'u', 2},
    {'w', 540},
    {'pokecenter_heal', 1},
    {'d', 8},
    {'w', 540},
    {'l', 5},
    {'u', 33},
    {'r', 8},
    {'u', 1},
    {'y', 30},
    {'uf', 360}, -- back up slope
    {'w', 60},
{'y', 30}, -- dismount
{'d', 3}, -- go to pick the berries
{'l', 6},
{'u', 6},
{'l', 6},
{'u', 5},
{'w', 60},
{'press_a', 4},
{'w', 60},
{'press_a', 2},
{'press_b', 5},
{'l', 2},
{'u', 1},
{'press_a', 7},
{'press_b', 7},

{'d', 6}, -- go to camper anthony
{'r', 10},
{'d', 17},
{'r', 13},
{'d', 4},
{'r', 4},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 3},
{'w', 1140},
{'press_a', 1},
{'w', 60},
{'r', 1},
{'d', 1},
{'w', 60},
{'use_move', 2}, -- rock smash his chimchar.  Damage here forces trip to pokecenter if we wanna fight shorts boy next
{'press_b', 15},

{'l', 14}, -- back to the slope
{'d', 3}, -- down we go
{'w', 60},
{'d', 5},
{'l', 8},
{'d', 33},
{'r', 5},
{'u', 2},
{'w', 540},
{'pokecenter_heal', 1}, -- heal up
{'d', 8},
{'w', 540},
{'l', 8}, -- breakpoint // go to oreburgh gate
{'d', 6},
{'l', 17},
{'u', 2},
{'l', 13},
{'u', 13},
{'l', 12},
{'w', 540}, -- done
{'x', 15}, -- use repel
{'w', 60},
{'d', 1},
{'press_a', 1},
{'w', 180},
{'u', 18},
{'w', 60},
{'press_a', 2},
{'press_b', 11}, -- done with that

{'l', 15},
{'u', 9},
{'l', 2},
{'u', 3},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_a', 2},
{'press_b', 4},
{'w', 360}, -- wait for rock smash to end
{'u', 7},
{'r', 11},
{'w', 540},

{'r', 2}, -- go get brick break
{'d', 7},
{'r', 3},
{'press_a', 8},
{'w', 360},
{'r', 3},
{'u', 2},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 3},
{'w', 120},
{'u', 3},
{'r', 4},
{'d', 4},
{'w', 60},
{'d', 2},
{'l', 1},
{'w', 60},
{'press_a', 8},
{'w', 60},
{'d', 3},
{'w', 60},
{'d', 2},
{'l', 3},
{'d', 3},
{'l', 6},
{'u', 7},
{'l', 4},
{'w', 60},
{'press_a', 8},
{'w', 180},
{'l', 4},
{'w', 60},
{'press_a', 8},
{'w', 180},
{'l', 4},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 8},
{'w', 180},
{'l', 3},
{'w', 60},
{'press_b', 3},
{'use_repel', 1},

{'uf', 4000},
{'w', 60},
{'r', 5},
{'d', 1},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_b', 5},
{'d', 2},
{'w', 60},
{'y', 30},
{'w', 30},
{'lf', 360},
{'w', 60},
{'y', 30},
{'w', 60},
{'u', 3},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_b', 5},
{'d', 8},
{'r', 5},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 9},
{'w', 60},
{'l', 5},
{'w', 30},
{'y', 30},
{'w', 60},
{'rf', 360},
{'y', 30},
{'w', 60},
{'u', 6},
{'r', 14},
{'u', 10},
{'l', 4},
{'w', 540},
{'l', 9},
{'d', 6},
{'w', 60},
{'press_a', 10},
{'d', 6},
{'r', 2},
{'d', 6},
{'w', 60},
{'press_b', 4},
{'use_repel', 1},
{'d', 3},
{'r', 15},
{'u', 2},
{'r', 3},
{'w', 540},
{'r', 10},
{'d', 11},
{'r', 13},
{'d', 4},
{'r', 19},
{'u', 31},
{'w', 60},
{'press_b', 4},
{'u', 9},
{'r', 9},
{'u', 1},
{'w', 60},
{'y', 30},
{'w', 60},
{'uf', 360},
{'w', 30}, -- waiting in rt 206
{'save', '01-BrickBreakAcquired'},

{'y', 30}, -- off bike
{'w', 60},
{'d', 18},
{'r', 5},
{'d', 9},
{'r', 9},
{'w', 60},
{'x', 15}, -- learn brick break 
{'w', 60},
{'press_a', 1},
{'w', 180},
{'r', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'u', 16},
{'w', 60},
{'d', 1},
{'w', 60},
{'press_a', 2},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1}, -- goodbye taunt :(
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 240},
{'d', 2},
{'press_a', 1},
{'w', 60},
{'press_b', 15},

    {'d', 2}, -- deal with shorts boy
{'r', 7},
{'d', 2},
{'w', 540},
{'press_b', 5},
{'w', 1140},
{'press_a', 1},
{'w', 60},
{'d', 1},
{'w', 60},
{'use_move', 1},
{'d', 1},
{'w', 60},
{'press_a', 1},
{'w', 540},
{'use_move', 1},
{'w', 60},
{'press_b', 10},
{'press_a', 1},
{'w', 60},
{'u', 2},
{'use_move', 5},
{'press_b', 5}, -- shorts boy defeated
{'u', 2}, -- go fight rock man
{'r', 7},
{'u', 6},
{'l', 11},
{'d', 2},
{'w', 120},
{'l', 1},
{'press_a', 7},
{'w', 1080},
{'press_a', 1},
{'d', 1},
{'use_move', 1},
{'press_b', 11},
{'w', 180},
{'use_move', 1},
{'press_b', 8},
{'w', 360},
{'use_move', 1},
{'w', 900},
{'press_a', 2}, -- time to learn yawn on togepi
{'w', 900},
{'press_a', 1},
{'w', 360},
{'d', 2},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 900},
{'press_b', 15},
{'use_move', 1}, -- finished with rock man
{'press_b', 5},
{'d', 10}, -- grab revive and rare candy
{'r', 3},
{'w', 60},
{'press_a', 1},
{'press_b', 5},
{'l', 3},
{'u', 12},
{'l', 7},
{'w', 60},
{'press_a', 1},
{'press_b', 7},
{'r', 9},
{'d', 2},
{'r', 9},
{'d', 6},
{'l', 15},
{'u', 2},
{'l', 7},
{'u', 14},
{'l', 5},
{'u', 9},
{'l', 3},
{'d', 6},
{'l', 12}, -- go grab berries (oran + cheri)
{'u', 2},
{'w', 60},
{'press_a', 5},
{'press_b', 6},
{'l', 2},
{'u', 1},
{'w', 60},
{'press_a', 4},
{'press_b', 7},
{'l', 2},
{'u', 1},
{'w', 60},
{'press_a', 5},
{'press_b', 7},
{'l', 2},
{'u', 1},
{'w', 60},
{'press_a', 6},
{'press_b', 6}, -- done grabbing berries
{'save', '02-GoToWayward'},

{'r', 4}, -- go to wayward
{'d', 2},
{'r', 11},
{'u', 12},
{'r', 9},
{'u', 7},
{'w', 60},
{'press_a', 7},
{'w', 360},
{'u', 9},
{'l', 2},
{'u', 3},
{'r', 2},
{'u', 2},
{'r', 1},
{'w', 60},
{'press_a', 6},
{'w', 540},
{'r', 1},
{'w', 60},
{'press_a', 1}, -- grab pp up
{'press_b', 9},
{'l', 2},
{'u', 3},
{'w', 60},
{'x', 15}, -- apply repel
{'w', 60},
{'press_a', 1},
{'w', 540},
{'l', 1},
{'w', 60},
{'l', 1},
{'w', 60},
{'l', 1},
{'w', 60},
{'u', 20},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'press_b', 12}, -- done applying repel
{'l', 2}, -- go to rock man
{'u', 29},
{'r', 5},
{'u', 18},
{'w', 60},
{'press_a', 1},
{'press_b', 5},
{'u', 4},
{'l', 3},
{'u', 5},
{'r', 3},
{'u', 5},
{'l', 4},
{'w', 720},
{'d', 1},
{'press_a', 1},
{'press_b', 14},
{'w', 1440}, -- deal with rock man
{'press_a', 1},
{'d', 1},
{'use_move', 1},
{'press_b', 9},
{'use_move', 1},
{'press_b', 15},
{'l', 2}, -- go get rawst berries
{'d', 3},
{'r', 2},
{'d', 11},
{'l', 15},
{'u', 2},
{'l', 3},
{'u', 3},
{'press_b', 4},
{'u', 1},
{'press_b', 3},
{'l', 2},
{'press_b', 4},
{'u', 3},
{'w', 60},
{'press_a', 7},
{'press_b', 7},
{'l', 2},
{'u', 1},
{'w', 60},
{'press_a', 6},
{'press_b', 7}, -- done grabbing rawst berries
    {'r', 2}, -- go into wayward
    {'d', 3},
    {'r', 2},
    {'d', 3},
    {'r', 14},
    {'use_repel', 1},
    {'r', 3},
    {'u', 10},
    {'l', 3},
    {'u', 4},
    {'l', 2},
    {'u', 5},
    {'r', 4},
    {'u', 9},
    {'l', 2},
    {'u', 2},
    {'w', 600}, -- at wayward entrance
    {'u', 11}, -- go get escape rope
    {'l', 3},
    {'w', 60},
    {'press_a', 6},
    {'w', 180},
    {'l', 1},
    {'u', 14},
    {'l', 3},
    {'w', 60},
    {'press_a', 7},
    {'w', 180},
    {'l', 1},
    {'u', 14},
    {'l', 9},
    {'w', 60},
    {'press_a', 7},
    {'w', 180},
    {'l', 1},
    {'u', 14},
    {'r', 3},
    {'w', 240},
    {'press_b', 2},
    {'use_repel', 1},
    {'r', 3},
    {'w', 60},
    {'press_a', 6},
    {'w', 180},
    {'r', 15},
    {'d', 13},
    {'l', 1},
    {'w', 60},
    {'press_a', 1},
    {'w', 180},
    {'press_b', 4}, -- done getting escape rope
    {'r', 10}, -- go to camper trainers
    {'d', 14},
    {'w', 60},
    {'press_a', 5},
    {'w', 180},
    {'d', 1},
    {'r', 20},
    {'d', 1},
    {'w', 60}, -- ready to battle
    {'w', 60},
    {'press_a', 1},
    {'w', 60},
    {'press_a', 1},
    {'w', 60},
    {'press_a', 1},
    {'w', 1260},
    {'use_move', 1}, -- KO hoot hoot
    {'press_b', 9},
    {'r', 5},
    {'d', 1},
    {'w', 60},
    {'press_a', 1},
    {'w', 60},
    {'press_a', 1},
    {'w', 60},
    {'press_a', 2},
    {'w', 1260}, -- enter other battle
    {'press_a', 1},
    {'w', 60},
    {'d', 1},
    {'w', 60},
    {'press_a', 1}, -- use brick break
    {'w', 1000},
    {'press_b', 10},
    {'w', 60},
    {'press_a', 1},
    {'u', 1},
    {'w', 60},
    {'use_move', 1},
    {'press_b', 10}, -- done fighting silly trainers
    {'l', 21}, -- go to gible guy
    {'d', 8},
    {'w', 60},
    {'press_b', 3},
    {'use_repel', 1},
    {'d', 6},
    {'w', 60},
    {'press_a', 6},
    {'w', 180},
    {'d', 1},
    {'r', 10},
    {'d', 12},
    {'w', 60},
    {'press_a', 5},
    {'w', 180},
    {'d', 1},
    {'r', 16},
    {'u', 14},
    {'r', 11},
    {'d', 9},
    {'w', 60}, -- at gible guy
    {'press_a', 1}, -- fight gible guy
    {'w', 180},
    {'press_a', 1},
    {'w', 1320},
    {'press_a', 1},
    {'w', 60},
    {'d', 1},
    {'use_move', 1},
    {'press_b', 26}, -- both infernape and togepi level up
    {'w', 180},
    {'press_b', 1}, -- done with gible guy
    
    {'x', 15}, -- get xp share off togepi
    {'w', 120},
    {'u', 1},
    {'press_a', 1},
    {'w', 360},
    {'r', 1},
    {'press_a', 1},
    {'w', 60},
    {'d', 2},
    {'press_a', 1},
    {'d', 6},
    {'u', 1},
    {'w', 60},
    {'press_a', 1},
    {'w', 180},
    {'press_b', 2},
    {'w', 360},
    {'d', 1},
    {'w', 60},
    {'press_b', 3}, -- done with xp share, menu reset to bag as well
    {'r', 3}, -- fight other guy
    {'d', 1},
    {'w', 60},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 3},
    {'w', 1320},
    {'press_a', 1},
    {'w', 60},
    {'d', 1},
    {'press_a', 1},
    {'use_move', 1},
    {'press_b', 9},
    {'w', 360},
    {'press_a', 1},
    {'u', 1},
    {'use_move', 1},
    {'press_b', 3}, -- defeated rune maniac
    {'x', 15}, -- escape rope
    {'w', 120},
    {'press_a', 1},
    {'w', 360},
    {'d', 22},
    {'u', 2},
    {'press_a', 2},
    {'w', 1080},
    {'r', 2},
    {'d', 14},
    {'l', 2},
    {'d', 3},
    {'r', 2},
    {'d', 10},
    {'w', 60},
    {'press_b', 4},
    {'x', 15},
    {'w', 60},
    {'press_a', 1},
    {'w', 360},
    {'u', 18},
    {'press_a', 2},
    {'press_b', 9},
    {'d', 33},
    {'l', 2},
    {'d', 28},
    {'w', 60},
    {'press_a', 6},
    {'w', 360},
    {'d', 8},
    {'l', 8},
    {'d', 21},
    {'r', 4},
    {'d', 2},
    {'w', 180},
    {'press_b', 4},
    {'d', 5},
    {'l', 8},
    {'d', 33},
    {'r', 5},
    {'u', 2},
    {'w', 540},
    {'pokecenter_heal', 1}, -- done with wayward for now
    {'save', '03-DoneWithWayward'},

    {'d', 8}, -- go to mt coronet
    {'w', 540},
    {'l', 5},
    {'u', 33},
    {'r', 8},
    {'u', 1},
    {'y', 30},
    {'uf', 360}, -- up the mud slide
    {'y', 30},
    {'d', 19},
    {'r', 5},
    {'d', 8},
    {'r', 15},
    {'d', 4},
    {'r', 7},
    {'u', 23},
    {'w', 60},
    {'d', 3},
    {'r', 2},
    {'w', 60},
    {'r', 5},
    {'d', 2},
    {'w', 720},
    {'press_b', 6},
    {'w', 1260},
    {'press_a', 1},
    {'w', 60},
    {'d', 1},
    {'use_move', 1},
    {'press_b', 10},
    {'w', 360},
    {'press_a', 1},
    {'u', 1},
    {'use_move', 4}, -- meditite might use detect
    {'press_b', 5},
    {'d', 2},
    {'r', 7},
    {'u', 6},
    {'l', 6},
    {'w', 60},
    {'l', 3},
    {'u', 2},
    {'l', 3},
    {'u', 3},
    {'w', 240},
    {'l', 1},
    {'press_a', 1},
    {'press_b', 13},
    {'w', 1260}, -- fight hiker
    {'press_a', 1},
    {'d', 1},
    {'use_move', 1},
    {'press_b', 10},
    {'w', 180},
    {'use_move', 1},
    {'press_b', 4},
    {'u', 2},
    {'l', 4},
    {'d', 1},
    {'press_a', 6},
    {'u', 2},
    {'r', 12},
    {'u', 1},
    {'r', 4},
    {'w', 720},
    {'press_b', 11},
    {'press_a', 1},
    {'press_b', 48}, -- talk to dawn
    {'w', 540},
    {'r', 2}, -- go through coronet
    {'u', 2},
    {'r', 2},
    {'w', 540},
    {'use_repel', 1},
    {'d', 17},
    {'r', 6},
    {'u', 2},
    {'r', 6},
    {'press_b', 24},
    {'w', 360},
    {'u', 7},
    {'r', 2},
    {'u', 5},
    {'r', 5},
    {'d', 2},
    {'r', 5},
    {'u', 4},
    {'r', 5},
    {'d', 9},
    {'r', 2},
    {'w', 540},
    {'r', 12}, -- drain repel for convenience
    {'l', 12},
    {'r', 11},
    {'l', 10},
    {'w', 60},
    {'press_b', 4},
    {'r', 12},
    {'w', 180},
    {'u', 1},
    {'press_a', 1},
    {'w', 180},
    {'press_b', 11},
    {'w', 1260}, -- battle hiker
    {'press_a', 1},
    {'d', 1},
    {'use_move', 1},-- KO onix
    {'press_b', 2}, 
    {'r', 13}, -- to hearthome
    {'w', 540},
    {'press_b', 7},
    {'w', 1320},
    {'press_a', 1},
    {'d', 1},
    {'use_move', 1},
    {'press_b', 3},
    {'r', 3},
    {'u', 11},
    {'l', 2},
    {'w', 60},
    {'press_a', 7},
    {'w', 180},
    {'l', 4},
    {'w', 60},
    {'press_a', 1},
    {'press_b', 8},
    {'r', 11},
    {'d', 6},
    {'use_repel', 1},
    {'d', 12},
    {'r', 4},
    {'d', 2},
    {'r', 8},
    {'u', 4},
    {'r', 10},
    {'u', 4},
    {'r', 3},
    {'w', 540},
    {'r', 10},
    {'w', 540},
    {'r', 7},
    {'w', 540},
    {'press_b', 17}, -- talk to buneary lady
    {'w', 360}, -- in hearthome
    {'save', '04-InHearthome'},

    {'r', 26}, -- to amity sq
    {'u', 12},
    {'l', 11},
    {'w', 60},
    {'press_b', 4},
    {'u', 2},
    {'l', 13},
    {'u', 16},
    {'l', 8},
    {'u', 17},
    {'w', 540},
    {'u', 10},
    {'w', 540},
    {'u', 2},
    {'r', 3},
    {'u', 4},
    {'w', 180}, -- talk to lady
    {'press_a', 1},
    {'w', 180}, 
    {'press_a', 1},
    {'press_b', 5},
    {'u', 4},
    {'r', 13},
    {'u', 2},
    {'r', 4},
    {'u', 4},
    {'w', 60},
    {'press_a', 1}, -- get secret power
    {'w', 180},
    {'press_b', 5},
    {'d', 2},
    {'r', 5},
    {'d', 2},
    {'r', 6},
    {'u', 14},
    {'l', 4},
    {'d', 2},
    {'l', 7},
    {'u', 8},
    {'r', 10},
    {'w', 60},
    {'press_a', 1}, -- get attract TM
    {'press_b', 8},
    {'l', 11}, -- go to contest hall
    {'d', 8},
    {'l', 3},
    {'u', 2},
    {'l', 14},
    {'d', 17},
    {'r', 2},
    {'d', 6},
    {'w', 180},
    {'press_b', 6},
    {'l', 3},
    {'d', 5},
    {'w', 540},
    {'d', 10},
    {'w', 540},
    {'d', 6},
    {'r', 14},
    {'d', 3},
    {'r', 9},
    {'u', 2},
    {'w', 720},
    {'press_b', 100}, -- talk to mom
    {'r', 5}, -- go to east side amity sq
    {'u', 3},
    {'r', 2},
    {'w', 60},
    {'press_a', 1},
    {'press_b', 25},
    {'w', 180},
    {'l', 5},
    {'d', 6},
    {'w', 540},
    {'r', 5},
    {'u', 2},
    {'r', 18},
    {'u', 9},
    {'w', 540},
    {'l', 2},
    {'u', 15},
    {'w', 60},
    {'r', 2},
    {'u', 2},
    {'w', 540},
    {'u', 3},
    {'l', 2},
    {'u', 3},
    {'w', 180},
    {'press_b', 1},
    {'w', 180},
    {'press_a', 1},
    {'press_b', 4}, -- enter amity sq
    {'u', 1}, -- go grab amulet coin and spooky plate
{'r', 2},
{'u', 16},
{'l', 5},
{'u', 17},
{'l', 7},
{'u', 5},
{'l', 1},
{'w', 60},
{'press_a', 2},
{'w', 180},
{'press_b', 3},
{'d', 4},
{'r', 6},
{'u', 3},
{'r', 2},
{'w', 360},
{'u', 2},
{'r', 2},
{'w', 360},
{'u', 2},
{'r', 2},
{'w', 360},
{'u', 2},
{'r', 2},
{'w', 360},
{'u', 2},
{'r', 2},
{'w', 360},
{'d', 5},
{'l', 2},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_b', 11}, -- done grabbing spooky plate
{'save', '05-GotSpooky'},

{'u', 5}, -- leave sq
{'r', 2},
{'u', 4},
{'w', 360},
{'d', 17},
{'w', 60},
{'l', 2},
{'d', 4},
{'w', 180},
{'press_b', 5},
{'r', 2},
{'d', 5},
{'w', 540},
{'l', 2},
{'d', 10},
{'r', 2},
{'d', 2},
{'w', 540}, -- back in hearthome proper
{'d', 6}, -- go buy extra repels
{'l', 7},
{'d', 12},
{'r', 6},
{'d', 7},
{'l', 2},
{'d', 6},
{'l', 22},
{'u', 3},
{'w', 540},
{'u', 4},
{'w', 60},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 180},
{'d', 16},
{'u', 1},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'u', 6},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_b', 12}, -- bought 7 repels
{'d', 6}, -- go heal
{'w', 540},
{'l', 5},
{'d', 2},
{'l', 8},
{'u', 15},
{'l', 2},
{'u', 2},
{'w', 540},
{'pokecenter_heal', 1}, -- done healing
{'d', 8}, -- go get eevee
{'w', 540},
{'r', 6},
{'u', 2},
{'w', 540},
{'u', 2},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180}, -- wait for naming screen to open
{'d', 1}, -- nickname eevee
{'r', 1},
{'press_a', 1},
{'u', 1},
{'r', 1},
{'press_a', 1},
{'w', 60},
{'d', 2},
{'l', 1},
{'press_a', 1},
{'r', 3},
{'press_a', 1},
{'u', 1},
{'l', 2},
{'press_a', 1},
{'d', 1},
{'l', 2},
{'press_a', 1},
{'r', 8},
{'press_a', 1},
{'u', 2},
{'r', 1},
{'press_a', 1}, -- done nicknaming
{'save', '06-GotEevee'},

{'w', 180},

{'x', 15}, -- give infernape the amulet coin and eevee the xp share even though we take it off immediately after
{'w', 60},
{'u', 1},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'d', 4},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'d', 4},
{'press_a', 2},
{'w', 240},
{'d', 19},
{'u', 2},
{'w', 60},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'w', 60},
{'d', 1},
{'w', 60},
{'press_a', 1},
{'d', 2},
{'press_a', 2},
{'w', 240},
{'d', 7},
{'u', 2},
{'w', 60},
{'press_a', 1},
{'w', 240},
{'press_a', 1},
{'press_b', 13}, -- done

{'d', 4}, -- backtrack
{'w', 540},
{'l', 8},
{'r', 5},
{'d', 16},
{'r', 19},
{'d', 14},
{'l', 33},
{'w', 540},
{'l', 10},
{'w', 540}, -- BREAKPOINT // learning close combat
-- ####
{'x', 15}, -- take xp share off eevee
{'w', 30},
{'w', 60},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'d', 2},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'press_b', 9}, -- take xp share off eevee
{'l', 8},
{'u', 2},
{'w', 60},
--- ####
{'press_a', 1}, -- start fight
{'press_b', 16},
{'w', 1440}, -- done
{'press_a', 1},
{'use_move', 1}, -- flame wheel mime jr
{'w', 180},
{'press_b', 1}, -- pass level up dialogue
{'w', 300},
{'press_b', 1}, -- pass level up dialogue
{'w', 600},
{'press_a', 1}, -- forget move / fight
{'w', 240},
{'press_b', 1}, -- creates cursor / exit fight menu
{'w', 180},
{'d', 1}, -- to brick break / to bag
{'w', 60},
{'press_a', 1}, -- open bag
{'w', 120},
{'press_a', 1}, -- finish learning close combat / open medicine pouch
{'w', 1080},
{'press_b', 24}, -- exit
{'l', 2},
{'u', 2},
{'w', 60}, -- aligned
-- ####
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 1800},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 360},
{'press_a', 1},
{'w', 300},
{'d', 2},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 1400},
{'press_a', 1},
{'w', 2440},
{'press_b', 8},
{'w', 60},
{'x', 15},
{'d', 1},
{'press_a', 1},
{'w', 180},
{'d', 19},
{'w', 60},
{'u', 1},
{'press_a', 2},
{'w', 180},
{'d', 1},
{'press_a', 2},
{'w', 180},
{'press_b', 16},
{'l', 4},
{'u', 4},
{'l', 2},
{'u', 3},
{'w', 360},
{'press_b', 7},
{'w', 1440},
{'use_move', 1},
{'press_b', 15},
{'use_move', 1},
{'press_b', 12},
{'w', 60},

-- #####
{'x', 15}, -- use repel
{'w', 60},
{'press_a', 1},
{'w', 180},
{'u', 20},
{'w', 60},
{'press_a', 2},
{'w', 120},
{'press_b', 8}, -- done using repel
{'u', 2}, -- back to mt coronet
{'l', 9},
{'u', 5},
{'l', 6},
{'d', 9},
{'l', 11},
{'d', 2},
{'l', 6},
{'u', 11},
{'w', 720},
{'press_b', 3},
{'w', 1440},
{'press_a', 1},
{'d', 1},
{'use_move', 1},
{'press_b', 5},
{'u', 2},
{'l', 10},
{'d', 8},
{'r', 1},
{'w', 60},
{'press_a', 1},
{'w', 240},
{'press_b', 6},
{'u', 8},
{'r', 10},
{'d', 10},
{'press_b', 3},
{'d', 1},
{'press_b', 4},
{'d', 1},
{'press_b', 4},
{'u', 5},
{'press_b', 4},
{'d', 2},
{'press_b', 3},
{'d', 1},
{'press_b', 3},
{'d', 10},
{'press_b', 2},
{'w', 60},
{'press_b', 1},
{'l', 17},
{'w', 540}, -- enter coronet
{'save', '07-InCoronet'},

{'use_repel', 1}, -- go to pachirisu trainer
{'u', 8},
{'l', 5},
{'d', 3},
{'l', 5},
{'u', 2},
{'l', 5},
{'d', 10},
{'l', 11},
{'u', 16},
{'l', 3},
{'w', 540},
{'l', 17},
{'u', 3},
{'l', 4},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_b', 1},
{'w', 1620},
{'press_a', 1},
{'d', 1},
{'use_move', 1}, -- defeat pachirisu trainer
{'w', 180},
-- ## BREAKPOINT
{'d', 3},
{'l', 16},
{'d', 5},
{'press_b', 6},
{'d', 2},
{'w', 120},
{'d', 5},
{'l', 8},
{'d', 33},
{'r', 5},
{'u', 2},
{'w', 540},
{'pokecenter_heal', 1},
{'press_b', 2},
{'d', 8},
{'w', 540},
{'l', 5},
{'u', 33},
{'r', 8},
{'u', 1},
{'y', 30},
{'uf', 360},
{'y', 30},
{'l', 3},
{'u', 4},
{'r', 8},
{'u', 6},
{'w', 60},
-- ## BREAKPOINT END $$ FINISHED
{'w', 60},
{'press_a', 7},
{'press_b', 4},
{'w', 180},
{'u', 9},
{'l', 2},
{'u', 3},
{'r', 2},
{'u', 4},
{'use_repel', 1},
{'l', 2},
{'u', 28},
{'r', 2},
{'u', 28},
{'l', 2},
{'u', 4},
{'r', 2},
{'u', 13},
{'l', 2},
{'u', 2},
{'w', 540}, -- inside wayward
{'save', '08-InWaywardAgain'},

{'u', 11}, -- go to hikers
{'l', 3},
{'w', 60},
{'press_a', 7},
{'press_b', 4},
{'l', 1},
{'u', 13},
{'w', 180},
{'press_b', 1},
{'use_repel', 1},
{'u', 1},
{'l', 3},
{'w', 60},
{'press_a', 5},
{'press_b', 3},
{'w', 180},
{'l', 1},
{'u', 14},
{'l', 9},
{'w', 60},
{'press_a', 7},
{'press_b', 2},
{'w', 180},
{'l', 11},
{'d', 13},
{'w', 60},
{'press_a', 7},
{'w', 180},
{'d', 1},
{'r', 3},
{'d', 4},
{'l', 2},
{'d', 6},
{'w', 60},
{'press_a', 4},
{'w', 1440},
-- HIKER BREAKPOINT
{'press_a', 1},
{'d', 1},
{'r', 1},
{'use_move', 1},
{'press_b', 12},
{'use_move', 1},
-- FINISH BREAKPOINT $$
{'press_b', 10},
{'r', 4},
{'d', 1},
{'w', 60},
{'press_a', 7},
{'w', 1260},
{'press_a', 1},
{'d', 1},
{'use_move', 1},
{'press_b', 15}, -- defeated hikers
{'u', 9}, -- go to double team trainers
{'l', 16},
{'d', 13},
{'w', 120},
{'press_a', 3},
{'w', 1620},
{'press_a', 1},
{'d', 1},
{'use_move', 1},
{'press_b', 16},
{'use_move', 1},
{'press_b', 15},
{'use_move', 1}, -- defeated first trainer
{'press_b', 15},
{'l', 4}, -- go to buneary trainer
{'press_b', 2},
{'w', 60},
{'use_repel', 1},
{'l', 1},
{'d', 1},
{'w', 60},
{'press_a', 1},
{'w', 120},
{'press_a', 5},
{'w', 1440},
{'press_a', 1},
{'use_move', 6}, -- eevee will level up, have to push through buneary using endure // eevee no longer levels up here
{'press_a', 19}, -- mashing a will learn quick attack in place of tackle just like we want anyway // we no longer learn quick attack here
{'press_b', 12},
{'w', 180}, -- done with buneary trainer
{'r', 3}, -- leave wayward (again)
{'d', 3},
{'w', 60},
{'press_a', 7},
{'w', 180},
{'d', 1},
{'r', 5},
{'w', 60},
{'press_a', 1}, -- get double team tm
{'press_b', 12},
{'l', 4},
{'u', 16},
{'r', 12},
{'u', 14},
{'r', 20},
{'d', 14},
{'r', 6},
{'d', 12},
{'l', 2},
{'d', 1},
{'w', 60},
{'press_b', 3},
{'use_repel', 1},
{'d', 3},
{'r', 5},
{'d', 12},
{'l', 2},
{'d', 2},
{'w', 540},
{'r', 2},
{'d', 14},
{'l', 2},
{'d', 3},
{'r', 2},
{'d', 39},
{'l', 2},
{'d', 28},
{'w', 60},
{'press_b', 3},
{'d', 3},
{'w', 60},
{'press_a', 5},
{'w', 180},
{'d', 8},
{'l', 8},
{'u', 1}, --  back near bike route
{'w', 60},
{'u', 9}, -- into bike route
{'w', 540},
{'y', 30},
{'u', 10},
{'w', 540},
{'r', 4},

{'uf', 360},
{'w', 60},
{'press_b', 6},
{'w', 1440}, -- fight blocking trainer
{'use_move', 1}, 
{'press_b', 7},
{'w', 720},
{'press_a', 1},
{'w', 60},
{'d', 1},
{'use_move', 1},
-- BREAKPOINT
{'press_a', 20}, -- learn quick attack
{'press_b', 10},
-- END BREAKPOINT
{'w', 900}, -- slide back down bike route
{'uf', 2000}, -- hold up to go back up the route into eterna
{'w', 60},
{'y', 30}, -- go to old chateau 
{'l', 7},
{'d', 3},
{'l', 27},
{'u', 4},
{'l', 13},
{'u', 7},
{'l', 3},
{'w', 540},
{'l', 11},
{'u', 3},
{'w', 60},
{'press_a', 5},
{'w', 180},
{'u', 3},
{'use_repel', 1},
{'u', 15},
{'r', 6},
{'u', 5},
{'r', 1},
{'w', 60},
{'press_a', 3},
{'press_b', 8},
{'d', 5},
{'l', 7},
{'u', 2},
{'w', 540}, -- inside old chatuea
{'save', '09-InOldChat'},

{'u', 4},
{'d', 1},
{'x', 15}, -- switch togepi into front slot
{'w', 60},
{'u', 1},
{'press_a', 1},
{'w', 180},
{'r', 1},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 120},
{'l', 1},
{'press_a', 1},
{'w', 180},
{'press_b', 10}, -- done switching
{'spin_fast', 700}, -- guarenteed encounter with lvl 17 gastly
{'w', 1080}, -- wait for encounter to finish setting up on longest seeds
{'l', 12}, -- catch gastly
{'u', 6},
{'press_a', 1},
{'d', 1},
{'use_move', 1},
{'w', 60},
{'use_move', 1},
{'d', 1},
{'press_a', 1},
{'w', 180},
{'r', 1},
{'press_a', 1},
{'w', 60},
{'d', 1},
{'press_a', 2},
{'w', 1800},
{'press_b', 1},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 360}, -- finished catching gastly, time to name
{'d', 1}, -- name gastly
{'w', 60},
{'r', 6},
{'press_a', 1},
{'l', 1},
{'u', 1},
{'l', 1},
{'press_a', 1},
{'d', 2},
{'r', 4},
{'press_a', 1},
{'l', 3},
{'press_a', 1},
{'u', 1},
{'l', 2},
{'press_a', 1},
{'r', 2},
{'press_a', 1},
{'d', 1},
{'r', 3},
{'press_a', 1},
{'u', 1},
{'r', 1},
{'press_a', 1},
{'l', 4},
{'press_a', 1},
{'r', 4},
{'d', 1},
{'press_a', 1},
{'u', 2},
{'r', 1},
{'press_a', 1},
{'w', 900}, -- finished naming
{'save', '10-CaughtGastly'},

{'w', 60}, -- switch infernape back to front
{'x', 15},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'r', 1},
{'press_a', 1},
{'w', 180},
{'press_b', 8}, -- done switching

{'l', 5}, -- go grab all the stuff in the chateau
{'w', 120},
{'u', 2},
{'l', 6},
{'u', 5},
{'l', 3},
{'w', 540},
{'l', 3},
{'d', 1},
{'w', 60},
{'press_a', 3},
{'w', 360},
{'press_b', 2},
{'r', 5},
{'w', 540},
{'r', 1},
{'u', 3},
{'r', 8},
{'u', 3},
{'w', 540},
{'l', 16},
{'u', 4},
{'w', 540},
{'u', 3},
{'l', 1},
{'w', 60},
{'press_a', 1},
{'w', 360},
{'press_b', 7},
{'w', 60},
{'d', 5},
{'w', 540},
{'d', 1},
{'r', 11},
{'w', 60},
{'press_b', 1},
{'x', 15},
{'w', 60},
{'d', 1},
{'press_a', 1},
{'w', 360},
{'press_a', 2},
{'w', 180},
{'press_b', 8},
{'r', 22},
{'u', 3},
{'w', 540},
{'u', 2},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_b', 9},
{'d', 4},
{'w', 540},
{'d', 1},
{'l', 16},
{'d', 3},
{'w', 540},
{'r', 7},
{'d', 8},
{'l', 7},
{'u', 6},
{'w', 640},
{'d', 1}, -- handle ghost butler
{'l', 15},
{'u', 8},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_b', 5},
{'d', 7},
{'r', 10},
{'w', 60},
{'press_b', 3},
{'use_repel', 1},
{'r', 28}, -- sync butler seeds with normal seeds
{'w', 30},
{'l', 3},
{'u', 5},
{'r', 2},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_b', 6},
{'l', 2},
{'d', 6},
{'l', 17},
{'d', 2},
{'w', 540},
{'d', 10},
{'w', 540},
{'d', 16},
{'w', 60},
{'press_a', 6},
{'press_b', 1},
{'w', 180}, -- done grabbing rare candy, dread plate, substitute TM and big pearl

{'d', 4}, -- go back down bike route
{'r', 14},
{'w', 540},
{'r', 2},
{'d', 2},
{'w', 60},
{'press_b', 2},
{'d', 1},
{'w', 60},
{'press_b', 2},
{'d', 1},
{'w', 60},
{'press_b', 2}, -- handle butler repels
{'w', 60},
{'d', 4},
{'r', 13},
{'d', 4},
{'r', 33},
{'u', 5},
{'w', 540},
{'pokecenter_heal', 1},
{'press_b', 4},
{'d', 8},
{'w', 540},
{'save', '11-ReadyForTraining'},

{'d', 39},
{'w', 540},
{'y', 30},
{'d', 10},
{'w', 540},
{'d', 16},
{'r', 2},
{'d', 2},
{'w', 900},
{'l', 3},
{'d', 2},
{'w', 540},
{'d', 10},
{'w', 540}, -- back near oreburgh
{'y', 30}, -- go back to lake verity
{'d', 28},
{'r', 5},
{'d', 2},
{'w', 120},
-- ####

{'d', 4}, -- travel through oreburgh
{'l', 6},
{'d', 16},
{'l', 4},
{'d', 24},
{'l', 19},
{'u', 2},
{'l', 13},
{'u', 12},
{'l', 11},
{'u', 2},
{'l', 2},
{'w', 540}, -- into coronet

-- ####
{'use_repel', 1},
{'l', 24},
{'w', 540},
{'l', 15},
{'d', 5},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_a', 4},
{'press_b', 1},
{'d', 2},
{'w', 60},
{'l', 8},
{'d', 2},
{'l', 16},
{'u', 3},
{'l', 13},
{'d', 3},
{'l', 19},
{'press_b', 1},
{'w', 60},
{'press_b', 2},
{'d', 6},
{'l', 5},
{'d', 35},
{'l', 4},
{'d', 11},
{'l', 2},
{'d', 5},
{'w', 60},
{'d', 12},
{'w', 60},
{'d', 5},
{'r', 2},
{'use_repel', 1},
{'r', 11},
{'d', 15},
{'l', 18},
{'d', 2},
{'l', 19},
{'d', 5},
{'w', 60},
{'d', 3},
{'l', 20},
{'u', 3},
{'l', 15},
{'w', 60},
{'press_b', 3},
{'l', 15},
{'u', 2},
{'l', 6},
{'d', 2},
{'l', 8},
{'u', 2},
{'l', 9},
{'w', 60},
{'l', 3},
{'u', 7},
{'w', 540}, -- at lake verity
{'x', 15}, -- setup eevee
{'press_a', 1},
{'w', 180},
{'r', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'u', 10},
{'w', 60},
{'d', 2},
{'w', 60},
{'press_a', 2}, -- teach secret power
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'d', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'d', 2},
{'press_a', 1},
{'w', 180},
{'press_b', 19},
{'x', 15},
{'w', 60},
{'u', 1},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'d', 1},
{'w', 60},
{'press_a', 2},
{'w', 180},
{'r', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'r', 1},
{'press_a', 1},
{'d', 2},
{'press_a', 1},
{'u', 1},
{'press_a', 1},
{'w', 60},
{'press_b', 9}, -- done teaching
{'w', 60}, -- move eevee to front
{'x', 15},
{'press_a', 1},
{'w', 180},
{'d', 1},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'u', 1},
{'press_a', 1},
{'w', 180},
{'press_b', 6},
{'u', 10},
{'r', 2}, -- walk into patch
{'w', 60},
{'save', '12-BeforeEeveeTraining'},

{'custom4', 20}, -- level 29 here we come
{'save', '12b-AfterEeveeTraining'},
{'u', 3}, -- LEARN BITE 
{'press_a', 1},
{'w', 180},
{'d', 9},
{'u', 1},
{'w', 60},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 720},
{'press_b', 20}, -- handle extra frames
{'l', 1},
{'grass_cycle', 1},
{'l', 2},
{'w', 60},
{'d', 5},
{'r', 6},
{'d', 2},
{'w', 60},
{'reset_start', 1},
{'w', 60}, -- done learning bite and resetting start menu
{'l', 6}, -- go to grass
{'d', 7},
{'w', 540},
{'d', 9},
{'r', 36},
{'w', 30},
{'x', 15},
{'w', 60},
{'u', 4},
{'w', 15},
{'press_a', 1},
{'w', 180},
{'l', 1},
{'w', 60},
{'l', 1},
{'w', 60},
{'l', 1},
{'w', 60},
{'u', 15},
{'w', 15},
{'press_a', 2},
{'w', 180},
{'press_b', 9}, -- apply repel
{'u', 2}, -- to jubilife
{'r', 32},
{'u', 9},
{'r', 39},
{'u', 17},
{'l', 10},
{'w', 60},
{'press_b', 2},
{'use_repel', 1},
{'l', 14},
{'u', 13},
{'r', 9},
{'d', 5},
{'r', 12},
{'u', 10},
{'r', 5},
{'u', 4},
{'l', 14},
{'u', 25},
{'w', 60},
{'press_b', 3},
{'u', 19},
{'r', 6},
{'u', 2},
{'w', 540}, -- arrive in jubilife mart
{'u', 4}, -- buy repels
{'w', 60},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 180},
{'d', 10},
{'u', 1},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'u', 9},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 60},
{'press_b', 11},
{'d', 6},
{'w', 540}, -- bought 10 repels
{'l', 4}, -- go through oreburgh
{'u', 9},
{'r', 41},
{'u', 2},
{'r', 2},
{'use_repel', 1},
{'r', 21},
{'d', 2},
{'r', 9},
{'u', 11},
{'r', 2},
{'w', 540},
{'r', 24},
{'w', 540},
{'save', '12c-InOreburgh'},

{'r', 9},
{'d', 12},
{'r', 14},
{'d', 3},
{'r', 4},
{'w', 60},
{'press_b', 8},
{'r', 16},
{'u', 38},
{'r', 9},
{'u', 3},
{'w', 120},

{'y', 30},
{'w', 60},
{'uf', 360},
{'w', 60},
{'y', 30}, -- up mudslide
{'l', 4}, -- go to roots store
{'u', 12},
{'w', 540},
{'y', 30},
{'u', 10},
{'w', 540},
{'r', 4},
{'uf', 1440},
{'w', 60},
{'y', 30},
{'r', 2},
{'u', 2},
{'w', 540},
{'pokecenter_heal', 1},
{'press_b', 4},
{'d', 8},
{'w', 540},
{'l', 5},
{'u', 8},
{'r', 16},
{'u', 4},
{'w', 540}, -- inside roots store
{'u', 2}, -- buy energy powder and full heal powder or whatever
{'l', 2},
{'u', 1},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 180},
{'u', 4},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 60},
{'d', 1},
{'press_a', 1},
{'w', 90},
{'u', 7},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'press_b', 11}, -- done purchasing
{'save', '13-AfterShopping'},
{'d', 3}, -- go back down 206
{'r', 2},
{'d', 2},
{'w', 540},
{'x', 15},
{'w', 60},
{'u', 1},
{'press_a', 1},
{'w', 360},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 180},
{'press_b', 9},
{'d', 2},
{'x', 15},
{'w', 60},
{'d', 1},
{'press_b', 3},
{'l', 16},
{'d', 11},
{'r', 4},
{'d', 37},
{'w', 540},
{'y', 30},
{'d', 10},
{'w', 540},
{'d', 15},
{'l', 6},
{'d', 3},
{'w', 360},
{'press_b', 8},
{'w', 1620}, -- fight staravia trainer now that we have infernape
{'press_a', 1},
{'d', 1},
{'use_move', 1},
{'w', 180},
{'press_b', 4}, -- done fighting trainer
{'uf', 360}, -- finish going down route
{'w', 60},
{'r', 7},
{'d', 16},
{'w', 600},
{'l', 3},
{'d', 2},
{'w', 540},
{'d', 10},
{'w', 540}, -- out of route
{'w', 60}, -- to hearthome
{'y', 30},
{'d', 22},
{'r', 10},
{'d', 2},
{'r', 32},
{'w', 540},
{'use_repel', 1},
{'d', 16},
{'r', 12},
{'u', 10},
{'r', 5},
{'d', 2},
{'r', 6},
{'u', 3},
{'r', 4},
{'d', 8},
{'r', 2},
{'w', 540},
{'r', 14},
{'r', 16},
{'u', 10},
{'r', 5},
{'w', 60},
{'press_b', 3},
{'use_repel', 1},
{'d', 5},
{'r', 11},
{'u', 5},
{'w', 60},
{'press_a', 5},
{'w', 180},
{'press_b', 6},
{'l', 2},
{'u', 1},
{'w', 60},
{'press_a', 4},
{'w', 180},
{'press_b', 4},
{'r', 3},
{'u', 1},
{'w', 60},
{'press_a', 4},
{'w', 180},
{'press_b', 5},
{'r', 2},
{'u', 1},
{'w', 60},
{'press_a', 4},
{'w', 180},
{'press_b', 6}, -- grabbed berries
{'d', 13}, -- go to the gym
{'r', 11},
{'w', 540},
{'r', 10},
{'w', 540},
{'r', 33},
{'u', 12},
{'r', 8},
{'w', 60},
{'press_b', 3},
{'r', 11},
{'u', 15},
{'l', 4},
{'u', 5},
{'w', 540},
{'press_b', 38}, -- done going to the gym
{'u', 4}, -- get eevee into position
{'w', 60},
{'x', 15},
{'w', 60},
{'u', 1},
{'press_a', 1},
{'w', 180},
{'d', 1},
{'press_a', 1},
{'d', 2},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'w', 60},
{'press_a', 2},
{'d', 2},
{'press_a', 2},
{'w', 180},
{'d', 22},
{'u', 2},
{'press_a', 1},
{'w', 180},
{'press_a', 2},
{'d', 1},
{'press_a', 1},
{'u', 1},
{'press_a', 1},
{'w', 180},
{'press_b', 5}, -- done getting eevee into position
{'u', 2}, -- go fight first gastly guy
{'w', 540},
{'save', '13a-GymPositioning'},
{'u', 2},
{'r', 2},
{'w', 27000}, -- guarenteed to be lookin at us
{'save', '13b-BeforeFirstTrainer'},
{'press_b', 5}, -- fight boy trainer
{'w', 1620},
{'press_a', 1},
{'w', 60},
{'d', 1},
{'use_move', 1},
{'press_b', 16},
{'use_move', 2},
{'w', 180},
{'press_b', 2}, -- done
{'rf', 6000}, -- deal with pathing bug
{'uf', 6000},
{'w', 540},
{'df', 1600}, -- up against the woman with a baby
{'w', 60}, -- go heal off sucker punch + aftermath damage
{'u', 10},
{'l', 35},
{'u', 4},
{'w', 540},
{'pokecenter_heal', 1},
{'press_b', 4},
{'d', 8},
{'w', 540},

{'d', 1},
{'r', 6},
{'d', 3},
{'r', 30},
{'u', 5}, -- back into gym
{'w', 540}, -- done
{'u', 5},
{'d', 1}, -- in position
{'w', 60},
{'u', 2},
{'w', 480}, -- into first room
{'save', '14-BeforeEntering'},

{'u', 2}, -- against skull
{'custom5', 58}, -- do this 58 times
-- guarenteed to be in second room
-- seeds that make it sooner get stuck in the corner
{'w', 30}, -- go fight first gastly trainer
{'r', 5},
{'w', 60},
{'d', 2},
{'r', 4},
{'u', 4},
{'w', 24000}, -- wait a couple minutes for glasses boy to notice us >.< 
{'press_b', 2},
{'w', 1080}, -- battle begins
{'press_a', 1},
{'d', 1},
{'use_move', 2}, -- x defend on turn 1, sucker punch on turn 2, we should be fine
{'press_b', 9},
{'save', '15-AfterFirstTrainer'},

{'w', 30},
-- learn sub and double team
{'x', 15},
{'w', 60},
{'d', 1},
{'press_a', 1},
{'w', 180},
{'r', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'r', 1},
{'w', 60},
{'d', 18},
{'w', 60},
{'u', 3},
{'w', 60},
{'press_a', 2},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 360},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 120}, -- 43241
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 600},
{'u', 16},
{'w', 60},
{'d', 1},
{'press_a', 2},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'d', 1},
{'press_a', 1},
{'press_b', 20}, -- done teaching TMs
{'w', 60},
{'x', 15}, -- attempt to use an energy powder 
{'w', 60},
{'press_a', 1},
{'w', 180},
{'l', 1},
{'w', 60},
{'l', 1},
{'w', 120},
{'u', 6},
{'d', 25},
{'u', 1},
{'press_a', 2},
{'w', 180},
{'press_a', 2},
{'w', 60},
{'press_b', 9}, -- done using energy powda
{'d', 6}, -- go fight haunter guy
{'w', 60},
{'l', 9},
{'u', 4},
{'l', 2},
{'u', 4},
{'r', 3},
{'u', 3},
{'r', 1},
{'u', 1},
{'r', 2},
{'u', 3},
{'r', 14},
{'u', 7},
{'l', 7},

{'d', 1}, -- wait for him to walk into flashlight // for some reason triggering a fight with these stupid npcs by way of flashlight ruins their rectangle pathing... this guy is supposed to be stuck on the x axis at a distance of 3, but after triggering the battle with a flashlight he just wanders around in a 5x5 box...
{'w', 24000},
{'save', '15b-BeforeSecondTrainer'},
{'press_b', 7},
{'w', 1260},
{'press_a', 1},
{'d', 1},
{'use_move', 1},
{'press_b', 16},
{'use_move', 1},
{'press_b', 25},
{'press_a', 1},
{'u', 1},
{'w', 60},
{'use_move', 1},
{'press_b', 2},
{'press_a', 1},
{'d', 1},
{'use_move', 2},
{'press_b', 25}, -- done battling, eevee at level 30 now
{'save', '16-AfterSecondTrainer'},
{'w', 120},
{'r', 4}, -- reset and heal at pcenter
{'u', 5},
{'w', 540},
{'d', 2},
{'w', 540},
{'d', 6},
{'w', 540},
{'d', 17},
{'w', 60},
{'u', 11},
{'l', 35},
{'u', 3},
{'w', 540},
{'pokecenter_heal', 1},
{'press_b', 4},
{'d', 8},
{'w', 540},
-- breakpoint
{'r', 35}, -- had to fix pathing
{'d', 11},
{'l', 2},
{'d', 7},
{'l', 10},
{'d', 14},
{'l', 9},
{'d', 2},
{'l', 10},
{'u', 2},
{'l', 20}, -- done

{'w', 540},
{'l', 10},
{'w', 540},
{'l', 10},
{'d', 7},
{'l', 4},
{'u', 2}, -- into grass
{'save', '16b-BeforeFriendshipReduction'},
{'custom7', 6},
{'d', 1},
{'grass_cycle', 1},
{'d', 4},
{'w', 60},
{'reset_start', 1},
{'u', 2},
{'r', 5},
{'w', 60},
{'u', 6},
{'r', 12},
{'w', 540},
{'r', 10},
{'w', 540},
{'r', 34},
{'u', 15},
{'r', 11},
{'u', 14},
{'l', 34},
{'u', 3},
{'w', 540},
{'pokecenter_heal', 1},
{'press_b', 4},
{'d', 8},
{'w', 540}, -- done reducing friendship, realigned with original, should be fine
{'save', '17-ReducedEeveesFriendship'},

-- end breakpoint
{'d', 1},
{'r', 35},
{'u', 3},
{'w', 540},
{'u', 5},
{'d', 1},
{'w', 60}, -- back in gym, ready to start looping
{'u', 2},
{'w', 540},
{'save', '18-BeforeGymLooping'},

{'u', 2},
{'custom6', 303}, -- wowee kazowee -- todo uncomment this
{'save', '19-BeforeFantinaFight'},

    -- # fantina fight #
    {'x', 15}, -- rare candy eevee to 32
    {'w', 60},
    {'u', 4},
    {'press_a', 1},
    {'w', 180},
    {'d', 20},
    {'u', 6},
    {'w', 60},
    {'press_a', 2},
    {'w', 60},
    {'press_a', 12},
    {'press_b', 12}, -- done
    
    {'d', 3},
    {'r', 4},
    {'u', 1},
    {'w', 60},
    {'press_a', 15}, -- talk to fantina
    {'w', 1440},
    {'u', 2}, -- align
    {'use_move', 1}, -- substitute // duskull can't break substitute with pursuit or future sight (it can't crit).  Eevee KOs in 2 turns, possibly 3 if we trigger super potion
    {'press_a', 1}, 
    {'d', 1},
    {'w', 60},
    {'use_move', 4}, -- use bite 4 times, accounting for potion
    {'press_b', 22}, -- stay in 
    {'press_a', 1},
    {'u', 1},
    {'use_move', 3}, -- theoretically a duskull with max crit pursuit and max damage future sight could destroy our substitute when future sight hits.  Using substitute a few times mitigates this
    {'press_a', 1},
    {'d', 1},
    {'r', 1},
    {'w', 60},
    {'use_move', 22}, -- stall out haunter pt 1
    {'d', 1},
    {'press_a', 1}, -- use a potion.  Idk why I did it here instead of right before finishing stalling, but it doesn't matter
    {'w', 60},
    {'press_a', 1},
    {'w', 60},
    {'r', 2},
    {'w', 60},
    {'press_a', 1},
    {'w', 60},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1}, -- potion used // heals off substitute damage
    {'w', 1260}, 
    {'u', 1},
    {'use_move', 9}, -- finish stalling
    {'d', 1},
    {'r', 2},
    {'press_a', 1},
    {'w', 120},
    {'r', 1},
    {'press_a', 2},
    {'w', 1440}, -- switch out togepi 
    {'d', 1},
    {'r', 2},
    {'press_a', 1},
    {'w', 120},
    {'r', 1},
    {'press_a', 3},
    {'w', 1200}, -- switch eevee back out // we do this to allow ourselves to put out a fresh substitute.  Damage from future sight of pursuit from the carryover substitute on duskull would make mismagius more likely to break the substitute on turn 1, introducing additional seeds into the mix
    {'use_move', 1}, -- use substitute
    {'press_a', 1},
    {'r', 1},
    {'use_move', 6}, -- use double team, max out evasion to reduce pool of seeds and encourage magical leaf over psybeam
    {'d', 1},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 3},
    {'w', 120},
    {'press_a', 1},
    {'w', 1440}, -- potion
    {'press_a', 1},
    {'r', 1},
    {'d', 1},
    {'press_a', 3},
    {'w', 1440}, -- xspecialDefend
    {'press_a', 1},
    {'w', 120},
    {'press_a', 3},
    {'w', 1440}, -- xspeed
    {'u', 1},
    {'press_a', 1},
    {'l', 1},
    {'d', 1},
    {'w', 60},
    {'use_move', 4}, -- finish off haunter with a couple bites
    {'press_b', 25},
    {'use_move', 2}, -- double bite
    {'custom8', 1}, -- full heal or bite
    {'custom9', 1}, -- energy root or bite
    {'custom8', 1}, -- full heal or bite
    {'custom9', 1}, -- energy root or bite
    {'custom8', 1}, -- full heal or bite
    {'custom9', 1}, -- energy root or bite
    {'custom8', 1}, -- full heal or bite
    {'use_move', 2},
    {'custom9', 1}, -- heal for specific seeds
    {'use_move', 3},
    {'w', 240},
    {'press_b', 40},
    {'l', 6},
    {'u', 2}, -- realignment 
    {'l', 4},
    {'u', 2},
    {'l', 3},
    {'u', 8},
    {'w', 60},
    {'r', 2},
    {'u', 2},
    {'w', 60}, -- sync 
    {'l', 4},
    {'w', 60},
    {'r', 11},
    {'w', 240},
    {'d', 2},
    {'r', 25},
    {'w', 60},
    {'d', 18},
    {'w', 60},
    {'u', 8},
    {'w', 240},
    {'l', 8},
    {'d', 7},
    {'w', 540}, -- out of gym
    {'d', 2}, -- go heal
    {'l', 35},
    {'u', 4},
    {'w', 540},
    {'pokecenter_heal', 1},
    {'press_b', 5}, -- done
    {'save', '20-AfterFantinaFight'},

    {'d', 8}, -- go prime eevee for rival battle
    {'w', 540},
    
    {'r', 36},
    {'d', 11},
    {'r', 2},
    {'d', 8},
    {'l', 13},
    {'d', 11},
    {'l', 9},
    {'d', 2},
    {'l', 29},
    {'w', 540},
    {'l', 10},
    {'w', 540},
    {'l', 10},
    {'d', 7},
    {'l', 4},
    {'u', 2}, -- in grass

        -- begin priming 
        {'w', 30},
        {'l', 1}, --realign
        {'w', 16},
        {'spin_fast', 50},
        {'w', 900},
        {'l', 2},
        {'u', 2},
        {'use_move', 1},
        {'l', 1}, -- realign on teleport
        {'w', 900},
        {'x', 15},
        {'d', 1},
        {'r', 1},
        {'x', 60}, -- close menu
        {'use_move', 1}, -- run away
        {'press_b', 6},
    
        {'w', 30},
        {'l', 1}, --realign
        {'w', 16},
        {'spin_fast', 50},
        {'w', 900},
        {'l', 2},
        {'u', 2},
        {'use_move', 1},
        {'l', 1}, -- realign on teleport
        {'w', 900},
        {'x', 15},
        {'d', 1},
        {'r', 1},
        {'x', 60}, -- close menu
        {'use_move', 1}, -- run away
        {'press_b', 6},
    
        {'w', 30},
        {'l', 1}, --realign
        {'w', 16},
        {'spin_fast', 50},
        {'w', 900},
        {'l', 2},
        {'u', 2},
        {'use_move', 1},
        {'l', 1}, -- realign on teleport
        {'w', 900},
        {'x', 15},
        {'d', 1},
        {'r', 1},
        {'x', 60}, -- close menu
        {'use_move', 1}, -- run away
        {'press_b', 6},
        {'d', 1},
        {'grass_cycle', 1},
        {'d', 4},
        {'w', 30},
        {'reset_start', 1},

        {'x', 15}, -- use oran berry to gain 10 health
        {'w', 60},
        {'u', 4},
        {'press_a', 1},
        {'w', 180},
        {'r', 1},
        {'w', 90},
        {'r', 1},
        {'w', 90},
        {'r', 1},
        {'w', 90},
        {'d', 21},
        {'w', 60},
        {'u', 5},
        {'w', 60},
        {'press_a', 1},
        {'d', 1},
        {'press_a', 1},
        {'w', 240},
        {'press_a', 1},
        {'w', 180},
        {'press_b', 13},
        {'u', 3}, -- back into grass
        {'w', 60}, -- done
        
        {'w', 30},
        {'l', 1}, --realign
        {'w', 16},
        {'spin_fast', 50},
        {'w', 900},
        {'l', 2},
        {'u', 2},
        {'use_move', 1},
        {'l', 1}, -- realign on teleport
        {'w', 900},
        {'x', 15},
        {'d', 1},
        {'r', 1},
        {'x', 60}, -- close menu
        {'use_move', 1}, -- run away
        {'press_b', 6},
    
        {'d', 1},
        {'grass_cycle', 1},
        {'d', 4},
        {'w', 30},
        {'reset_start', 1}, -- done priming eevee
       
        -- go to rival battle 
        {'r', 3},
        {'u', 2},
        {'r', 2},
        {'u', 6},
        {'r', 12},
        {'w', 540},
        {'r', 10},
        {'w', 540},
        {'r', 3},
        {'d', 2},
        {'r', 32},
        {'u', 3},
        {'r', 9},
        {'d', 3},
        {'r', 11},
        {'w', 540}, -- inside gate
        {'save', '21-BeforeRivalBattle'},

        -- THE PLAN
        -- > Staravia goes down to close combat but we don't want infernape to get intimidated (or quick attack critted)
        --  > So we can send someone else in and then switch to infernape, who can tank a wing attack crit, but...
        --      > What if staravia uses double team?
        --          > we're screwed
        --  > Need to trick the AI out of using double team
        --  > AI prefers to use double team if its health is high (+3)
        --  > But AI will prefer even more to use a move that KO's (+4)
        --      > If we get eevee to <=13 health, then guarenteed regardless of stats that ai will choose quick attack and not double team
        --      > Switch in infernape, tank crit, tank another quick attack crit, still lives
        {'x', 15}, -- equip expshare to togepi
        {'w', 60},
        {'u', 4},
        {'press_a', 1},
        {'w', 180},
        {'l', 1},
        {'w', 60},
        {'l', 1},
        {'w', 60},
        {'l', 1},
        {'w', 60},
        {'l', 1},
        {'w', 60},
        {'d', 26},
        {'w', 60},
        {'u', 1},
        {'w', 60},
        {'press_a', 2},
        {'w', 240},
        {'r', 1},
        {'press_a', 1},
        {'w', 60},
        {'press_b', 11}, -- done doing that

        {'r', 4}, -- start battle
        {'w', 180},
        {'press_b', 19},
        {'w', 1800},
        {'d', 1},
        {'r', 2},
        {'w', 60},
        {'press_a', 1},
        {'w', 180},
        {'d', 1},
        {'press_a', 2},
        {'w', 1620},
        {'press_a', 1},
        {'w', 60},
        {'d', 1},
        {'use_move', 1},
        {'press_b', 32},
        {'use_move', 1},
        {'press_b', 32},
        {'use_move', 1},
        {'press_b', 32},
        {'press_a', 1},
        {'use_move', 1},
        {'w', 240},
        {'press_b', 1},
        {'w', 60},
        {'press_b', 1},
        {'w', 360},
        {'press_a', 1},
        {'w', 180},
        {'d', 1},
        {'r', 1},
        {'d', 1},
        {'press_a', 1},
        {'w', 60},
        {'press_a', 1},
        {'w', 2400}, -- togepi evolves // addendum: Technically togepi could be adversarially kept at a lower friendship than calculated by simulations to be the bottom amount of friendship gained over time spent walking between reaching level 17 back at ~3000 steps and now.  This is easily ammended, by doing some laps in a silent area nearby hearthome.
        {'save', '22-TogepiEvolves'},
        {'press_a', 1},
        {'w', 1800},
        {'press_a', 22},
        {'w', 60},
        {'l', 6}, -- go back to old chat
        {'w', 540},
        {'d', 2},
        {'l', 53},
        {'w', 540},
        {'l', 10},
        {'w', 540},
        {'l', 11},
        {'u', 8},
        {'l', 4},
        {'x', 15},
        {'press_b', 1},
        {'x', 15},
        {'w', 60},
        {'press_a', 1},
        {'u', 31},
        {'w', 60},
        {'press_a', 2},
        {'press_b', 9},
        {'l', 7},
        {'u', 5},
        {'l', 5},
        {'d', 10},
        {'l', 32},
        {'w', 540},
        {'u', 8},
        {'l', 5},
        {'d', 3},
        {'l', 5},
        {'u', 2},
        {'l', 5},
        {'d', 10},
        {'l', 10},
        {'u', 10},
        {'w', 60},
        {'press_a', 2},
        {'use_repel', 1},
        {'u', 9},
        {'l', 4},
        {'w', 540},
        {'l', 37},
        {'u', 23},
        {'l', 4},
        {'r', 4},
        {'l', 4},
        {'r', 4},
        {'l', 4},
        {'r', 4},
        {'l', 4},
        {'r', 4},
        {'l', 4},
        {'r', 4},
        {'w', 60},
        {'press_b', 3},
        {'l', 3},
        {'u', 3},
        {'w', 540},
        {'y', 30},
        {'u', 10},
        {'w', 540},
        {'r', 4},
        {'uf', 1440}, -- inside eternia
        {'w', 30},
        {'y', 30}, -- go heal
    {'w', 60},
    {'r', 2},
    {'u', 2},
    {'w', 540},
    {'pokecenter_heal', 1},
    {'press_b', 5},
    {'d', 8},
    {'w', 540},
    {'d', 2},
    {'l', 34},
    {'u', 4},
    {'l', 13},
    {'u', 7},
    {'l', 3},
    {'w', 540},
    {'l', 12},
    {'u', 3},
    {'w', 60},
    {'press_a', 12},
    {'w', 60},
    {'u', 3},
    {'r', 3},
    {'u', 2},
    {'use_repel', 1}, -- into old chat
    {'u', 13},
    {'l', 3},
    {'u', 3},
    {'w', 540},
    {'u', 5},
    {'l', 8}, -- do laps until repel runs out
    {'u', 8},
    {'r', 15},
    {'d', 8},
    {'l', 15},
    {'u', 8},
    {'r', 15},
    {'d', 8},
    {'l', 6},
    {'w', 60},
    {'press_b', 1},
    {'w', 60},
    {'x', 15}, -- manage items
    {'w', 60},
    {'u', 1},
    {'press_a', 1},
    {'w', 180},
    {'r', 1},
    {'press_a', 1},
    {'d', 2},
    {'press_a', 1},
    {'d', 1},
    {'press_a', 1},
    {'w', 60},
    {'press_a', 1},
    {'d', 1},
    {'press_a', 1},
    {'d', 2},
    {'press_a', 2},
    {'w', 180},
    {'d', 24},
    {'u', 1},
    {'press_a', 1},
    {'w', 240},
    {'press_a', 1},
    {'w', 60},
    {'l', 1},
    {'press_a', 1},
    {'d', 3},
    {'press_a', 1},
    {'u', 1},
    {'press_a', 1},
    {'w', 180},
    {'press_b', 9}, -- ready to train part 1
    {'save', '23-BeforeTrainingGastly'},

    {'custom10', 16}, -- up to 19 // learn confuse ray

    {'w', 700},
    {'press_b', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 180},
    {'press_b', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 700},
    {'d', 1},
    {'custom10', 9}, -- finish off first round, get to 20 on most seeds
    -- go heal
    {'w', 900}, -- in case of fight on realign
    {'save', '24-AfterFirstRound'},

    {'d', 1}, -- bump stair or down input in fight
    {'x', 15},
    {'r', 1},
    {'press_a', 2}, -- run away
    {'press_b', 12},
    {'w', 300}, 
    {'x', 15}, -- apply repel
    {'w', 60},
    {'d', 1},
    {'press_a', 1},
    {'w', 180},
    {'u', 13},
    {'press_a', 2},
    {'w', 180},
    {'press_b', 9},
    {'l', 6},
    {'d', 7},
    {'w', 540},
    {'d', 17},
    {'w', 60},
    {'press_a', 12}, -- cut down tree
    {'d', 3},
    {'r', 11},
    {'d', 2},
    {'r', 4},
    {'w', 540}, -- exit into route 205
    {'r', 3},
    {'d', 7},
    {'r', 11},
    {'d', 4},
    {'r', 34},
    {'u', 4},
    {'w', 420},
    {'u', 5},
    {'w', 60},
    {'press_b', 4},
    {'pokecenter_heal', 1},
    {'press_b', 5},
    {'d', 8},
    {'w', 540},
    {'l', 3},
    {'d', 3},
    {'l', 32},
    {'u', 4},
    {'l', 13},
    {'u', 7},
    {'l', 3},
    {'w', 540},
    {'l', 13},
    {'u', 4},
    {'r', 1},
    {'w', 60},
    {'press_a', 6},
    {'w', 360},
    {'r', 1},
    {'u', 3},
    {'r', 3},
    {'u', 2},
    {'w', 60},
    {'use_repel', 1},
    {'u', 14},
    {'l', 3},
    {'u', 2},
    {'w', 540},
    {'u', 5},
    {'r', 7},
    {'u', 7},
    {'l', 13},
    {'d', 7},
    {'r', 13},
    {'l', 11},
    {'r', 3},
    {'d', 6},
    {'l', 7},
    {'u', 3},
    {'d', 3},
    {'r', 6},
    {'l', 6},
    {'u', 1},
    {'w', 60},
    {'press_b', 3}, -- back in position
    {'save', '25-BeforeSecondRound'},

    {'custom10', 15}, -- reach level 22 // learn sucker punch
    {'custom11', 10}, 
    {'save', '26-AfterSecondRound'},

    {'u', 10},
    {'w', 60},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 4},
    {'w', 1200},

    {'use_repel', 1}, -- leave chateau
    {'d', 1},
    {'w', 60},
    {'r', 9},
    {'d', 2},
    {'w', 540},

    {'d', 17},
    {'w', 60},
    {'press_a', 12}, -- cut down tree
    {'d', 3},
    {'r', 11},
    {'d', 2},
    {'r', 4},
    {'w', 540}, -- exit into route 205
    {'r', 3},
    {'d', 7},
    {'r', 11},
    {'d', 4},
    {'r', 34},
    {'u', 4},
    {'w', 420},
    {'u', 5},
    {'w', 60},
    {'press_b', 4},
    {'pokecenter_heal', 1},
    {'press_b', 5},
    {'d', 8},
    {'w', 540},
    {'l', 3},
    {'d', 3},
    {'l', 32},
    {'u', 4},
    {'l', 13},
    {'u', 7},
    {'l', 3},
    {'w', 540},
    {'l', 13},
    {'u', 4},
    {'r', 1},
    {'w', 60},
    {'press_a', 6},
    {'w', 360},
    {'r', 1},
    {'u', 3},
    {'r', 3},
    {'u', 2},
    {'w', 60},
    {'use_repel', 1},
    {'u', 14},
    {'l', 3},
    {'u', 2},
    {'w', 540},
    {'u', 5},
    {'r', 7},
    {'u', 7},
    {'l', 13},
    {'d', 7},
    {'r', 13},
    {'l', 11},
    {'r', 3},
    {'d', 6},
    {'l', 7},
    {'u', 3},
    {'d', 3},
    {'r', 6},
    {'l', 6},
    {'u', 1},
    {'w', 60},
    {'press_b', 3}, -- back in position
    {'save', '27-BeforeThirdRound'},

    {'custom10', 25}, -- full send, 25 flame wheels, max xp somewhere around 2799 and min around 2411,  so we won't evolve gastly just yet 
    {'save', '28-AfterThirdRound'},

    {'w', 900}, -- in case of fight on realign
    {'d', 1}, -- bump wall or down input in fight
    {'x', 15},
    {'r', 1},
    {'press_a', 2}, -- run away
    {'press_b', 12},
    {'w', 300}, 
{'use_repel', 1}, -- leave chateau
    {'d', 1},
    {'w', 60},
    {'r', 9},
    {'d', 2},
    {'w', 540},

    {'d', 17},
    {'w', 60},
    {'press_a', 12}, -- cut down tree
    {'d', 3},
    {'r', 11},
    {'d', 2},
    {'r', 4},
    {'w', 540}, -- exit into route 205
    {'r', 3},
    {'d', 7},
    {'r', 11},
    {'d', 4},
    {'r', 34},
    {'u', 4},
    {'w', 420},
    {'u', 5},
    {'w', 60},
    {'press_b', 4},
    {'pokecenter_heal', 1},
    {'press_b', 5},
    {'d', 8}, -- go to mart to buy repels and mail
    {'w', 540},


    {'d', 18},
    {'r', 5},
    {'u', 2},
    {'w', 540},
    {'u', 4},
    {'w', 60},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 180},
    {'d', 22},
    {'u', 2},
    {'press_a', 1},
    {'w', 180},
    {'u', 9},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 180},
    {'press_a', 1},
    {'w', 180},
    {'press_b', 9},
    {'l', 2},
    {'u', 1},
    {'w', 60},
    {'press_a', 2},
    {'w', 180},
    {'press_a', 5},
    {'press_b', 6}, -- done with purchases
    
    {'press_b', 1},
{'r', 2},
{'d', 6},
{'w', 540},
{'l', 6},
{'u', 17},
{'l', 33},
{'u', 4},
{'l', 12},
{'u', 6},
{'l', 4},
{'w', 540},
{'l', 12},
{'u', 4},
{'w', 60},
{'press_a', 6},
{'w', 180},
{'u', 3},
{'r', 3},
{'u', 2},
{'w', 60}, -- reset repel position
{'x', 15},
{'press_a', 1},
{'w', 240},
{'d', 17},
{'u', 1},
{'w', 60},
{'press_a', 2},
{'w', 180},
{'press_b', 8},
{'u', 14},
{'l', 3},
{'u', 2},
{'w', 540},
{'u', 5},
{'r', 7},
{'u', 7},
{'l', 13},
{'d', 7},
{'r', 13},
{'l', 11},
{'r', 3},
{'d', 6},
{'l', 7},
{'u', 3},
{'d', 3},
{'r', 6},
{'l', 6},
{'u', 1},
{'w', 60},
{'press_b', 3}, -- back in position // final cycle
{'save', '29-BeforeFinalCycle'},

{'custom10', 10},
{'custom11', 10}, -- max xp seeds will be close to evolving after 10 
{'press_a', 1}, -- actually learn shadow punch
{'w', 120},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 180},
{'d', 1},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 250}, -- done learning shadow punch
{'w', 300}, 
{'use_repel', 1}, -- leave chateau
    {'d', 1},
    {'w', 60},
    {'r', 9},
    {'d', 2},
    {'w', 540},
    {'d', 17},
    {'w', 60},
    {'press_a', 12}, -- cut down tree
    {'d', 3},
    {'r', 11},
    {'d', 2},
    {'r', 4},
    {'w', 540}, -- exit into route 205
    {'r', 3},
    {'d', 7},
    {'r', 11},
    {'d', 4},
    {'r', 34},
    {'u', 4},
    {'w', 420},
    {'u', 5},
    {'w', 60},
    {'press_b', 4},
    {'pokecenter_heal', 1},
    {'press_b', 5},
    {'d', 8}, -- done training gastly
    {'w', 540},
    {'save', '30-DoneTrainingGastly'},

}
b = {

    
    {'press_a', 1}, -- old code
    {'d', 1},
    {'press_a', 1},
    {'w', 1800},
    {'press_a', 1},
    {'w', 60},
    {'press_a', 1},
    {'w', 360},
    {'press_a', 1},
    {'w', 300},
    {'d', 2},
    {'w', 60},
    {'press_a', 1},
    {'w', 60},
    {'press_a', 1},
    {'w', 1400},
    {'press_a', 1},
    {'w', 2440},
    {'press_b', 8},
    {'w', 60},
    {'x', 15},
    {'d', 1},
    {'press_a', 1},
    {'w', 180},
    {'d', 19},
    {'w', 60},
    {'u', 1},
    {'press_a', 2},
    {'w', 180},
    {'d', 1},
    {'press_a', 2},
    {'w', 180},
    {'press_b', 16},
    {'l', 4},
    {'u', 4},
    {'l', 2},
    {'u', 3},
    {'w', 360},
    {'press_b', 7},
    {'w', 1440},
    {'use_move', 1},
    {'press_b', 15},
    {'use_move', 1},
    {'press_b', 12},
    {'w', 60},
    
}

b = {

    -- {'x', 15}, -- rare candy eevee to 32
    -- {'w', 60},
    -- {'u', 4},
    -- {'press_a', 1},
    -- {'w', 180},
    -- {'d', 20},
    -- {'u', 6},
    -- {'w', 60},
    -- {'press_a', 2},
    -- {'w', 60},
    -- {'press_a', 12},
    -- {'press_b', 12}, -- done
    
    -- {'d', 3},
    -- {'r', 4},
    -- {'u', 1},
    -- {'w', 60},
    -- {'press_a', 15}, -- talk to fantina
    -- {'w', 1440},
    -- {'u', 2}, -- align
    -- {'use_move', 1}, -- substitute // duskull can't break substitute with pursuit or future sight (it can't crit).  Eevee KOs in 2 turns, possibly 3 if we trigger super potion
    -- {'press_a', 1}, 
    -- {'d', 1},
    -- {'w', 60},
    -- {'use_move', 1}, -- use bite 4 times, accounting for potion
    -- {'w', 60},
    -- {'press_b', 22}, -- stay in 
    -- {'press_a', 1},
    -- {'u', 1},
    -- {'use_move', 3}, -- theoretically a duskull with max crit pursuit and max damage future sight could destroy our substitute when future sight hits.  Using substitute a few times mitigates this
    -- {'press_a', 1},
    -- {'d', 1},
    -- {'r', 1},
    -- {'w', 60},
    -- {'use_move', 22}, -- stall out haunter pt 1
    -- {'d', 1},
    -- {'press_a', 1}, -- use a potion.  Idk why I did it here instead of right before finishing stalling, but it doesn't matter
    -- {'w', 60},
    -- {'press_a', 1},
    -- {'w', 60},
    -- {'r', 2},
    -- {'w', 60},
    -- {'press_a', 1},
    -- {'w', 60},
    -- {'press_a', 1},
    -- {'w', 120},
    -- {'press_a', 1}, -- potion used // heals off substitute damage
    -- {'w', 1260}, 
    -- {'u', 1},
    -- {'use_move', 9}, -- finish stalling
    -- {'d', 1},
    -- {'r', 2},
    -- {'press_a', 1},
    -- {'w', 120},
    -- {'r', 1},
    -- {'press_a', 2},
    -- {'w', 1440}, -- switch out togepi 
    -- {'d', 1},
    -- {'r', 2},
    -- {'press_a', 1},
    -- {'w', 120},
    -- {'r', 1},
    -- {'press_a', 3},
    -- {'w', 1200}, -- switch eevee back out // we do this to allow ourselves to put out a fresh substitute.  Damage from future sight of pursuit from the carryover substitute on duskull would make mismagius more likely to break the substitute on turn 1, introducing additional seeds into the mix
    -- {'use_move', 1}, -- use substitute
    -- {'press_a', 1},
    -- {'r', 1},
    -- {'use_move', 6}, -- use double team, max out evasion to reduce pool of seeds and encourage magical leaf over psybeam
    -- {'d', 1},
    -- {'press_a', 1},
    -- {'w', 120},
    -- {'press_a', 3},
    -- {'w', 120},
    -- {'press_a', 1},
    -- {'w', 1440}, -- potion
    -- {'press_a', 1},
    -- {'r', 1},
    -- {'d', 1},
    -- {'press_a', 3},
    -- {'w', 1440}, -- xspecialDefend
    -- {'press_a', 1},
    -- {'w', 120},
    -- {'press_a', 3},
    -- {'w', 1440}, -- xspeed
    -- {'u', 1},
    -- {'press_a', 1},
    -- {'l', 1},
    -- {'d', 1},
    -- {'w', 60},
    -- {'use_move', 4}, -- finish off haunter with a couple bites
    -- {'press_b', 25},
    -- {'use_move', 2}, -- double bite
    -- {'custom8', 1}, -- full heal or bite
    -- {'custom9', 1}, -- energy root or bite
    -- {'custom8', 1}, -- full heal or bite
    -- {'custom9', 1}, -- energy root or bite
    -- {'custom8', 1}, -- full heal or bite
    -- {'custom9', 1}, -- energy root or bite
    -- {'custom8', 1}, -- full heal or bite
    -- {'use_move', 2},
    -- {'custom9', 1}, -- heal for specific seeds
    -- {'use_move', 3},
    -- {'w', 240},
    -- {'press_b', 40},
    {'l', 6},
    {'u', 2}, -- realignment 
    {'l', 4},
    {'u', 2},
    {'l', 3},
    {'u', 8},
    {'w', 60},
    {'r', 2},
    {'u', 2},
    {'w', 60}, -- sync 
    {'l', 4},
    {'w', 60},
    {'r', 11},
    {'w', 240},
    {'d', 2},
    {'r', 25},
    {'w', 60},
    {'d', 18},
    {'w', 60},
    {'u', 8},
    {'w', 240},
    {'l', 8},
    {'d', 7},
    {'w', 540}, -- out of gym
    {'d', 2}, -- go heal
    {'l', 35},
    {'u', 4},
    {'w', 540},
    {'pokecenter_heal', 1},
    {'press_b', 5}, -- done
    -- {'save', '20-AfterFantinaFight'},
}

client.unpause()
client.unpause_av()
m.executeOrders(a)
client.pause_av()
client.pause()


================================================
FILE: commands/4.lua
================================================
package.path = "./commands/?.lua;"
console.clear()
movement = loadfile('movement.lua')
m = movement()
scriptName = "Script4"

-- daycare 1
custom1 = {
    {'rf', 170},
    {'lf', 170},
}
-- training in maniac tunnel
custom2 = {
    {'x', 15},
    {'w', 60},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'d', 1},
    {'press_a', 1},
    {'w', 1440},
    {'use_move', 1},
    {'press_b', 1},
    {'w', 60},
    {'press_b', 1},
    {'w', 300},    
}
-- same as above but giga drain
custom3 = {
    {'x', 15},
    {'w', 60},
    {'press_a', 1},
    {'w', 120},
    {'press_a', 1},
    {'d', 1},
    {'press_a', 1},
    {'w', 1440},
    {'press_a', 1},
    {'w', 270},
    {'r', 1},
    {'press_a', 1},
    {'w', 1260},
    {'press_b', 1},
    {'w', 60},
    {'press_b', 1},
    {'w', 300},    
}
-- giga drain stopping rule
custom5 = {
    {'x', 15},
    {'w', 60},
    {'press_a', 1}, -- open pokemenu
    {'w', 360},
    {'press_a', 1}, -- open switch menu
    {'w', 360},
    {'u', 4}, -- to sweet scent // lock cursor in corner of move forget screen
    {'press_a', 1}, -- use sweet scent
    {'w', 1440},
    {'press_a', 1},
    {'w', 270},
    {'r', 1},
    {'press_a', 1},
    {'w', 1260},
    {'x', 30},
    {'w', 60},
    {'x', 30},
    {'w', 600},
}
-- same as above but we use magical leaf instead
custom4 = {
    {'x', 15},
    {'w', 60},
    {'press_a', 1}, -- open pokemenu
    {'w', 360},
    {'press_a', 1}, -- open switch menu
    {'w', 360},
    {'u', 4}, -- to sweet scent // lock cursor in corner of move forget screen
    {'press_a', 1}, -- use sweet scent
    {'w', 1440},
    {'press_a', 1},
    {'w', 270},
    {'press_a', 1},
    {'w', 1260},
    {'x', 30},
    {'w', 60},
    {'x', 30},
    {'w', 600},
}

-- go from maniac tunnel to pokecenter and back
custom6 = {
    {'d', 2}, -- back out to pokecenter
    {'r', 2},
    {'w', 540},
    {'r', 4},
    {'u', 11},
    {'r', 2},
    {'u', 16},
    {'w', 540},
    {'u', 10},
    {'w', 540},
    {'u', 10},
    {'r', 4},
    {'u', 10},
    {'l', 10},
    {'u', 5},
    {'press_b', 5},
    {'u', 1},
    {'r', 6},
    {'u', 4},
    {'w', 540},
    {'pokecenter_heal', 1}, -- heal, regain pp
    {'press_b', 4},
    {'d', 8},
    {'w', 540},
    {'d', 2},
    {'l', 6},
    {'d', 6},
    {'r', 10},
    {'d', 10},
    {'l', 5},
    {'d', 9},
    {'r', 2},
    {'d', 4},
    {'w', 540},
    {'d', 10},
    {'w', 540},
    {'d', 24},
    {'l', 5},
    {'l', 3},
    {'w', 540}, -- inside maniac tunnel
}
custom7 = {
    {'x', 15},
    {'w', 60},
    {'press_a', 1},
    {'w', 300},
    {'r', 1},
    {'d', 2},
    {'w', 60},
    {'press_a', 1},
    {'d', 2},
    {'w', 60},
    {'press_a', 1},
    {'d', 1},
    {'w', 60},
    {'press_a', 1},
    {'w', 240},
    {'press_b', 9},
    {'w', 60},
    {'x', 15},
    {'w', 60},
    {'d', 1},
    {'press_a', 1},
    {'w', 240},
    {'u', 17},
    {'d', 12},
    {'w', 60},
    {'press_a', 1},
    {'w', 240},
    {'d', 1},
    {'w', 60},
    {'press_a', 1},
    {'w', 300},
    {'press_a', 1},
    {'w', 360},
    {'press_b', 1},
    {'w', 180},
    {'u', 1},
    {'w', 60},
    {'press_b', 8},
    {'w', 120},
    {'x', 15},
    {'w', 120},
    {'u', 1},
    {'w', 60},
    {'press_b', 4},

}
a = {
    -- BREAKPOINT
    -- TODO : Need to catch something else besides the valley mon, because we need that shellos later
    -- can easily make do with a ravaged path mon, assuming we havne't used ravaged path for training up till now
    {'save', '00-StartOfScipt4'},
    {'d', 3}, -- go to valley windworks
    {'l', 34},
    {'u', 4},
    {'l', 12},
    {'d', 2},
    {'l', 15},
    {'d', 8},
    {'w', 60},
    {'press_a', 7},
    {'w', 120},
    {'d', 3},
    {'r', 4},
    {'d', 16},
    {'l', 7},
    {'d', 5},
    {'l', 25},
    {'d', 7},
    {'l', 4},
    {'w', 60},
    {'press_a', 6},
    {'w', 120},
    {'l', 2},
    {'d', 22},
    {'l', 4},
    {'d', 9},
    {'r', 6},
    {'d', 19},
    {'w', 60},
    {'r', 2},
    {'d', 10},
    {'l', 3},
    {'d', 4},
    {'w', 60},
    {'d', 12},
    {'w', 60},
    {'d', 20},
    {'r', 8},
    {'d', 3},
    {'r', 6},
    {'u', 3},
    {'w', 60}, -- arrived at windworks
    {'x', 15}, -- switch lvl 19 togetic to front
    {'w', 60},
    {'u', 1},
    {'press_a', 1},
    {'w', 180},
    {'r', 1},
    {'press_a', 1},
    {'d', 1},
    {'press_a', 1},
    {'l', 1},
    {'press_a', 1},
    {'press_b', 10}, 
    {'u', 1},
    {'l', 1}, -- in grass
    {'save', '01-BeforeCatchingValleyMon'},
    {'spin_fast', 40}, -- look for wild
    {'w', 100}, 
    {'l', 2},
    {'u', 2}, -- align on fight
    {'press_a', 1},
    {'d', 1},
    {'use_move', 1},
    {'d', 1},
    {'r', 2},
    {'press_a', 1},
    {'w', 60},
    {'r', 3},
    {'u', 1},
    {'press_a', 2},
    {'w', 1080},
    {'d', 1},
    {'press_a', 1},
    {'w', 120},
    {'r', 1},
    {'press_a', 1},
    {'w', 60},
    {'d', 1},
    {'press_a', 2},
    {'w', 1800},

    {'save', '02-AfterCatchingValleyMon'},

    {'press_a', 1}, -- name buizel/shellos/pachirisu/shinx
{'w', 180},
{'press_a', 1},
{'w', 180},
{'d', 2},
{'r', 5},
{'u', 1},
{'press_a', 1},
{'u', 1},
{'l', 1},
{'press_a', 1},
{'w', 60},
{'d', 2},
{'r', 1},
{'press_a', 1},
{'l', 4},
{'d', 1},
{'press_a', 1},
{'u', 1},
{'r', 7},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'u', 1},
{'l', 2},
{'u', 1},
{'l', 1},
{'u', 1},
{'l', 2},
{'press_a', 1},
{'w', 60},
{'d', 2},
{'r', 5},
{'u', 1},
{'press_a', 1},
{'l', 2},
{'w', 60},
{'u', 1},
{'l', 1},
{'press_a', 1},
{'w', 60},
{'d', 3},
{'l', 3},
{'press_a', 1},
{'r', 4},
{'press_a', 1},
{'u', 1},
{'r', 4},
{'press_a', 1},
{'u', 1},
{'r', 2},
{'u', 1},
{'r', 1},
{'w', 60},
{'press_a', 1},
{'w', 360}, -- done naming // 01
{'d', 1}, -- back to hearthome
{'grass_cycle', 1},
{'d', 5},
{'w', 60},
{'reset_start', 1}, 
{'w', 60},
{'l', 11},
{'u', 22},
{'l', 4},
{'x', 15},
{'w', 60},
{'u', 4},
{'press_a', 1},
{'w', 180},
{'press_a', 2},
{'w', 180},
{'press_b', 7},
{'l', 8},
{'u', 13},
{'l', 2},
{'u', 32},
{'w', 60},
{'r', 5},
{'u', 9},
{'l', 17},
{'w', 60},
{'u', 6},
{'r', 10},
{'u', 12},
{'r', 3},
{'u', 14},
{'w', 60},
{'press_b', 2},
{'u', 6},
{'r', 3},
{'w', 60},
{'press_a', 6},
{'w', 180},
{'r', 6},
{'u', 8},
{'r', 4},
{'d', 2},
{'r', 22},
{'u', 5},
{'r', 6},
{'u', 15},
{'l', 4},
{'u', 3},
{'press_a', 7},
{'w', 60},
{'u', 9},
{'r', 18},
{'u', 2},
{'r', 10},
{'d', 4},
{'r', 32},
{'d', 37},
{'w', 540},
{'save', '03-BeforeCycleRoad'},

{'y', 30}, -- onto bike to get into cycle road
{'w', 60},
{'d', 10},
{'w', 540},
{'r', 3},
{'d', 16},
{'l', 2},
{'d', 3},
{'w', 1080}, -- down we fly
{'l', 3},
{'d', 2},
{'w', 540},
{'d', 10},
{'w', 540},
{'y', 30}, -- out of cycle road
{'x', 15}, -- switch infernape back to front so we don't encounter lvl 19 stuff in mt cornet
{'w', 60},
{'u', 1},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'d', 1},
{'press_a', 1},
{'r', 1},
{'press_a', 1},
{'w', 180},
{'press_b', 7},
{'x', 15},
{'w', 60},
{'d', 1},
{'press_b', 4},
{'d', 24},
{'r', 38},
{'u', 2},
{'r', 4},
{'w', 540},
{'use_repel', 1},
{'d', 17},
{'r', 5},
{'u', 2},
{'r', 8},
{'u', 10},
{'r', 5},
{'d', 2},
{'r', 6},
{'u', 3},
{'r', 4},
{'d', 8},
{'r', 2},
{'w', 540},
{'r', 30},
{'u', 10},
{'r', 5},
{'w', 60},
{'press_b', 5},
{'r', 3},
{'d', 5},
{'r', 2},
{'grass_cycle', 1}, -- lets not waste another repel now that we've already encountered here
{'r', 1},
{'grass_cycle', 1},
{'r', 1},
{'grass_cycle', 1},
{'r', 1},
{'press_a', 1},
{'r', 1},
{'grass_cycle', 1},
{'r', 1},
{'w', 60},
{'r', 8},
{'d', 12},
{'w', 60},
{'reset_start', 1},
{'w', 60},
{'u', 4},
{'r', 8},
{'w', 540}, -- into hearthome
{'r', 10},
{'w', 540},
{'r', 32},
{'u', 15},
{'l', 18},
{'u', 4},
{'l', 5},
{'u', 6},
{'r', 5},
{'u', 6},
{'l', 4},
{'u', 2},
{'l', 2},
{'u', 2},
{'w', 540},
{'pokecenter_heal', 1},
{'press_b', 5},
{'d', 8},
{'w', 540}, -- 02-InHearthome
{'save', '04-InHearthome'},

{'r', 35}, -- go to mart to get parlyz heal
{'d', 11},
{'l', 2},
{'d', 6},
{'l', 22},
{'u', 4},
{'w', 540},
{'u', 4},
{'w', 60},
{'press_a', 1},
{'w', 120},
{'press_a', 1},
{'w', 180},
{'d', 6},
{'press_a', 1},
{'w', 180},
{'u', 3},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 120},
{'press_b', 12},
{'w', 60},
{'l', 2},
{'u', 1},
{'w', 60},
{'press_a', 1},
{'w', 180},
{'press_a', 1},
{'w', 180},
{'press_a', 2},
{'w', 180},
{'press_a', 1},
{'press_b', 8}, -- done buying mail
{'d', 5}, -- to rt 209
{'r', 2},
{'d', 2},
{'w', 540},
{'d', 4},
{'r', 13},
{'d', 12},
{'r', 18},
{'w', 540},
{'r', 10},
{'w', 540}, -- in route // 03-InRoute
{'save', '05-InRoute'},

{'x', 15}, -- put exp share on togetic
{'w', 60},
{'u', 4},
{'press_a', 1},
{'w', 180},
{'d', 30},
{'u', 2},
{'press_a', 2},
{'w', 180},
{'r', 1},
{'d', 1},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 120},
{'d', 1},
{'press_a', 2},
{'w', 180},
{'r', 1},
{'press_a', 1},
{'w', 60},
{'press_a', 1},
{'w', 60},
{'press_b', 7}, -- done moving items

    
{'r', 10}, -- go to trainer
{'w', 1260},
{'press_b', 6},
{'w', 1440},
{'u', 2}, -- align
{'press_a', 1}, -- patch
{'use_move', 1},
{'press_b', 12},
{'press_a', 1},
{'r', 1},
{'d', 1},
{'use_move', 1},
{'press_b', 11},
{'use_move', 1},
{'press_b',
Download .txt
gitextract_sk5cygt3/

├── .gitignore
├── LICENSE
├── README.md
├── autosaves/
│   ├── Script1/
│   │   └── placeholder.txt
│   ├── Script2/
│   │   └── placeholder.txt
│   ├── Script3/
│   │   └── placeholder.txt
│   ├── Script4/
│   │   └── placeholder.txt
│   ├── Script5/
│   │   └── placeholder.txt
│   ├── Script6/
│   │   └── placeholder.txt
│   ├── Script7/
│   │   └── placeholder.txt
│   ├── Script8/
│   │   └── placeholder.txt
│   └── Script9/
│       └── placeholder.txt
└── commands/
    ├── 1.lua
    ├── 2.lua
    ├── 3.lua
    ├── 4.lua
    ├── 5.lua
    ├── 6.lua
    ├── 7.lua
    ├── 8.lua
    ├── 9.lua
    ├── alterMemory.lua
    ├── full.lua
    ├── movement.lua
    ├── recordInputs.lua
    └── startAll.lua
Condensed preview — 26 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (763K chars).
[
  {
    "path": ".gitignore",
    "chars": 21,
    "preview": "autosaves/**/*.state\n"
  },
  {
    "path": "LICENSE",
    "chars": 35149,
    "preview": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free "
  },
  {
    "path": "README.md",
    "chars": 7186,
    "preview": "# Overview\n\nThis repository contains a list of inputs that will beat Pokemon Platinum.  Using a combination of technique"
  },
  {
    "path": "autosaves/Script1/placeholder.txt",
    "chars": 0,
    "preview": ""
  },
  {
    "path": "autosaves/Script2/placeholder.txt",
    "chars": 0,
    "preview": ""
  },
  {
    "path": "autosaves/Script3/placeholder.txt",
    "chars": 0,
    "preview": ""
  },
  {
    "path": "autosaves/Script4/placeholder.txt",
    "chars": 0,
    "preview": ""
  },
  {
    "path": "autosaves/Script5/placeholder.txt",
    "chars": 0,
    "preview": ""
  },
  {
    "path": "autosaves/Script6/placeholder.txt",
    "chars": 0,
    "preview": ""
  },
  {
    "path": "autosaves/Script7/placeholder.txt",
    "chars": 0,
    "preview": ""
  },
  {
    "path": "autosaves/Script8/placeholder.txt",
    "chars": 0,
    "preview": ""
  },
  {
    "path": "autosaves/Script9/placeholder.txt",
    "chars": 0,
    "preview": ""
  },
  {
    "path": "commands/1.lua",
    "chars": 25755,
    "preview": "package.path = \"./commands/?.lua;\"\nconsole.clear()\nmovement = loadfile('movement.lua')\nm = movement()\nscriptName = \"Scri"
  },
  {
    "path": "commands/2.lua",
    "chars": 53873,
    "preview": "package.path = \"./commands/?.lua;\"\nconsole.clear()\nmovement = loadfile('movement.lua')\nm = movement()\n\nscriptName = \"Scr"
  },
  {
    "path": "commands/3.lua",
    "chars": 66760,
    "preview": "package.path = \"./commands/?.lua;\"\nconsole.clear()\nmovement = loadfile('movement.lua')\nm = movement()\n\nscriptName = \"Scr"
  },
  {
    "path": "commands/4.lua",
    "chars": 102905,
    "preview": "package.path = \"./commands/?.lua;\"\nconsole.clear()\nmovement = loadfile('movement.lua')\nm = movement()\nscriptName = \"Scri"
  },
  {
    "path": "commands/5.lua",
    "chars": 97139,
    "preview": "package.path = \"./commands/?.lua;\"\nconsole.clear()\nmovement = loadfile('movement.lua')\nm = movement()\nscriptName = \"Scri"
  },
  {
    "path": "commands/6.lua",
    "chars": 44496,
    "preview": "package.path = \"./commands/?.lua;\"\nconsole.clear()\nmovement = loadfile('movement.lua')\nm = movement()\nscriptName = \"Scri"
  },
  {
    "path": "commands/7.lua",
    "chars": 88696,
    "preview": "package.path = \"./commands/?.lua;\"\nconsole.clear()\nmovement = loadfile('movement.lua')\nm = movement()\nalterMemory = load"
  },
  {
    "path": "commands/8.lua",
    "chars": 118572,
    "preview": "package.path = \"./commands/?.lua;\"\nconsole.clear()\nmovement = loadfile('movement.lua')\nm = movement()\nalterMemory = load"
  },
  {
    "path": "commands/9.lua",
    "chars": 62052,
    "preview": "\npackage.path = \"./commands/?.lua;\"\nconsole.clear()\nmovement = loadfile('movement.lua')\nm = movement()\n\nalterMemory = lo"
  },
  {
    "path": "commands/alterMemory.lua",
    "chars": 515,
    "preview": "local alterMemory = {}\npointerAddress = 0x02101D2C\nbattleRngAlter = 330788\npointer = memory.read_u32_le(pointerAddress)\n"
  },
  {
    "path": "commands/movement.lua",
    "chars": 14251,
    "preview": "local movement = {}\nalterMemory = loadfile('alterMemory.lua')\np = alterMemory()\nscriptName = \"None\"\n\npress_a = {\n    {'a"
  },
  {
    "path": "commands/recordInputs.lua",
    "chars": 2279,
    "preview": "package.path = \"./commands/?.lua;\"\nmovement = loadfile('movement.lua')\nm = movement()\n\nfunction consolidate(giLog)\n    n"
  },
  {
    "path": "commands/startAll.lua",
    "chars": 199,
    "preview": "\nconsole.clear()\nscriptName = \"fullRun\"\npackage.path = \"./commands/?.lua;\"\nfor i = 1, 9 do\n    local filename = string.f"
  }
]

// ... and 1 more files (download for full content)

About this extraction

This page contains the full source code of the KeeyanGhoreshi/PokemonPlatinumSingleSequence GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 26 files (13.4 MB), approximately 306.2k tokens. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!