41 lines
1000 B
Plaintext
41 lines
1000 B
Plaintext
int nInt;
|
|
object oTarget;
|
|
effect eEffect;
|
|
/* Script generated by
|
|
Lilac Soul's NWN Script Generator, v. 2.2
|
|
|
|
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
|
|
void main()
|
|
{
|
|
|
|
object oPC = GetPCSpeaker();
|
|
|
|
if (GetGold(oPC) >= 10000000)
|
|
{
|
|
AssignCommand(oPC, TakeGoldFromCreature(10000000, oPC, TRUE));
|
|
|
|
}
|
|
else
|
|
{
|
|
eEffect = EffectDamage(2000, DAMAGE_TYPE_MAGICAL, DAMAGE_POWER_ENERGY);
|
|
|
|
ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, oPC);
|
|
|
|
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
|
|
|
|
nInt = GetObjectType(oTarget);
|
|
|
|
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SMOKE_PUFF), oTarget);
|
|
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SMOKE_PUFF), GetLocation(oTarget));
|
|
|
|
}
|
|
|
|
}
|
|
|