A unit walks onto a square -- say a trap. It triggers an event, which then stores the data about the unit somewhere. How would I do something like this? Does such a place to store data exist? Variables are good for determining the coordinates of events, but not for the events themselves...
The end result would be EvilDude triggering an event, the event storing a reference to EvilDude, then being able to subtract 5 from EvilDude's number using that stored reference. Of course, if NiceNancy triggered the trap, it would subtract 5 from NiceNancy's number instead. End result being less clogged code & more dynamic events. But idk how to store references to events here..
The end result would be EvilDude triggering an event, the event storing a reference to EvilDude, then being able to subtract 5 from EvilDude's number using that stored reference. Of course, if NiceNancy triggered the trap, it would subtract 5 from NiceNancy's number instead. End result being less clogged code & more dynamic events. But idk how to store references to events here..