I'm not sure why everyone has problems posting scripts. Just don't use the quick reply. Use the "...or use the standard form" next to the "Submit" button below. Then just copy and paste your script. That's all I do anyway. I'm using Firefox. Not sure if that makes a difference at all.
example (copy and pasted script):
void main()
{
// Get the creature who triggered this event.
object oPC = GetEnteringObject();
effect eVFX;
effect eDamage;
string sTag = GetTag(GetItemInSlot(INVENTORY_SLOT_CHEST, oPC));
// Only fire for (real) PCs.
if ( !GetIsPC(oPC) || GetIsDMPossessed(oPC) ) return;
// If the PC does not have the item "coldprotectarmorlight" equipped.
if ( sTag != "coldprotectarmorlight" ||
sTag != "" ||
sTag != "" ||
sTag != "" ||
sTag != "")
{
// Cause damage.
eDamage = EffectDamage(1, DAMAGE_TYPE_COLD);
eVFX = EffectVisualEffect(VFX_COM_HIT_FROST);
ApplyEffectToObject(DURATION_TYPE_INSTANT, eDamage, oPC);
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX , oPC);
}
}
Modifié par GhostOfGod, 07 octobre 2013 - 09:49 .