Looking for a simple asm event command that gets the Nth deployed unit and returns the unit id to memory slot C. They are ordered automatically in ram so it’s just a matter of calling the getter for X deployment slot and saving it to memory slot C.
Eg. My units are deployed as ids 0x2, 0x8, and 0x4. I simply want to find the 3rd deployed unit, which would return 4 in this case.
Anyone made this already? Or anyone want to save me some time?
I overhauled a bunch of events for my hack to make them compatible with the awesome free movement asm and it’s been pretty frustrating to fix everything.
Thank you very much! I was just about ready to box my hack in the face yesterday when I realized I’d have to redo my unit states events. This is a helpful example of asm, too, for my slow learning.