Language…
14 users online: 1UPdudes, blocc, Bubble34500, DashGamer, Gamet2004, LaserShark360, Mariotag1, MarkAlarm, Minuy600, musicalman, RandomType, RZ1, StarWolf3000, YoungsVideos44 - Guests: 73 - Bots: 101
Users: 54,447 (2,091 active)
Latest user: Novahamsber

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