View Full Version : Adding NPC portraits in CoC ruleset?

August 29th, 2013, 04:53
How does one go about adding a portrait to an NPC in the CoC ruleset? (Not the player characters, but the NPC sheet.) It looks like there's a spot for one to go, but danged if I can figure out how to get a picture to go in there. Does it need to be a very specific size or something?


August 29th, 2013, 22:17
The small circle to the top left of the NPC sheet is for a token - drag a token from the token bag to the circle. The, when this NPC is added to the combat tracker it will automatically use that token.

August 30th, 2013, 15:53
Thanks Trenloe, but actually what I had in mind is an actual portrait. On the CoC NPC sheet, there is a box for a mugshot or character portrait. By default, it just has the Chaosium logo in it, but in one of the scenarios from the CoC rulebook that comes with the ruleset, there are portraits in there for some characters. I just can't figure out how to get one in there. None of the screenshots on the ruleset's store page show the NPC panel, it looks like. I meant to take a screenshot to post last night, but I wasn't able to get to it. I'll try to do so this evening. Thanks, as always, for your willingness to help a brotha out!

August 30th, 2013, 17:54
Oh right, sorry - I've never really noticed that field, I presumed it was just a Chaosium logo.

Looking at the code for this picture field:

<tokenfield name="picture">
function onDrag()
return false;

function onDrop()
return false;
Basically, the onDrag and onDrop functionality is being ignored because of the "return false" code. So, there is no way to add a picture to this field - without changing the base rule code... Looks like a feature that was never implemented, or perhaps was never planned as we think it.

August 30th, 2013, 18:10
Follow up - removing the above code (the <script> tags and code in between) in adventure_npcs.xml, does allow dropping of tokens onto the Picture field in NPCs.

I just did a quick test - downloaded an image of Cthulhu and saved it as a token (in \tokens\host) then dragged it to the picture section of the NPC - it looks like this:


Then if the NPC sheet is shared with the players they will see this:



August 30th, 2013, 18:11
Of course - there may have been a good reason why this functionality was removed/disabled...

August 31st, 2013, 17:46
Puzzling! Here's another piece of info:
In the scenario from the CoC rulebook, included with the ruleset, there are NPC mi-go. And they have portraits, oddly enough. Also, in the scenario included with the Secrets of NY add-on from the FG store here, there are NPCs with portraits. So, is it that the script that you pointed out prevents new portraits being added to an NPC sheet, but does not interfere with the display of portraits on NPCs that already have them?

Moon Wizard
September 1st, 2013, 05:42
It sounds like something that was added to support the modules sold through the store, but not necessarily activated for general use.

I'm updating the CoC ruleset for v3.0, and I had already enabled this field to be set to any token in the token bag.


September 1st, 2013, 17:02
So, is it that the script that you pointed out prevents new portraits being added to an NPC sheet, but does not interfere with the display of portraits on NPCs that already have them?Absolutely, the code that I recommended removing is just the code that stops tokens being dropped on the picture image. The underlying database structure that stores the link to the token is not affected in any way - it is obviously there and operational as just enabling drag/drop functionality stores and displays the image fine. Even with the drag/drop code disabled (as is standard in the current 2.9.4 CoC ruleset) any pictures previously added (either in a module or when drag/drop was enabled) will display fine.

September 1st, 2013, 23:42
Interesting! Thanks for the mystery-solving, Trenloe and moonwizard!