162 lines
5.2 KiB
Plaintext
162 lines
5.2 KiB
Plaintext
|
|
void CreateItemOnObjectVoid(string sItemTemplate, object oTarget=OBJECT_SELF, int nStackSize=1)
|
|
{
|
|
CreateItemOnObject(sItemTemplate, oTarget, nStackSize);
|
|
}
|
|
/* Script generated by
|
|
Lilac Soul's NWN Script Generator, v. 2.3
|
|
|
|
For download info, please visit:
|
|
http://nwvault.ign.com/View.php?view=Other.Detail&id=4683&id=625 */
|
|
|
|
//Put this on action taken in the conversation editor
|
|
#include "nw_i0_tool"
|
|
void main()
|
|
{
|
|
|
|
object oPC = GetPCSpeaker();
|
|
|
|
object oTarget;
|
|
oTarget = oPC;
|
|
|
|
//Visual effects can't be applied to waypoints, so if it is a WP
|
|
//the VFX will be applied to the WP's location instead
|
|
|
|
int nInt;
|
|
nInt = GetObjectType(oTarget);
|
|
|
|
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_NATURES_BALANCE), oTarget);
|
|
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_NATURES_BALANCE), GetLocation(oTarget));
|
|
|
|
effect eEffect;
|
|
eEffect = EffectAbilityIncrease(ABILITY_CHARISMA, 1);
|
|
|
|
eEffect = SupernaturalEffect(eEffect);
|
|
|
|
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oTarget);
|
|
|
|
//Visual effects can't be applied to waypoints, so if it is a WP
|
|
//the VFX will be applied to the WP's location instead
|
|
|
|
nInt = GetObjectType(oTarget);
|
|
|
|
eEffect = EffectVisualEffect(VFX_FNF_NATURES_BALANCE);
|
|
|
|
if (nInt != OBJECT_TYPE_WAYPOINT)
|
|
DelayCommand(2.0, ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, oTarget));
|
|
else
|
|
DelayCommand(2.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eEffect, GetLocation(oTarget)));
|
|
|
|
eEffect = EffectAbilityIncrease(ABILITY_CONSTITUTION, 1);
|
|
|
|
eEffect = SupernaturalEffect(eEffect);
|
|
|
|
DelayCommand(2.0, ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oTarget));
|
|
|
|
DelayCommand(2.0, FloatingTextStringOnCreature("Constitution of Body !", oPC));
|
|
|
|
FloatingTextStringOnCreature("Charisma of the Charming !", oPC);
|
|
|
|
//Visual effects can't be applied to waypoints, so if it is a WP
|
|
//the VFX will be applied to the WP's location instead
|
|
|
|
nInt = GetObjectType(oTarget);
|
|
|
|
eEffect = EffectVisualEffect(VFX_FNF_NATURES_BALANCE);
|
|
|
|
if (nInt != OBJECT_TYPE_WAYPOINT)
|
|
DelayCommand(4.0, ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, oTarget));
|
|
else
|
|
DelayCommand(4.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eEffect, GetLocation(oTarget)));
|
|
|
|
DelayCommand(4.0, SendMessageToPC(oPC, "Dexterity of the Nimble !"));
|
|
|
|
eEffect = EffectAbilityIncrease(ABILITY_DEXTERITY, 1);
|
|
|
|
eEffect = SupernaturalEffect(eEffect);
|
|
|
|
DelayCommand(4.0, ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oTarget));
|
|
|
|
//Visual effects can't be applied to waypoints, so if it is a WP
|
|
//the VFX will be applied to the WP's location instead
|
|
|
|
nInt = GetObjectType(oTarget);
|
|
|
|
eEffect = EffectVisualEffect(VFX_FNF_NATURES_BALANCE);
|
|
|
|
if (nInt != OBJECT_TYPE_WAYPOINT)
|
|
DelayCommand(6.0, ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, oTarget));
|
|
else
|
|
DelayCommand(6.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eEffect, GetLocation(oTarget)));
|
|
|
|
eEffect = EffectAbilityIncrease(ABILITY_INTELLIGENCE, 0);
|
|
|
|
eEffect = SupernaturalEffect(eEffect);
|
|
|
|
DelayCommand(6.0, ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oTarget));
|
|
|
|
DelayCommand(6.0, FloatingTextStringOnCreature("Intelligense of the shrewd !", oPC));
|
|
|
|
//Visual effects can't be applied to waypoints, so if it is a WP
|
|
//the VFX will be applied to the WP's location instead
|
|
|
|
nInt = GetObjectType(oTarget);
|
|
|
|
eEffect = EffectVisualEffect(VFX_FNF_NATURES_BALANCE);
|
|
|
|
if (nInt != OBJECT_TYPE_WAYPOINT)
|
|
DelayCommand(8.0, ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, oTarget));
|
|
else
|
|
DelayCommand(8.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eEffect, GetLocation(oTarget)));
|
|
|
|
eEffect = EffectAbilityIncrease(ABILITY_STRENGTH, 1);
|
|
|
|
eEffect = SupernaturalEffect(eEffect);
|
|
|
|
DelayCommand(8.0, ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oTarget));
|
|
|
|
DelayCommand(8.0, FloatingTextStringOnCreature("Strenght of Nature !", oPC));
|
|
|
|
//Visual effects can't be applied to waypoints, so if it is a WP
|
|
//the VFX will be applied to the WP's location instead
|
|
|
|
nInt = GetObjectType(oTarget);
|
|
|
|
eEffect = EffectVisualEffect(VFX_FNF_NATURES_BALANCE);
|
|
|
|
if (nInt != OBJECT_TYPE_WAYPOINT)
|
|
DelayCommand(10.0, ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, oTarget));
|
|
else
|
|
DelayCommand(10.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eEffect, GetLocation(oTarget)));
|
|
|
|
eEffect = EffectAbilityIncrease(ABILITY_WISDOM, 1);
|
|
|
|
eEffect = SupernaturalEffect(eEffect);
|
|
|
|
DelayCommand(10.0, ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oTarget));
|
|
|
|
DelayCommand(10.0, FloatingTextStringOnCreature("Wisdom of Ages !", oPC));
|
|
|
|
//Visual effects can't be applied to waypoints, so if it is a WP
|
|
//the VFX will be applied to the WP's location instead
|
|
|
|
nInt = GetObjectType(oTarget);
|
|
|
|
eEffect = EffectVisualEffect(VFX_FNF_MASS_HEAL);
|
|
|
|
if (nInt != OBJECT_TYPE_WAYPOINT)
|
|
DelayCommand(12.0, ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, oTarget));
|
|
else
|
|
DelayCommand(12.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eEffect, GetLocation(oTarget)));
|
|
|
|
DelayCommand(12.0, RewardPartyXP(2500, oPC, FALSE));
|
|
|
|
DelayCommand(12.0, CreateItemOnObjectVoid("questgemonubo", oPC));
|
|
|
|
DelayCommand(12.0, CreateItemOnObjectVoid("allstats_1", oPC));
|
|
|
|
DelayCommand(12.0, FloatingTextStringOnCreature("Graditude of Gaia !", oPC));
|
|
|
|
}
|
|
|