30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
void main()
|
|
{
|
|
string sType = GetStringLowerCase(GetStringRight(GetTag(OBJECT_SELF), 4));
|
|
string sVariable = GetStringRight(GetTag(OBJECT_SELF), 6);
|
|
int nDamageType;
|
|
effect eImpact;
|
|
if (sType == "elec") {
|
|
nDamageType = DAMAGE_TYPE_ELECTRICAL;
|
|
eImpact = EffectVisualEffect(VFX_COM_HIT_ELECTRICAL);
|
|
} else if (sType == "fire") {
|
|
nDamageType = DAMAGE_TYPE_FIRE;
|
|
eImpact = EffectVisualEffect(VFX_COM_HIT_FIRE);
|
|
} else if (sType == "cold") {
|
|
eImpact = EffectVisualEffect(VFX_COM_HIT_FROST);
|
|
nDamageType = DAMAGE_TYPE_COLD;
|
|
} else if (sType == "evil") {
|
|
nDamageType = DAMAGE_TYPE_NEGATIVE;
|
|
eImpact = EffectVisualEffect(VFX_COM_HIT_NEGATIVE);
|
|
} else if (sType == "mind") {
|
|
nDamageType = DAMAGE_TYPE_MAGICAL;
|
|
eImpact = EffectVisualEffect(VFX_IMP_HEAD_MIND);
|
|
} else if (sType == "holy") {
|
|
nDamageType = DAMAGE_TYPE_DIVINE;
|
|
eImpact = EffectVisualEffect(VFX_COM_HIT_DIVINE);
|
|
} else if (sType == "lash") {
|
|
nDamageType = DAMAGE_TYPE_FIRE;
|
|
eImpact = EffectVisualEffect(VFX_COM_HIT_FIRE);
|
|
}
|
|
}
|