generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit
This commit is contained in:
28
_module/nss/duel_time.nss
Normal file
28
_module/nss/duel_time.nss
Normal file
@@ -0,0 +1,28 @@
|
||||
#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)));
|
||||
}
|
||||
|
Reference in New Issue
Block a user