Files
PRC8/nwn/nwnprc/trunk/newspellbook/tob_dmnd_timess.nss
Jaysyn904 e0e5473314 2025/11/30 Update
Moved PRC8 notes into DevNotes.
Updated Eternal Blade TLK to explain abilities better.
Updated Werewolf to use "monk" gloves when they exist.
Added PRC switch to allow Wildshapes to always merge the arms slot.
Clicking on a spell effect now opens the spell effect NUI. (@Rakiov))
Added prc_onplayergui event script for spell effect handling. (@Rakiov)
Added prc_nui_sd_event and prc_nui_dur_view to handle displaying spell durations. (@Rakiov)
Corrected typo in switch name for PRC_CRAFT_POISON_USE_INGREDIENTS
Allowed mindblade to work with Vow of Poverty.
Eternal Blade - Island in TIme now has a VFX, looks slightly better.
Eternal Blade - Guided Strike now functions.
Time Stands Still now has an impact VFX.
Added optional PRC_ALLOWED_TO_REMOVE_FRIENDLY_SPELLS and PRC_ALLOWED_TO_SEE_HOSTILE_SPELLS switches for the spell effect view window.
2025-11-30 21:53:24 -05:00

68 lines
2.6 KiB
Plaintext

//////////////////////////////////////////////////
// Time Stands Still
// tob_dmnd_timess.nss
// Tenjac 10/3/07
//////////////////////////////////////////////////
/** @file Time Stands Still
Diamond Mind(Strike)
Level: Swordsage 9, warblade 9
Prerequisite: Four Diamond Mind maneuvers
Initiation Action: 1 full-round action
Range: Personal
Target: You
The raindrops themselves stand still as you act at the speed of thought. You move
like a blur, catching your enemies by surprise with a complex action carried our in
a tiny fraction of the time normally needed to complete it.
In an unmatched burst of speed, agility, and decisive action, you move more quickly
than the eye can follow. You can lash out with your blade, striking your opponent so
rapidly that observers can't keep track of your moves.
As part of this maneuver, you can use a full attack action two times in succession.
Take your first full attack as normal. Once you have resolved those attacks, you can
then take another full attack action. You must resolve these actions separately. You
cannot combine the attacks provided by both atcions as you wish. Instead, you must
take them separately and in order as normal for a full attack.
*/
#include "tob_inc_move"
#include "tob_movehook"
////#include "prc_alterations"
void main()
{
if (!PreManeuverCastCode())
{
// If code within the PreManeuverCastCode (i.e. UMD) reports FALSE, do not run this spell
return;
}
// End of Spell Cast Hook
object oInitiator = OBJECT_SELF;
object oTarget = PRCGetSpellTargetObject();
struct maneuver move = EvaluateManeuver(oInitiator, oTarget);
effect eHit = EffectVisualEffect(VFX_COM_HIT_SONIC);
if(move.bCanManeuver)
{
// Get total attacks per round
int nMainAttacks = GetMainHandAttacks(oInitiator);
int nOffAttacks = GetOffHandAttacks(oInitiator, nMainAttacks);
int nTotalAttacks = nMainAttacks + nOffAttacks;
// Apply VFX for each attack
int i;
for (i = 0; i < nTotalAttacks; i++)
{
DelayCommand(i * 0.2, ApplyEffectAtLocation(
DURATION_TYPE_INSTANT,
EffectVisualEffect(VFX_COM_HIT_SONIC),
GetLocation(oTarget)
));
}
DelayCommand(0.0, PerformAttackRound(oTarget, oInitiator, eHit, 0.0, 0, 0, 0, TRUE, "Time Stands Still Hit!", "Time Stands Still Miss!", FALSE, FALSE, TRUE));
DelayCommand(1.0, PerformAttackRound(oTarget, oInitiator, eHit, 0.0, 0, 0, 0, TRUE, "Time Stands Still Hit!", "Time Stands Still Miss!", FALSE, FALSE, FALSE));
}
}