I'm trying to figure out how to make a macro that calls an Attribute value as the TN. Ideally, I'd like to specify the following in the results:

Rolling the number or less is a Success.
Rolling more than the number is a Failure.
Rolling the number exactly is a Crit.
Rolling a natural 20 is a Fumble.

Seems like this should be pretty easy, but I'm not having much luck so far. No coder, me.

Thanks in advance for any who can help a brother out.

M.