23 lines
1.7 KiB
Plaintext
23 lines
1.7 KiB
Plaintext
void main()
|
|
{
|
|
int iDemonFocus = GetLocalInt(OBJECT_SELF, "focus");
|
|
if(iDemonFocus == 1)
|
|
{AssignCommand(OBJECT_SELF, ActionSpeakString("The first focus is down.", TALKVOLUME_TALK));
|
|
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectBeam(VFX_BEAM_LIGHTNING, GetNearestObjectByTag("secondlevelbeam"), BODY_NODE_CHEST, FALSE), GetNearestObjectByTag("dae_demon_alter"), 6.0);}
|
|
if(iDemonFocus == 2)
|
|
{AssignCommand(OBJECT_SELF, ActionSpeakString("The second focus is down, hurry and destroy the rest.", TALKVOLUME_TALK));
|
|
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectBeam(VFX_BEAM_LIGHTNING, GetNearestObjectByTag("secondlevelbeam"), BODY_NODE_CHEST, FALSE), GetNearestObjectByTag("dae_demon_alter"), 6.0);}
|
|
if(iDemonFocus == 3)
|
|
{AssignCommand(OBJECT_SELF, ActionSpeakString("The third focus is down, I feel my strength returning at last.", TALKVOLUME_TALK));
|
|
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectBeam(VFX_BEAM_LIGHTNING, GetNearestObjectByTag("secondlevelbeam"), BODY_NODE_CHEST, FALSE), GetNearestObjectByTag("dae_demon_alter"), 6.0);}
|
|
if(iDemonFocus == 4)
|
|
{AssignCommand(OBJECT_SELF, ActionSpeakString("Yes, yes, that's much better, now for the last one.", TALKVOLUME_TALK));
|
|
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectBeam(VFX_BEAM_LIGHTNING, GetNearestObjectByTag("secondlevelbeam"), BODY_NODE_CHEST, FALSE), GetNearestObjectByTag("dae_demon_alter"), 6.0);}
|
|
if(iDemonFocus == 5)
|
|
{
|
|
AssignCommand(OBJECT_SELF, ActionSpeakString("I am free from my bonds, now you shall die!", TALKVOLUME_TALK));
|
|
ChangeToStandardFaction(OBJECT_SELF, STANDARD_FACTION_HOSTILE);
|
|
AssignCommand(OBJECT_SELF, ActionAttack(GetNearestObject(OBJECT_TYPE_CREATURE)));
|
|
}
|
|
}
|