Thanks a lot for the awsome help guys!
'>
@
pattycake1With my lack of knowledge of scripting, I have no idea why I had (!getIsPC(oPC)
listed nearly several times in my script. I assume it's just basically looking to see if the pc is included in the area. And yes, my wolves do move.
What I was a little confused by though, was that you said it wasn't needed at all.
So I took it out of my script completely to see what would happen.
I ended up with something a bit weird - wolves moving in wrong directions.
'>
So I put that
(!getIsPC(oPC) back in my script, but only once near the top, and it worked okay again.
@
meaglynI went ahead and took your advice by placing my 2 wolves 5 and 6 in a hidden area first, then calling them in at their respective waypoints afterwards, then scripting them (along with wolves 3 and 4) to move along to their next waypoints. This worked out fine then obviously.
You have helped me to alter my script a bit to how I want it, and now it looks something like this.
----------------------------------------------------------------------------------------------------------------------------------------------
#include "nw_i0_2q4luskan"
#include "in_g_cutscene"
void main()
{
object oPC = GetEnteringObject();
//Let's declare the wolves ahead of time to clean things up.
object oWolf3 = GetObjectByTag("WinterWolf3");
object oWolf4 = GetObjectByTag("WinterWolf4");
object oWolf5 = GetObjectByTag("WinterWolf5");
object oWolf6 = GetObjectByTag("WinterWolf6");
GestaltStartCutscene(oPC, "cranecam");
GestaltCameraCrane (0.0,
0.0, 3.0, 90.0, 3.0,
0.0, 3.0, 90.0, 3.0,
8.0, 10.0,
oPC, 0);
if (!GetIsPC(oPC)) return;
//Added this, setting duration to the end just after the last ActionMove
//commands will be completed firing (take their fDelay time and add the fTime
//used in the function).
GestaltInvisibility (0.0, oPC, 30.0);
//For the movement commands we will have to add WPs if we want the camera to
//be somewhere other than the wolves. For simplicity, I will just use the
//existing WPs
//Move wolves and camera to First WP in 2 seconds (2.0/18.0).
GestaltActionMove(1.00,oWolf3,GetWaypointByTag("WPWinterwolf3"),FALSE,0.0,2.0);
GestaltActionMove(1.00,oWolf4,GetWaypointByTag("WPWinterwolf4"),FALSE,0.0,2.0);
GestaltActionMove(1.00,oPC,GetWaypointByTag("WP_PC_Move4"),FALSE,0.0,2.0);
object oCaster;
oCaster = GetObjectByTag("WinterWolf3");
object oTarget;
oTarget = GetObjectByTag("WP_WolfHowl_3");
DelayCommand(9.0, AssignCommand(oCaster, ActionCastFakeSpellAtLocation(VFX_FNF_HOWL_WAR_CRY, GetLocation(oTarget), PROJECTILE_PATH_TYPE_DEFAULT)));
oCaster = GetObjectByTag("WinterWolf4");
oTarget = GetObjectByTag("WP_WolfHowl_4");
DelayCommand(9.0, AssignCommand(oCaster, ActionCastFakeSpellAtLocation(VFX_FNF_HOWL_WAR_CRY, GetLocation(oTarget), PROJECTILE_PATH_TYPE_DEFAULT)));
oTarget = GetObjectByTag("SoundWolfHowls");
DelayCommand(9.0, SoundObjectPlay(oTarget));
DelayCommand(9.0, SoundObjectSetVolume(oTarget, 3000));
DelayCommand(13.0, SoundObjectStop(oTarget));
// Have "Wolf5" perform a sequence of actions.
oWolf5 = GetObjectByTag("WinterWolf5");
AssignCommand(oWolf5, ActionWait(12.0));
AssignCommand(oWolf5, ActionJumpToObject(GetObjectByTag("WPWinterWolf5")));
// Have "Wolf5" perform a sequence of actions.
oWolf6 = GetObjectByTag("WinterWolf6");
AssignCommand(oWolf6, ActionWait(12.0));
AssignCommand(oWolf6, ActionJumpToObject(GetObjectByTag("WPWinterWolf6")));
effect eVFX;
// Apply a visual effect.
eVFX = EffectVisualEffect(VFX_IMP_HEALING_X);
oTarget = GetObjectByTag("WPWinterWolf5");
DelayCommand(12.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eVFX, GetLocation(oTarget)));
eVFX = EffectVisualEffect(VFX_IMP_HEALING_X);
oTarget = GetObjectByTag("WPWinterWolf6");
DelayCommand(12.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eVFX, GetLocation(oTarget)));
GestaltActionMove(16.00,oWolf3,GetWaypointByTag("WinterWolfWalkPoint7"),FALSE,0.0,2.0);
GestaltActionMove(16.00,oWolf4,GetWaypointByTag("WinterWolfWalkPoint8"),FALSE,0.0,2.0);
GestaltActionMove(16.00,oWolf5,GetWaypointByTag("WinterWolfWalkPoint9"),FALSE,0.0,2.0);
GestaltActionMove(16.00,oWolf6,GetWaypointByTag("WinterWolfWalkPoint10"),FALSE,0.0,2.0);
GestaltActionMove(16.00,oPC,GetWaypointByTag("WP_PC_Move5"),FALSE,0.0,2.0);
GestaltStopCutscene (24.0, oPC);
}-------------------------------------------------------------------------------------------------------------------------------------------------------
It's only half finished right now, as I still have a bit more to add to it.
But I've been using the LS TK Script Generator, (which used to be made by "Lilac Soul")
and hopefully it will help me further to finish my script with the next npc i have included in my area.
Thanks again for the help.
'>
Modifié par MissJaded, 08 octobre 2012 - 02:58 .