RoT2_PRC8/_module/nss/cb_reb_percieve.nss
Jaysyn904 499aba4eb3 Initial upload
Initial upload
2023-09-25 18:13:22 -04:00

72 lines
2.3 KiB
Plaintext

#include "nw_i0_generic"
void main()
{
object oPC = GetLastPerceived();
if (!GetIsPC(oPC)) return;
if (!GetLastPerceptionSeen()) return;
ActionSpeakString("You come seeking niether Truth or Knowledge.... only Power and Wealth");
DelayCommand(4.0,ActionJumpToObject(GetObjectByTag("reb_reb")));
DelayCommand(7.0,ActionSpeakString("I will stike you down to the depths hell you come from!"));
object oCaster;
oCaster = OBJECT_SELF;
object oTarget;
oTarget = OBJECT_SELF;
DelayCommand(9.0,AssignCommand(oCaster, ActionCastSpellAtObject(SPELL_CALL_LIGHTNING, oTarget, METAMAGIC_ANY, TRUE, 0, PROJECTILE_PATH_TYPE_DEFAULT, FALSE)));
oTarget = GetObjectByTag("reb_01");
int nInt;
nInt = GetObjectType(oTarget);
if (nInt != OBJECT_TYPE_WAYPOINT) DelayCommand(12.0,ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_MYSTICAL_EXPLOSION), oTarget));
else DelayCommand(12.0,ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_MYSTICAL_EXPLOSION), GetLocation(oTarget)));
oTarget = GetObjectByTag("reb_02");
nInt = GetObjectType(oTarget);
if (nInt != OBJECT_TYPE_WAYPOINT) DelayCommand(13.0,ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_DUR_GLYPH_OF_WARDING), oTarget));
else DelayCommand(13.0,ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_DUR_GLYPH_OF_WARDING), GetLocation(oTarget)));
oTarget = GetObjectByTag("reb_03");
nInt = GetObjectType(oTarget);
if (nInt != OBJECT_TYPE_WAYPOINT) DelayCommand(14.0,ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_DUR_GLYPH_OF_WARDING), oTarget));
else DelayCommand(14.0,ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_DUR_GLYPH_OF_WARDING), GetLocation(oTarget)));
oTarget = GetObjectByTag("reb_04");
nInt = GetObjectType(oTarget);
if (nInt != OBJECT_TYPE_WAYPOINT) DelayCommand(15.0,ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_DUR_GLYPH_OF_WARDING), oTarget));
else DelayCommand(15.0,ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_DUR_GLYPH_OF_WARDING), GetLocation(oTarget)));
oTarget = OBJECT_SELF;
DelayCommand(16.0,AdjustReputation(oPC, oTarget, -100));
oTarget = OBJECT_SELF;
DelayCommand(16.0,SetIsTemporaryEnemy(oPC, oTarget));
DelayCommand(16.0,AssignCommand(oTarget, ActionAttack(oPC)));
DelayCommand(16.0,AssignCommand(oTarget, DetermineCombatRound(oPC)));
}