Page 1 of 1

[grobda+] Stage codes

Posted: Wed Sep 23, 2015 3:09 pm
by einstein95
If anyone knows of a better way of converting int to BCD, please tell me.
Edit: Thanks pugsy

Code: Select all

  <cheat desc="Finish Current Stage Now!">
    <script state="on">
      <action>maincpu.pb@0918=01</action>
    </script>
  </cheat>

  <cheat desc="Select Next Level">
    <parameter min="1" max="99" step="1"/>
    <script state="run">
      <action>maincpu.pb@0919=param</action>
      <action>maincpu.pb@091A=tobcd(param)</action>
    </script>
  </cheat>

Re: [grobda+] Stage codes

Posted: Wed Sep 23, 2015 11:00 pm
by Pugsy

Code: Select all

maincpu.pb@091A=tobcd(param)

Re: [grobda+] Stage codes

Posted: Sat Dec 19, 2015 6:18 pm
by einstein95
Bumping this as it wasn't added in the last update (also added your fix, pugsy)

Re: [grobda+] Stage codes

Posted: Sun Jan 03, 2016 4:10 pm
by Pugsy
Thanks, added - I missed it because I was the last one to post and that's part of how I flag if I've added it. I think I skipped it because it needed changing to a starting level cheat as select next level cheats are generally not used as they have side effects like needing to be turned off. It's just a matter of adding a simple condition to check if it's on the first level and only poke the value if it is.

Code: Select all

  <cheat desc="Select Starting Level">
    <parameter min="1" max="99" step="1"/>
    <script state="run">
      <action condition="maincpu.pb@0919==01">maincpu.pb@0919=param, maincpu.pb@091A=tobcd(param)</action>
    </script>
  </cheat>