Of course. For those of you who haven't used AOE's map editor, you can make a trigger that is dependent on any game variable or any action (like a building being built somewhere, or anywhere, or a unit going somewhere), and will do anything (like send a unit somewhere, tell a unit to do something, etc). You can also edit terrain, change players, resources, scenario information, etc. Its really quite easy to work with. Although I will check out this StarEdit thingie too.