[danchih] Player always have maximum score and others cheats

This forum is the archive of arcade cheats that have already been added to the current or the next release of the cheat file.
Post Reply
User avatar
walterh78
Posts: 54
Joined: Tue Jun 10, 2008 1:51 am
Location: Bahia Blanca, Argentina
Contact:

[danchih] Player always have maximum score and others cheats

Post by walterh78 »

Code: Select all

<mamecheat version="1">

  <cheat desc="Player always have Maximum Score"> <comment>Player Yaku always 99</comment>
    <script state="run">
      <action>maincpu.pw@6046950=0063|(maincpu.pw@6046950 BAND ~FFFF)</action>
    </script>
  </cheat>

  <cheat desc="CPU always have 0 score"> <comment>CPU Yaku always 0</comment>
    <script state="run">
      <action>maincpu.pw@6046952=9DFF|(maincpu.pw@6046952 BAND ~FFFF)</action>
    </script>
  </cheat>

  <cheat desc="Player always have 3 points"> <comment>1 Stage = 3 Points to win</comment>
    <script state="run">
      <action>maincpu.pb@6046966=03|(maincpu.pw@6046966 BAND ~FFFF)</action>
    </script>
  </cheat>

  <cheat desc="CPU always have 0 points"> <comment>1 Stage = 3 Points to win</comment>
    <script state="run">
      <action>maincpu.pb@6046967=00|(maincpu.pw@6046967 BAND ~FFFF)</action>
    </script>
  </cheat>

  <cheat desc="Get a good card now!"> <comment>You need to understand the rules of the Hanafuda to win the game if you use Always Have Good Card</comment>
    <script state="on">
      <action>maincpu.pd@6046774=01091D29|(maincpu.pd@6046774 BAND ~FFFFFFFF)</action>
      <action>maincpu.pd@6046778=2D192515|(maincpu.pd@6046778 BAND ~FFFFFFFF)</action>
      <action>maincpu.pd@604677C=01091D29|(maincpu.pd@604677C BAND ~FFFFFFFF)</action>
      <action>maincpu.pd@6046780=2D192515|(maincpu.pd@6046780 BAND ~FFFFFFFF)</action>
      <action>maincpu.pd@60467A4=01091D29|(maincpu.pd@60467A4 BAND ~FFFFFFFF)</action>
      <action>maincpu.pd@60467A8=2D192515|(maincpu.pd@60467A8 BAND ~FFFFFFFF)</action>
    </script>
  </cheat>

</mamecheat>
"The new XML format is like the high-level language (human-readable) and the old format is like machine language (human-unreadable)"Image
User avatar
Pugsy
Posts: 3675
Joined: Fri Aug 17, 2001 12:59 am
Location: North Wales, UK.
Has thanked: 1 time
Been thanked: 16 times
Contact:

Re: [danchih] Player always have maximum score and others cheats

Post by Pugsy »

Thanks, added. Though, looking at the code you seem to be using a lot of masks which appear to be unneeded.

Is this what you mean? :

Code: Select all

<mamecheat version="1">

  <cheat desc="Player always have Maximum Score"> <comment>Player Yaku always 99</comment>
    <script state="run">
      <action>maincpu.pw@6046950=0063</action>
    </script>
  </cheat>

  <cheat desc="CPU always have 0 Score"> <comment>CPU Yaku always 0</comment>
    <script state="run">
      <action>maincpu.pw@6046952=0000</action>
    </script>
  </cheat>

  <cheat desc="Player always have 3 Points"> <comment>1 Stage = 3 Points to win</comment>
    <script state="run">
      <action>maincpu.pb@6046966=03</action>
    </script>
  </cheat>

  <cheat desc="CPU always have 0 Points"> <comment>1 Stage = 3 Points to win</comment>
    <script state="run">
      <action>maincpu.pb@6046967=00</action>
    </script>
  </cheat>

  <cheat desc="Get a Good Card Now!"> <comment>You need to understand the rules of the Hanafuda to win the game if you use this cheat</comment>
    <script state="on">
      <action>maincpu.pd@6046774=01091D29</action>
      <action>maincpu.pd@6046778=2D192515</action>
      <action>maincpu.pd@604677C=01091D29</action>
      <action>maincpu.pd@6046780=2D192515</action>
      <action>maincpu.pd@60467A4=01091D29</action>
      <action>maincpu.pd@60467A8=2D192515</action>
    </script>
  </cheat>

</mamecheat>
Pugsy

Servicing your cheating needs since 1985 8)

Grab the latest cheat collection:
MAME 0.264 XML cheat collection (3 APRIL 2024) from http://www.mamecheat.co.uk or direct from:-
https://mega.nz/file/SxsQUJoT#jBdz6GLm_ ... QzFGSMms2c (ZIP Archive 3.8 MB)
User avatar
walterh78
Posts: 54
Joined: Tue Jun 10, 2008 1:51 am
Location: Bahia Blanca, Argentina
Contact:

Re: [danchih] Player always have maximum score and others cheats

Post by walterh78 »

You are absolutely right, these masks are unneeded. I'm a little confused with the use of masks. When I need to use masks?
"The new XML format is like the high-level language (human-readable) and the old format is like machine language (human-unreadable)"Image
User avatar
Pugsy
Posts: 3675
Joined: Fri Aug 17, 2001 12:59 am
Location: North Wales, UK.
Has thanked: 1 time
Been thanked: 16 times
Contact:

Re: [danchih] Player always have maximum score and others cheats

Post by Pugsy »

You only need to use masks for bit related cheats (which are not that common), you should never need them for Infinite type cheats.
Pugsy

Servicing your cheating needs since 1985 8)

Grab the latest cheat collection:
MAME 0.264 XML cheat collection (3 APRIL 2024) from http://www.mamecheat.co.uk or direct from:-
https://mega.nz/file/SxsQUJoT#jBdz6GLm_ ... QzFGSMms2c (ZIP Archive 3.8 MB)
User avatar
walterh78
Posts: 54
Joined: Tue Jun 10, 2008 1:51 am
Location: Bahia Blanca, Argentina
Contact:

Re: [danchih] Player always have maximum score and others cheats

Post by walterh78 »

Thanks a lot for your explaination.

Bye
"The new XML format is like the high-level language (human-readable) and the old format is like machine language (human-unreadable)"Image
Post Reply