14 lines
590 B
Plaintext
14 lines
590 B
Plaintext
void main()
|
|
{
|
|
object oPC;
|
|
object oTarget;
|
|
oTarget = GetItemActivatedTarget();
|
|
int Dur=3;
|
|
int nInt;
|
|
nInt = GetObjectType(oTarget);
|
|
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_COM_CHUNK_GREEN_MEDIUM), GetLocation(oTarget));
|
|
DelayCommand(0.2,ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_COM_CHUNK_YELLOW_SMALL), GetLocation(oTarget)));
|
|
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, EffectVisualEffect(VFX_IMP_HEAD_ACID), GetLocation(oTarget), RoundsToSeconds(Dur));
|
|
SpeakString(GetName(OBJECT_SELF)+" has thrown an egg at "+GetName(oTarget));
|
|
}
|