News:

Don't forget to visit the main site! There's lots of helpful docs, patches, and more!

Main Menu

[SM][ASM] Using Start With Items V2 - Where do you find item values?

Started by Law, August 28, 2013, 08:09:03 AM

Previous topic - Next topic

Law

I'm trying to use JAM's Start With Items V2 ASM, but am having a little issue understanding where one finds the values for the items to start with.

From the code provided:
...
org $81F100     ;code in free space
LDA #$0000 ;store item values here, originally #$0000
;You can see values of each item in SMILE while selecting PLMs.
;Make a sum of values to have 2 items or more.
;Spring Ball have value 0002 and Morphing Ball have value 0004.
;To start with both items add 0002 to 0004. Store 0006 above.

I don't see the correlation where the PLM of the Morphing Ball and the value match up. Checking (in SMILE JX 2.82 w/fix), I see that the PLM of morphing ball has EF23, and has 00 for high and 1A for low, with no information on the 'value' of the item.

So, where do you get this value for all the items?

Quietus

When you're editing PLMs, you will find the values underneath the 'Cancel' button in the middle.  You'll see Item, Value, and then Music.

Alternatively, have a list (excluding beams):
[spoiler]0001   (Varia suit)
0020   (Gravity suit)
0004   (Morph ball)
1000   (Bombs)
0002   (Spring ball)
0008   (Screw attack)
0100   (Hi jump)
0200   (Space jump)
2000   (Speed booster)
4000   (Grappling beam)
8000   (X-ray)
[/spoiler]
:^_^:

passarbye

IMO, using Scyzer's small hex tweak would be easier, but essentially the same process, except you use a hex editor instead of messing with an asm file.
Quote from: Scyzer on April 12, 2010, 01:07:33 AM
Q: "How do I make Samus start with items and beams?"
A: The easiest way is with a short piece of ASM using a hex editor. Grab a hex editor of your choice, open your rom, and go to $80:B2FD ($00B2FD PC address). You should see [9C A2 09]. Replace this with [20 20 EF].
Now go to $80:EF20 ($00EF20 PC address). You should see a whole chunk of FF. Starting at $80:EF20, write the following bytes:
[A9 XX XX 8D A2 09 8D A4 09 A9 YY YY 8D A6 09 8D A8 09 60]
XX XX = item bits to start with (reversed)
YY YY = beam bits to start with (reversed)

The item and beam bits can be seen in SMILE's PLM editor. Simply search for the item to equip, and add it's "value" to the equipped beams/items ASM above. EG, to equip Varia and Gravity suit, and no beams, find the values of Varia and Gravity (0001 and 0020), add them together (0021) then add that value to the ASM ([A9 21 00 8D A2 09 8D A4 09 A9 00 00 8D A6 09 8D A8 09 60])

all you have to do in either case is add the item values together and paste in the result.
you'll see that the 'value' of the PLM is above the 'save definition' button and below the 'cancel' button in smile, while looking at the PLM's properties. (right-click the PLM--> type)

hope this helped. quietus was considerably more to-the-point though :P