mirror of
http://prc.nwn.ee:3000/Jaysyn/PRC8.git
synced 2025-12-17 09:37:15 -05:00
Initial upload.
Adding base PRC 4.19a files to repository.
This commit is contained in:
45
trunk/scripts/ft_nim_light.nss
Normal file
45
trunk/scripts/ft_nim_light.nss
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
Nimbus of Light
|
||||
|
||||
Shown a light with radius 5 feets and +2 circumstance bonus to
|
||||
persuade, taunt
|
||||
|
||||
Created By: Starlight
|
||||
Created On: 2004-5-5
|
||||
*/
|
||||
#include "prc_alterations"
|
||||
#include "prc_feat_const"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = OBJECT_SELF;
|
||||
string nMes = "";
|
||||
PRCRemoveSpellEffects(GetSpellId(), oPC, oPC);
|
||||
|
||||
effect ePersuade = EffectSkillIncrease(SKILL_PERSUADE, 2);
|
||||
effect eTaunt = EffectSkillIncrease(SKILL_SENSE_MOTIVE, 2);
|
||||
effect eLight = EffectVisualEffect(VFX_DUR_LIGHT_WHITE_5);
|
||||
effect eLink = EffectLinkEffects(ePersuade, eTaunt);
|
||||
eLink = ExtraordinaryEffect(EffectLinkEffects(eLink, eLight));
|
||||
|
||||
if (GetAlignmentGoodEvil(oPC) == ALIGNMENT_GOOD)
|
||||
{
|
||||
if (!GetHasFeatEffect(FEAT_NIMBUSLIGHT))
|
||||
{
|
||||
// Apply the Light and Skill increase
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eLink, oPC);
|
||||
// Display the message
|
||||
nMes = "*Nimbus of Light Activated*";
|
||||
}
|
||||
else
|
||||
{
|
||||
// Display the message
|
||||
nMes = "*Nimbus of Light Deactivated*";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
nMes = "You cannot activate Nimbus of Light if you are not good";
|
||||
}
|
||||
FloatingTextStringOnCreature(nMes, oPC, FALSE);
|
||||
}
|
||||
Reference in New Issue
Block a user