29 lines
1.2 KiB
Plaintext
29 lines
1.2 KiB
Plaintext
#include "nw_i0_generic"
|
|
void main()
|
|
{
|
|
object oTarget;
|
|
object oTarget1;
|
|
object oPC = GetPCSpeaker();
|
|
object oMod = GetModule();
|
|
SetLocalInt(oMod, "duel_on", 1);
|
|
oTarget = GetObjectByTag("duel_effect");
|
|
int nInt;
|
|
nInt = GetObjectType(oTarget);
|
|
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_PWKILL), oTarget);
|
|
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_PWKILL), GetLocation(oTarget));
|
|
oTarget1 = GetObjectByTag("starfall");
|
|
ClearAllActions();
|
|
SetPlotFlag(GetObjectByTag("starfall"), FALSE);
|
|
|
|
DelayCommand(1.5, AssignCommand(oTarget1, JumpToLocation(GetLocation(GetObjectByTag ("s_duel_wp")))));
|
|
DelayCommand(1.6, AssignCommand(oPC, JumpToLocation(GetLocation(GetObjectByTag ("p_duel_wp")))));
|
|
DelayCommand(5.5, AssignCommand(GetObjectByTag("starfall"), ActionSpeakString("Ready?",TALKVOLUME_SHOUT)));
|
|
DelayCommand(6.5, AssignCommand(GetObjectByTag("starfall"), ActionSpeakString("GO!!!",TALKVOLUME_SHOUT)));
|
|
|
|
//DelayCommand(4.6, AdjustReputation(oPC, oTarget1, -100));
|
|
DelayCommand(7.2,SetIsTemporaryEnemy(oPC, oTarget1));
|
|
DelayCommand(7.5,AssignCommand(oTarget1, ActionAttack(oPC)));
|
|
//DelayCommand(1.6,AssignCommand(oTarget, DetermineCombatRound(oPC)));
|
|
}
|
|
|