In my opinion macros parser is abcsolutly broken an it needs to be reworked. 1. It need's to search appropriate closing bracket, not the first one. System with HTML entities can not be work as intended in normal parser. 2. Parser is needs to do all steps frone here on every loop. Not the first 3. Many people want to call something like @{attr_name_[1d4]} and things like that.Order of operations now limitates all of us. 3. Optimization is a key. If I create roll query with nums from 1 to 100 and for each num it will make some actions with targeted token this number of time, I needs to wait really long time,maybe minute or so. Why? Because every anwer in a query will be maintained first. But it is not neccassary. 4. Fix problems with selected and target. If I call %{selected|action1} %{target|action2} %{selected|action3}, then last action won't be called. Parser just forgets who is selected.