PDA

View Full Version : Playing around with Fairy Morphing


Anonymous
07-16-2002, 08:22 PM
OK here goes..i added some script into a creature that i painted <a nymph> to turn into fairy when click on her..added this script in before i really studied up on it..and it seems the way the script is laid in there the fairy morphs into fairy like its supposed to..but after it turns into a fairy...every encounter or monster that i come across after that <that is NOT summoned> will begin to attack and as soon as i attack back..the whole room turns into fairies as well...MOST not all of the monsters will automatically die when they turn to fairies...this CAN actually work PERFECTLY into my storyline..so i DO like that aspect of it...and will probably put her one or two rooms from the exit...but is there ANYWAY i can turn this off maybe after i zone out of that area...or something else that could turn it off ?
Here is my jacked up scripting:

#include "NW_I0_GENERIC"



void main()
{
effect eVis = EffectVisualEffect (VFX_FNF_SUMMON_UNDEAD);
DelayCommand(1.0, ApplyEffectAtLocation (DURATION_TYPE_INSTANT, eVis, GetLocation(OBJECT_SELF)));
effect eShape = EffectPolymorph (POLYMORPH_TYPE_PIXIE);
DelayCommand(1.0, ApplyEffectToObject (DURATION_TYPE_PERMANENT, eShape, OBJECT_SELF));

int nMatch = GetListenPatternNumber();
object oShouter = GetLastSpeaker();
object oIntruder;

if (nMatch == -1 && GetCommandable(OBJECT_SELF))
{
ClearAllActions();
BeginConversation();
}
else
if(nMatch != -1 && GetIsObjectValid(oShouter) && !GetIsPC(oShouter) && GetIsFriend(oShouter))
{
if(nMatch == 4)
{
oIntruder = GetLocalObject(oShouter, "NW_BLOCKER_INTRUDER");
}
else if (nMatch == 5)
{
oIntruder = GetLastHostileActor(oShouter);
if(!GetIsObjectValid(oIntruder))
{
oIntruder = GetAttemptedAttackTarget();
if(!GetIsObjectValid(oIntruder))
{
oIntruder = GetAttemptedSpellTarget();
if(!GetIsObjectValid(oIntruder))
{
oIntruder = OBJECT_INVALID;
}
}
}
}
RespondToShout(oShouter, nMatch, oIntruder);
}


if(GetSpawnInCondition(NW_FLAG_ON_DIALOGUE_EVENT))
{
SignalEvent(OBJECT_SELF, EventUserDefined(1004));
}

i know there is prolly alot of placement issues..but remember im a Big Ole Newb at this and i DO like that after i trigger her..the mobs i come across after that turn into fairies as well...just want to figure out a way to turn this effect off at a later date...maybe timed or maybe another NPC can turn it off...something. Any help would be GREATLY appreciated!
Thank again

Dustnab