- UID
- 1740567
- 主题
- 0
- 阅读权限
- 20
- 帖子
- 102
- 精华
- 0
- 积分
- 51
- 金钱
- 944
- 荣誉
- 0
- 人气
- 0
- 在线时间
- 275 小时
- 评议
- 0
- 帖子
- 102
- 精华
- 0
- 积分
- 51
- 金钱
- 944
- 荣誉
- 0
- 人气
- 0
- 评议
- 0
|
//::///////////////////////////////////////////////
//:: Grease: Heartbeat
//:: NW_S0_GreaseC.nss
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
Creatures entering the zone of grease must make
a reflex save or fall down. Those that make
their save have their movement reduced by 1/2.
*/
//:://////////////////////////////////////////////
//:: Created By: Preston Watamaniuk
//:: Created On: Aug 1, 2001
//:://////////////////////////////////////////////
#include "X0_I0_SPELLS"
#include "x2_inc_spellhook"
void main()
{
int nDC = 11+ GetAbilityModifier(ABILITY_INTELLIGENCE);
//Declare major variables
object oTarget;
effect eFall = EffectKnockdown();
effect eHit = EffectVisualEffect(VFX_HIT_SPELL_ENCHANTMENT);
effect eLink = EffectLinkEffects(eFall, eHit);
float fDelay;
//Get first target in spell area
oTarget = GetFirstInPersistentObject();
while(GetIsObjectValid(oTarget))
{
// if(!GetHasFeat(FEAT_WOODLAND_STRIDE, oTarget) &&(GetCreatureFlag(OBJECT_SELF, CREATURE_VAR_IS_INCORPOREAL) != TRUE) )
if( (GetCreatureFlag(OBJECT_SELF, CREATURE_VAR_IS_INCORPOREAL) != TRUE) ) // AFW-OEI 05/01/2006: Woodland Stride no longer protects from spells.
{
if(spellsIsTarget(oTarget, SPELL_TARGET_STANDARDHOSTILE, GetAreaOfEffectCreator()))
{
fDelay = GetRandomDelay(0.0, 2.0);
if(!MySavingThrow(SAVING_THROW_REFLEX, oTarget, nDC, SAVING_THROW_TYPE_NONE, OBJECT_SELF, fDelay))
{
DelayCommand(fDelay, ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, oTarget, 4.0));
}
}
}
//Get next target in spell area
oTarget = GetNextInPersistentObject();
}
}
我就算把脚本削减到仅仅修改红字部分,编译通过但还是无法生成ncs文件 |
|