This ASMC makes one unit rescue another. It doesn’t care about allegiance or con/aid, and it doesn’t care if they’re not adjacent. Just give it the coordinates (0x00YY00XX) of the rescuer in Slot 1, and the coordinates of the rescuee in Slot 2. There is no rescuing animation, so do it during a fade or off camera.
//Events go here
SETVAL 0x1 0xYY00XX
SETVAL 0x2 0xYY00XX
Now you can have Peg Knights airlifting Generals into your ranks:
Now, the ASMC for separating them?
In slot 1: unit at coordinates xx yy that is rescuing somebody (return to false if it isn’t rescuing anyone)
slot 2: xx yy coord where the rescuee should be dropped
slot 1: Unit ID of the rescuer
slot 2: xx yy coordinates where the rescuee should be dropped
I actually made one ages ago for dropping a unit, sort of.
SETVAL 1 CharacterID
MOVE_1STEP 0x0 CharacterID (direction) //0 for left, 1 for right
Not sure what happens with generics who share character IDs, and also it doesn’t check the square it’s dropping on so you might drop them on a wall or another unit or something.
But if you want it: