Chat image?

Discuss macro implementations, ask for macro help (to share your creations, see User Creations, probably either Campaign Frameworks or Drop-in Resources).

Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice

Post Reply
mondo
Cave Troll
Posts: 69
Joined: Sun Jun 15, 2008 3:57 am

Chat image?

Post by mondo »

I have a few players in my groups that are boisterous and some are timid in voice chat. Ive pondered a macro that would post an image in the chat window. I it would be something like a raised hand and some text saying "I have question or statement". I see that the card and die tables put an image in chat. I dont see the command for that. Is there a command that retrieves an image (and were you store said image) and puts it to chat window?

Thanks

User avatar
aliasmask
RPTools Team
Posts: 9023
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

Re: Chat image?

Post by aliasmask »

When my party is having a conversation I don't want to interrupt, I just post to chat what my character would say.

There are many ways to get the image Wiki: assetId(). Wiki: getImage(), Wiki: getTokenImage(), Wiki: getStateImage(), Wiki: getTableImage() and a couple of others. Once you have the id, just use <html> <img> tag to post to chat.

For example,

Code: Select all

[H: toggle = 1 - getState("raisedhand")]
[H: setState("raisedhand",toggle)]
[if(toggle), code: {
   [H: imageId = getStateImage("raisedhand")]
   [R: strformat('<img src="%{imageId}-50" />']
};{}]
This would also be good for an AFK notification.

Post Reply

Return to “Macros”