Jump to content

MarkyJoe1990's Sack of ASM Thread


MarkyJoe1990
 Share

Recommended Posts

Instead of making multiple threads for single ASM codes, I'm just gonna toss all my ASM here. Prolly easier on the lads too.

WARNING: Some codes might not function properly! Let me know if this is the case!

Check If All Ally Units Dead

Source

[spoiler=How It Works]Returns true if there are no more Ally Units fielded.

[spoiler=How To Use]Insert it into a location in your ROM, then, in your events, add ASME [EventID] [Event Triggered] [Offset of ASM+1]

Check If More Than 3 Ally Units Dead

Source

[spoiler=How It Works]Returns true if more than three ally units have died.

[spoiler=How To Use]Insert it into a location in your ROM, then, in your events, add ASME [EventID] [Event Triggered] [Offset of ASM+1]

Set Default Options

Source

[spoiler=How It Works]How it works - Sets the following options when the ASM is called in your custom events:

Animation - 2 (Display backgrounds)

Game Speed - Fast

Text Speed - Max

Terrain - On

Unit - Panel

Combat - Strat

Show Objective - On

Subtitle Help - Off

Auto Cursor - Off

Autoend Turns - On

Music - On

Sound Effects - On

Window Color - 3

[spoiler=How To Use]If you like the current options, skip to Step 9.

If you don't like these options, you can change them. Here's how:

1) Open your ROM in Visual Boy Advance.

2) Start a chapter.

3) Go into the options menu.

4) Set your desired options.

5) Go to Tools -> Memory Viewer

6) Go to 0x0202BC38. The first three bytes show the values for your current options.

7) Open up my ASM dump that you downloaded on this thread.

8) Change the following bytes. Shown below:

a2c6fcfc6a30cf4c2e4b15c1dabbb70c.png

Red is the first byte. Blue is the second. Green is the third.

9) Insert the DMP into the desired location of your ROM using a Hex Editor

10) Call the ASM code in your custom events using "ASMC [Offset of inserted ASM]+1"

I made this ASM with guidance from Nintenlord's hacking notes.

Edited by MarkyJoe1990
Link to comment
Share on other sites

I thought about making one of these for my routines, maybe I will.

anyways, do you have the source for these? I'd like a do a custom "if X allies are dead" for a FE5 type deal where if an ally dies and the number of enemies > number of allies then the map music changes

Link to comment
Share on other sites

I thought about making one of these for my routines, maybe I will.

anyways, do you have the source for these? I'd like a do a custom "if X allies are dead" for a FE5 type deal where if an ally dies and the number of enemies > number of allies then the map music changes

It just so happens that I do.

Updated first post.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...