
Hey guys, I'm trying to have a macro to be executed in a certain condition. I already have text being correctly printed in such condition, by following some of the answers in the forums.
var who = getObj('character', token.get('represents'));
if (!who) {
who = selectedToken.get('name');
} else {
who = 'character|' + who.id;
}
sendChat(who,'%{' + token.get('represents') + '|shaped_statblock\}');
The current output is something like
Character Name: -Character_Code|shaped_statblock
Is there a way to for the macro to be executed?
Addendum: shaped_statblock is a default macro from the Shaped D&D5e Character Sheet.