Language…
17 users online: adamlucero,  Anorakun, Blizzard Buffalo, Bumpty, crocodileman94, Eipred,  Fernap, FerpyMcFrosting, Idrinkgrapesoda, Lady_Amethyst, MarkVD100, Pink Gold Peach, River347, Romiori, ShadowMistressYuko, sholmes, SubliminalSiren - Guests: 116 - Bots: 104
Users: 68,942 (2,360 active)
Latest user: Shreya219

Change Number of Dragon Coins in Level

SMW Tweaks → Change Number of Dragon Coins in Level

Tweak Details

Summary: Change Number of Dragon Coins in Level
Parameters:
coins
Coins needed. Byte (8 bits). Defaults to 5.
start_offset
Starting score. One of (defaults to 1000):
  • 10 (= $01)
  • 20 (= $02)
  • 40 (= $03)
  • 80 (= $04)
  • 100 (= $05)
  • 200 (= $06)
  • 400 (= $07)
  • 800 (= $08)
  • 1000 (= $09)
  • 2000 (= $0A)
  • 4000 (= $0B)
  • 8000 (= $0C)
  • 1-Up (= $0D)
  • 2-Up (= $0E)
  • 3-Up (= $0F)
  • 5-Up (= $10)
Code:
org $008FDB
    CMP.b #<coins> ; This is how many coins to draw in the status bar

org $00F349
    CMP.b #<coins> ; This is how many coins to require before setting the "Yoshi coins gotten" flag

org $00F37E
    ADC.b #<start_offset> ; This will change how many points Yoshi coins gives you
    CMP.b #<start_offset>+<coins>-1 ; This is how long it takes to get a 1up
Submitted: by  Telinc1