Golem Character Scripting Ideas!
-
void main()
{
object oTarget = GetItemActivatedTarget();int iFetchedAppearanceType = GetAppearanceType(oTarget);
if (iFetchedAppearanceType != APPEARANCE_TYPE_GOLEM_IRON)
{
SetCreatureAppearanceType(oTarget, APPEARANCE_TYPE_GOLEM_IRON);effect eStrBuff = EffectAbilityIncrease(ABILITY_STRENGTH, 4);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eStrBuff, oTarget);effect eConBuff = EffectAbilityIncrease(ABILITY_CONSTITUTION, 4);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eConBuff, oTarget);effect eDamRed = EffectDamageReduction(5, 5, 0);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eDamRed, oTarget);effect eMoveSpeedBuff = EffectMovementSpeedIncrease(20);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eMoveSpeedBuff, oTarget);
}
else
{
SendMessageToPC(oTarget, "Already in that form!");
}
}