Macros can only read attributes, macros cannot create or change anything. What you're looking for can be done via API scripts, but this requires the Creator of the game in question to have a Pro subscription at a bare minimum. If you wish to follow up on this, let us know and this thread can be tweaked and moved over to the API forum :)