Language…
12 users online: AntonioDosGames, Dark Prince, E-man38, Gr8Springy, Heitor Porfirio,  idol, JupiHornet, Macrophaje, MarioMMaster,  PermaBan, Ringo, Sokobansolver - Guests: 189 - Bots: 132
Users: 59,994 (2,162 active)
Latest user: UnwellBeauty

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