Is there a built in method for detecting fired projectiles? Right now I check every tick to see if df.global.proj_next_id has changed. If it has I go through the df.global.world.proj_list until I find the projectile with the correct id and then go from there. Just wondering if this is the best way to do it. I thought about using the eventful onProjItemCheckMovement but I wasn't sure if that would be faster/slower or what.
Also, I've been looking at reports in order to add report triggering to an action-trigger script. This became needed because the Dodge action does not get registered as a proper unit.action but does generate a combat report, so it should be possible to trigger off of that (some other things that would be fun to trigger on are charges, wrestling moves, knock outs, etc...). The trouble is the combat reports don't seem to store any information besides the type, the message, and the location it was triggered at (and a couple other things), and what we really need is the unit ids. Now it is possible to get the unit ids from the message by checking the names, but this isn't a full proof method and it requires we hard code the report message for each report type. So I was wondering if anyone else has looked at getting unit ids from reports? I feel like it should be easy, but maybe that information never becomes available?
EDIT: I already know about the onReport eventful trigger, but that only gives me the report ID which only gives me the information mentioned above