I think the problem is that Swollow's torch counted as a light while my edit makes it count as a weaponimage. So his emitters probably weren't made for that.
But this is the script I use with other items to add emitters and sounds and I know it works.
I just don't know how to use it with swollow's state script properly.
datablock ShapeBaseImageData(gemShimmerImage)
{
shapeFile = "base/data/shapes/empty.dts";
emap = false;
stateName[0] = "Fire";
stateTransitionOnTimeout[0] = "Fire";
stateWaitForTimeout[0] = true;
stateTimeoutValue[0] = 1000;
stateEmitter[0] = gemShimmerEmitter;
stateEmitterTime[0] = 1000;
};
//////////////////////////////////////////////////////////
// Gems Item Datas
//emerald
function RPGxEmeraldItem::onAdd(%this, %obj)
{
%obj.mountImage(gemShimmerImage,0);
%obj.playAudio(0, GemsparkleSound);
Parent::onAdd(%this, %obj);
}
function RPGxEmeraldImage::onMount(%this, %obj, %slot)
{
%obj.mountImage(gemShimmerImage,1);
Parent::onMount(%this, %obj, %slot);
}
function RPGxEmeraldImage::onUnMount(%this, %obj, %slot)
{
%obj.unMountImage(1);
%obj.stopAudio(0);
Parent::onUnMount(%this, %obj, %slot);
}