News:

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

Main Menu

[SM] New Event Data for Different Items

Started by RealRed, August 14, 2014, 11:29:57 AM

Previous topic - Next topic

RealRed

So we've got an event for Powerbombs, and an Event for Morph + Missiles. I've actually done this before, but it was several years ago, and it was also really sloppy... How do I make new events for Varia and Gravity? Also, isn't there some indexed thing where you can add events for several main pickups at once? Well, if someone could point me in the right direction for how to do this, that would be great.

personitis

#1
AD A4 09 29 01 00 F0 07 BD 00 00 AA 4C E6 E5 E8 E8 60 <-- Varia Suit
AD A4 09 29 20 00 F0 07 BD 00 00 AA 4C E6 E5 E8 E8 60 <-- Gravity Suit

Paste that within free space in bank $8F (these are merely copy/paste of the speed booster event :bounce:).
If you want one that checks both suits use:

AD A4 09 29 01 00 F0 0C 29 20 00 F0 07 BD 00 00 AA 4C E6 E5 E8 E8 60

I'm stupid. If you want an event that checks for both, just use on of the two above, but combine the bolded values.

The pointer for the state will be the beginning of where you put this data (e.g. Morph event is E640). Once you want to add the state to the ROM, since SMILE won't pick up on it, you'll have to edit the room header directly via hex. Make sure to do this after you've built your room however cause SMILE has no idea what the new state value is all about and will crash if the room with it is opened. For more specifics on states, I wrote this a while back.

As for combining multiple items, open the PLM editor and find an item then look at the values box. That will show which bits they'll set. Add 'em together from there.

JAM

#2
Sure, check the patch section. Here.

What is does:

Collected item events

FF00   Missiles (any)
FF10   Super Missiles (any)

FF90   Charge Beam
FF98   Ice Beam
FFA0   Wave Beam
FFA8   Spazer
FFB0   Plasma Beam
FFB8   Grappling Beam

FFC0   X-Ray Scope
FFC8   Bombs
FFD0   Hi-Jump Boots
FFD8   Varia Suit
FFE0   Gravity Suit
FFE8   Spring Ball
FFF0   Space Jump
FFF8   Screw Attack


Quantity events

FF05   Max Reserve Energy + Max Energy => 399
FF15   Reserve Energy + Energy => 399

FF20   Max Missiles => 25
FF28   Max Super Missiles => 10         
FF30   Max Power Bombs => 10
FF38   Max Energy => 300           
FF40   Max Reserve Energy => 100

FF48   Missiles => 25
FF50   Super Missiles => 10
FF58   Power Bombs => 10
FF60   Energy => 300
FF68   Reserve Energy => 100


Combinated events

FF73   Power Bombs & Super Missiles & Missiles & Charge Beam
FF78   Super Missiles & Missiles & Charge Beam
FF7D   Missiles & Charge Beam





Quantity and combinated events can be tweaked.