Neverwinter Nights > Script Request
Petrify...
Elessar Telrunya:
This is such a simple task that I CAN'T understand why it isn't working! It's simple enough, the script is supposed to petrify its owner, and I've played with many ways of changing the script to make it work, including moving it back and forth between the OnSpawn and OnHeartBeat script slots! It compiles alright, but it won't work when I go to test it! >.< Anyways here's the last attempt I had at making it work:
--- Code: ---#include "x0_i0_petrify"
void main()
{
object oTarget = OBJECT_SELF;
Petrify(oTarget);
}
--- End code ---
All it's suppose to do is petrify the owner of the script, yet it won't work...goes in either onspawn or onheartbeat slots...creature of course...
-Elessar
Mo:
Forget using the wrapper function and just stick to basics. Try the applying the EffectPetrify() function.
EDIT: What kind of creature are you testing this on? I hope it's not a skeleton.
Elessar Telrunya:
--- Quote ---Forget using the wrapper function and just stick to basics. Try the applying the EffectPetrify() function.
EDIT: What kind of creature are you testing this on? I hope it's not a skeleton.
[snapback]28174[/snapback]
--- End quote ---
I was originally using the EffectPetrify() Function, but it wouldn't work either >.< I'm using a human model
-Elessar
420:
--- Code: ---void main()
{
object oTarget = OBJECT_SELF;
effect eEffect = SupernaturalEffect(EffectPetrify());
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oTarget);
}
--- End code ---
I just wrote and tested this script and put it in the OnSpawn of a creature and it worked. Make sure the creature is not plot or it will be immune to petrify.
If you want it to be plot you can try to make it Immortal instead or apply a cut-scene paralyze combined with the stone skin VFX.
-420
Elessar Telrunya:
--- Quote ---
--- Code: ---void main()
{
object oTarget = OBJECT_SELF;
effect eEffect = SupernaturalEffect(EffectPetrify());
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oTarget);
}
--- End code ---
I just wrote and tested this script and put it in the OnSpawn of a creature and it worked. Make sure the creature is not plot or it will be immune to petrify.
If you want it to be plot you can try to make it Immortal instead or apply a cut-scene paralyze combined with the stone skin VFX.
-420
[snapback]28178[/snapback]
--- End quote ---
teehee, thanks, it was because it was plot xD
-Elessar
Navigation
[0] Message Index
[#] Next page
Go to full version