Ditto's code: Code Ditto

Set Unit Status rewrite

Download: Set Unit Stats
Installation is as simple as #includeing the .lyn.event.

Does what it says on the tin, includes 2 event ASMCs:

SetUnitStats sets byte (in s1) of the desired unit’s (charID in s2, takes special inputs like (-1)) struct to a value (in s3).

GetUnitStats gets byte (in s1) of the desired unit’s (charID in s2, takes special inputs like (-1)) struct and returns it in sC.

Did this because I couldn’t be bothered trying to mangle 7743’s SetUnitStatus into my buildfile. Works for builder as well if any of those users are displeased with the weird restrictions on SetUnitStatus.

7 Likes