Today I decided to toy around the toolset and the "Unique Power (Self Only)" property. The result has been a pair of "Shackles of Silence" (inspired by the item from the Book of Exalted Deeds with the same name, in case you're curious):
Code: Select all
void main()
{
object oUsed = GetItemActivated();
// The following section is for the Shackles of Silence.
// This pair of bracers silence the user when used.
if (GetTag(oUsed) == "SHUTUPSELF")
{
// Get the PC.
object oPC = GetItemActivator();
// Silence the user.
effect eSilence = EffectSilence();
// Create the corresponding visual effect.
effect eVis = EffectVisualEffect(VFX_IMP_SILENCE);
// Apply the visual effect to the PC.
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oPC);
// Apply the effect to the the PC.
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eSilence, oPC);
}
}
Next step will be to try and see if I can make a second set of bracers that silence a character when worn.