Crazycolorz5's Dump of ASM Crap

inb4 I figure out how to change the supply command to work with any number of characters

… maybe someday.

Yeah of course, it’s a quite stupid amount of work for a simple portrait change. Don’t worry 'bout it, man. :smiley:

…you could technically load a character id set aside for the “promoted” lord during the cutscene, shift them to the lord data and have the stats and items transferred to the “slot” with the promoted character portrait.

Though that would require that the character slot has the storage and “seize” lord attributes as well.

The convoy hack seems to have a side effect: it clears all the units except the Lord, and it makes it impossible to load any other units after that.
…That’s why I’m using it offscreen at the end of my events as of now. That way, it works.

Uh oh! It shouldn’t do that! I’ll rig my testing events to load like, more than one unit and then try it out/debug it.

Edit: I am unable to replicate this error. If you keep having it, could you please send me a ROM and save state/file and you events? You’re making sure to call the asm routine offset+1, right?

Yes, I am.
Anyway I should prepare the ROM and the save (I’ve worked around the problem so I should replicate it now) and since I’m having an exam tomorrow, I won’t be able to pass you the stuff today.
We’ll get back to this soon. :wink:

P.S. I’m also using Cam’s lord shift hack in the same chapter, if that has any relevance.
Also, does the specified unit need to be loaded when calling the ASM?

EndingScene:
FADI 0x5
_SETVAL 0x1 Eirika//set Fa as the lord
ASMC 0xoffset//Cam's lord shift hack
_0x1322 0x7FFF//fade out music
_0x342A 0x0//clear all ally units
_0x342B 0x0//clear all enemy units
_0x342C 0x0//clear all NPC units
STAL 0x80
_LOAD1 0x1 clearinventory
ENUN
ASMC 0xoffset//Crazycolorz5's convoy hack
_LOAD 0x1 afterbattle
ENUN
FADU 0x8
//[...]
ENDA

clearinventory:
UNIT 0x42 0x75 0x00 Level(20,Ally,False) [27,03] 0x00 0x00 0x00 0x00000 [0x78,0x3F,0x6D] NoAI
UNIT Empty

//afterbattle:
//more units
//UNIT Empty

I wanted to clear Shiori(0x42)'s inventory. I put 42 instead of 01, then I pasted the data and called the offset+1.
However, after the FADU, none of the “afterbattle” units are shown, except for Fa.
Removing the ASMC lets me load all the units as usual.

May…be… I’ll be able to check out the error once I have the ROM. And I have battle routines to analyze and modify, so no rush.

Alright!
Check out my P.S. anyway, perhaps there’s some useful info there.

See you soon~
And thank you for all the hard work you put into these hacks!

I leafed through Cam’s autocursor code, and it doesn’t look like it should interfere with mine. I’ll just sit tight until I get a ROM/save.

it might be a side effect of something that i did (ie mode byte)

Well, only if the built in store routine relies on that byte to know where to store it, but since the storage is a specific place in RAM, I doubt it…

Would it be hard to have custom item effects in FE8? Like the Potion or the Arms Scroll?
Also, I’m 90% sure this isn’t doable, or at least not without a huge and unfair amount of work, but what about Soothing weapons like the ones in FE13, that have a passive healing effect when equipped?
…I’m just brainstorming some ideas. XD

The former shouldn’t be too bad. Passive healing effects, not so easy… It might be possible if I find out where the game calculates fort healing, but It’s still involve changing how the game does start-of-turn-effects, as well as having to designate character to have it. Doable, but not a project I want to take up right now. (Maybe after FEE3)

Well, for reference, the game loads up the percentage of health regen provided by the terrain a unit’s sitting on at $0801A258; if the percentage is nonzero, it proceeds to $08019150.

Oh! It might be less invasive than I thought then! I just need to jack that code to also check for abilities. Actually, this now sounds reeeeeally easy. I might jack one of the weapon locks though; I hope you’re okay with that.

(That’s for FE8, right, Venno?)

1 Like

Yeah it’s for fe8. I could grab the fe7 offsets pretty easily though.
Here they are:
$0802431C to get the type of terrain the unit is standing on (repeated for every active unit I assume)
$08019B20 to get the health regen of the terrain
$08018A70 to apply the health regen

I don’t mind at all you using one of the weapon locks, since my own weapon lock hack obsoletes all of the vanilla ones…but for convenience’s sake, I’d recommend using one of the unused weapon locks (0x1 in Ability 3 for example)

[Well, I made renewal easily.][1] Now I’ll add soothing weapons :).
[1]:https://www.dropbox.com/s/yjikbtbqc5njn68/Screenshot%202014-07-12%2005.40.53.png

Lookie at what I did~

Pretty nice! Just a word of warning, though - in FE8, Character ability 4 0x1 is the Doesn’t Give Experience ability (also, using weapon ability byte 4 might conflict with my weapon lock hack technically). Character ability 4 0x4 causes Fog of War glitches, as it used to be the Magic Seal ability.

What should I use then? It’s easily changeable.