Help with a Quest Script not activating.

Post » Sun Jun 03, 2012 3:43 pm

So basically, Im trying to edit this mod (http://oblivion.nexusmods.com/mods/26723) as it currently has problems with containers in the Abandoned Mine with some of References being there.

What i have done is created a new cell called "ShadowRangerCell", Put all the References in there with the same name, as they were before. Even the same formIDs. Ive also rerefrenced them via TES4Edit, Other scripts i mean, So its basically the exact same as the original, except instead of being in the Abandoned Mine, they are in my cell i made called "ShadowRangerCell"

The first script (NAZRangerRetroS) activates fine.

scn NAZRangerRetroSshort ControlVarshort Buttonfloat Timershort Delaybegin GameModeif (Getstage AaaRangerTraining == 10)	 if (ControlVar == 0) ;&& (GetPCIsClass Ranger == 0)  messagebox "					 Shadow Ranger																								What would you like to add?", "All Features", "Abilities & Items","Pet Only", "Items Only"  set ControlVar to 1endif	endifif (ControlVar == 1)  set Button to GetButtonPressed   if (Button > -1)	if (Button == 0)	 set NAZRangerQ.CustomClass to 1	 set NAZRangerQ.LevelingNormal to 2	 StartQuest NAZRangerQ	 StopQuest NAZWolfScale	 set RangerPet to 1	 set ControlVar to 2	 stopquest NAZRangerRetroQ	 elseif (Button == 1)						 set NAZRangerQ.CustomClass to 1	 set NAZRangerQ.LevelingNormal to 2	 StartQuest NAZRangerQ						 StopQuest NAZWolfScale						 set RangerPet to 2	 set ControlVar to 2						 stopquest NAZRangerRetroQ						 elseif (Button == 2)						 StartQuest NAZRangerQ	 StopQuest NAZWolfScale						 set RangerPet to 3	 set ControlVar to 2						 stopquest NAZRangerRetroQ						 elseif (Button == 3)						 StopQuest NAZRangerQ						 StopQuest NAZWolfScale						 set RangerPet to 4	 set ControlVar to 2						 setstage AaaRangerTraining, 30						 stopquest NAZRangerRetroQ	endif   endifendifendifend

"What would you like to add?" Menu comes up fine, No problems, but when i click on All features, Or anything the next quest script "NAZRangerQ" does not activate. This is that Script:

------------------------scn NAZRangerS;***** IMPORTANTshort FirstContactshort ChoseRangershort TrapSprungshort PlayerLevelshort ImprovedArcheryshort ImprovedBlade;short ArcherModshort UsingBowShort UsingBladeshort CustomClassshort Buttonfloat fQuestDelayTimeshort ControlVarshort LevelingNormalshort RLshort Goshort Toolsref Howlshort ControlVarshort PetButtonshort ChosePetshort CheckCommandshort CheckCommandVarshort Comeshort FightToDeathshort Attackshort Stayshort Withdrawshort Heelshort DefendMeshort DefendOthershort StandGuardshort Scoutshort Downshort Sneakshort Trackshort PlayDeadshort GuardAreashort StopQuestBegin GameMode   if (ControlVar == 0) && (RangerPet == 1 || RangerPet == 3)	messagebox "Choose an Animal Companion.", "Wolf", "Panther","Bear"	set ControlVar to 1	return   endif   if (ControlVar == 1 && ChoseRanger == 0)	set PetButton to GetButtonPressed	 if (PetButton == 0)	  set Howl to Player.PlaceAtMe NAZMarker 1, 500, 0	  Howl.PlaySound3D NPCWolfHowl	  message "You hear a mournful howl somewhere in the distance. It seems strangely familiar." 15	  set ChoseRanger to 1	  set ChosePet to 1	 elseif (PetButton == 1)	  set Howl to Player.PlaceAtMe NAZMarker 1, 500, 0	  Howl.PlaySound3D NPCMountainLionInjured	  message "You hear a furious, feline screech somewhere in the distance. You feel drawn to it." 15	  set ChoseRanger to 1	  set ChosePet to 2						 elseif (PetButton == 2)	  set Howl to Player.PlaceAtMe NAZMarker 1, 500, 0	  Howl.PlaySound3D NPCBearAware	  message "You hear a mighty roar, somewhere in the distance. You feel drawn to it." 15	  set ChoseRanger to 1	  set ChosePet to 3	 endif   endif  endifendif  if (NAZGameStart == 0)   if (getstagedone AaaRangerTraining 10 == 1) || (LevelingNormal == 2)   set PlayerLevel to player.getlevel							  	if (ChosePet == 1)	 NAZWolfRef.enable	 NAZWolfRef.moveto player 0, 25000, 0	 NAZWolfRef.SetIgnoreFriendlyHits 1	 NAZWolfRef.SetOwnership	 SetEssential NAZWolf 1	 NAZWolfRef.EvaluatePackage	 NAZWolfRef.setghost 1	elseif (ChosePet == 2)	 NAZPantherRef.enable	 NAZPantherRef.moveto player 0, 25000, 0	 NAZPantherRef.SetIgnoreFriendlyHits 1	 NAZPantherRef.SetOwnership	 SetEssential NAZPanther 1	 NAZPantherRef.EvaluatePackage	 NAZPantherRef.setghost 1	elseif (ChosePet == 3)	 NAZBearRef.enable	 NAZBearRef.moveto player 0, 25000, 0	 NAZBearRef.SetIgnoreFriendlyHits 1	 NAZBearRef.SetOwnership	 SetEssential NAZBear 1	 NAZBearRef.EvaluatePackage	 NAZBearRef.setghost 1	 endif   NAZMenuRef.enable   NAZMenuRef.AddSpell NAZAbChameleon   NAZMenuRef.setav Chameleon 100   NAZMenuRef.SetGhost 1   set NAZSkillpoints to 4 + (player.getlevel *2)	if (player.getlevel > 12)	 set NAZSkillPoints to 28	endif   set NAZGameStart to 1    endifendifif (NAZGameStart == 5)   set NAZSkillpoints to 50   player.AddSpell NAZAbAsYouWill   player.AddSpell NAZSPNaturesBlessing   player.AddSpell NAZSPNaturesEmbrace   player.AddSpell NAZSpAnimalGrowth   player.AddSpell NAZSpReduceAnimal   player.AddSpell NAZPSummonNaturesAllyIV   player.AddSpell NAZSPNaturesRecovery   player.AddSpell NAZPSpikeGrowth   player.AddSpell NAZSPHoldAnimal   player.AddSpell NAZSPNaturesAid   player.AddSpell NAZPBarkskin   player.AddSpell NAZPSummonNaturesAllyI   player.AddSpell NAZPLongStrider   player.AddSpell NAZPJump   player.AddSpell NAZSPCalmAnimals   player.AddSpell NAZPCharmAnimals   player.AddSpell NAZPEntangle   player.AddSpell NAZAbAttack   player.AddSpell NAZAbCome   player.AddSpell NAZAbDefendMe   player.AddSpell NAZAbDefendOther   player.AddSpell NAZAbDown   player.AddSpell NAZAbGuardArea   player.AddSpell NAZAbHeel   player.AddSpell NAZAbLookout   player.AddSpell NAZAbPlayDead   player.AddSpell NAZAbSneak   player.AddSpell NAZAbStandGuard   player.AddSpell NAZAbStay   player.AddSpell NAZAbWithdraw   player.AddSpell NAZAbHoldFast			   player.addspell 0AdvancedShadowSight1			   player.addspell 0RangerTraining			   player.addspell 0ShadowRangerTraining			   player.addspell 0AdvancedShadowTraining			   player.addspell 0AnimalSwitch   set NAZGameStart to 1  endifend	 Begin Gamemode		   if (RangerPet == 3)			   player.AddSpell NAZSPNaturesRecovery			   player.AddSpell NAZSPNaturesBlessing			   player.AddSpell NAZSPNaturesEmbrace			   set RangerPet to 4			   setstage AaaRangerTraining, 30			   endif		   if (RangerPet == 4)			   return			   endif			if (getstagedone AaaRangerTraining 10 == 1) && (RangerPet == 2) && (Go == 0)			   set PlayerLevel to player.getlevel			   set LevelingNormal to 2			   set Go to 1			   endif;***** Leveling Rules *****if (PlayerLevel != player.getlevel) && (LevelingNormal ==1)  set PlayerLevel to player.getlevel		   if (player.getlevel == 2)	 player.AddSpell NAZSPCalmAnimals	messagebox "Ranger Level 2  Calm Animals: This spell renders animals calm and docile. Improves with level. "  			   elseif (player.getlevel == 3)	 set ImprovedArchery to 1	messagebox "					 Ranger Level 3																				  Improved Archery: You are uncommonly proficient with a Bow. "     elseif (player.getlevel == 4)	player.AddSpell NAZPEntangle	messagebox "					 Ranger Level 4																				  Entangle: Entangling vines rise from the earth to entrap your foe. Improves with levels. "  				elseif (player.getlevel == 5)	 set ImprovedBlade to 1	messagebox "					 Ranger Level 5																				  Improved Blade: You are uncommonly proficient with a Blade. "     elseif (player.getlevel == 6)	player.AddSpell 0AdvancedShadowSight1					messagebox "					 Ranger Level 6																				  Dark Vision: Your sight has become uncommonly proficient in the darkness."     elseif (player.getlevel == 7)	player.AddSpell NAZPCharmAnimals	messagebox "					 Ranger Level 7																				  Charm Animal: Causes an animal to regard you as a trusted friend and ally. Improves with level. "	  			   elseif (player.getlevel == 8) && (RangerPet != 2)	player.AddSpell NAZPSummonNaturesAllyIV	messagebox "					 Ranger Level 8																				  Nature's Ally: Summons random number of wolves or lions depending on which companion you have chosen. Adds beserk for bear companion."  			   elseif (player.getlevel == 9) && (RangerPet != 2)	player.AddSpell NAZSPNaturesRecovery	messagebox "					 Ranger Level 9																				  Shadow's Recovery: Heals both you and your companion."  			   elseif (player.getlevel == 10)	 setstage AaaRangerTraining 15					 ;messagebox "					 Ranger Level 10																			   Ranger Training: You have completed your training."																										  			   elseif (player.getlevel == 11) && (RangerPet != 2)	 player.addspell 0AnimalSwitch					 messagebox "					 Ranger Level 11																				Summon Animal Companion: You time in the wilderness has made you many allies. You now can summon alternate animal companions."																												     elseif (player.getlevel == 12)	set ImprovedArchery to 2	set UsingBow to 0	messagebox "					 Ranger Level 12																				 Expert Archery: Few can match your deadliness with the bow."     elseif (player.getlevel == 13)	player.AddSpell NAZPSnare	messagebox "					 Ranger Level 13																				 Snare: Set a magical booby trap that will ensnare the next person or creature that draws close."     elseif (player.getlevel == 14)	player.AddSpell NAZSPHoldAnimal					messagebox "					 Ranger Level 14																				 Shadow's Grasp: Prevents your enemies from taking any actions for a short time. Improves with level."     elseif (player.getlevel == 15)	set ImprovedBlade to 2	set UsingBlade to 0	messagebox "					 Ranger Level 15																				 Expert Bladesman: Few can match your deadliness with a blade."     elseif (player.getlevel == 16)					player.AddSpell NAZAbCamouflage	messagebox "					 Ranger Level 16																				 Stealth: Your stealth abilities have increased while outdoors."     elseif (player.getlevel == 17)	setstage AaaRangerTraining 25				  ;messagebox "					 Ranger Level 17																				 Shadow Ranger Training: You have completed your training."				     elseif (player.getlevel == 18) && (RangerPet != 2)	player.AddSpell NAZSPNaturesBlessing	messagebox "					 Ranger Level 18																				 Shadow's Blessing: Heals both you and your companion."  		   elseif (player.getlevel == 19)	player.AddSpell NAZPSpikeGrowth	messagebox "					 Ranger Level 19																				 Spike Growth: Summon thorny growth from the earth, entrapping and damaging anyone within a wide radius."  			   elseif (player.getlevel == 20)	player.AddSpell 0Camouflage	messagebox "					 Ranger Level 20																				 Shadow Stealth: Your stealth abilities have increased while indoors."     elseif (player.getlevel == 21)	set ImprovedArchery to 3	set UsingBow to 0	messagebox "					 Ranger Level 21																				 Master Archery: You have attained an unrivaled mastery of the bow."     elseif (player.getlevel == 22)					player.AddSpell 0curedisease	messagebox "					Ranger Level 22																				  Hands of the Healer: Cures all ailments that inflict your body."  			   elseif (player.getlevel == 23) && (RangerPet != 2)	player.AddSpell NAZSPNaturesEmbrace	messagebox "					 Ranger Level 23																				 Shadow's Embrace: Heals both you and your companion."   elseif (player.getlevel == 24)					set ImprovedBlade to 3	set UsingBlade to 0	messagebox "					 Ranger Level 24																				 Master Bladesman: You have attained an unrivaled mastery with a sword."     elseif (player.getlevel == 25)					player.AddSpell 0EndureElements				  messagebox "					 Ranger Level 25																				 Endure Elements: Nature can be a harsh place, you have learned to cope with the elements."					return   elseif (player.getlevel == 26)   endif  endif;***** Retro Leveling Rules *****		   if (LevelingNormal == 2) && (Go == 1)   if (player.getlevel >= 2) && (RL == 0)	 player.AddSpell NAZSPCalmAnimals	set RL to 3	messagebox "Ranger Level 2							  Calm Animals: This spell renders animals calm and docile. Improves with level. "	return			   elseif (player.getlevel >= 3) && (RL == 3)	 set ImprovedArchery to 1	set RL to 4	messagebox "					Ranger Level 3																				  Improved Archery: You are uncommonly proficient with a Bow. "	return   elseif (player.getlevel >= 4) && (RL == 4)	player.AddSpell NAZPEntangle	set RL to 5	messagebox "					 Ranger Level 4																				  Entangle: Entangling vines rise from the earth to entrap your foe. Improves with levels. "	return				elseif (player.getlevel >= 5) && (RL == 5)	 set ImprovedBlade to 1	set RL to 6	messagebox "					 Ranger Level 5																				  Improved Blade: You are uncommonly proficient with a Blade. "	return   elseif (player.getlevel >= 6) && (RL == 6)	player.AddSpell 0AdvancedShadowSight1					;player.removespell 0ShadowSight1	set RL to 7	messagebox "					 Ranger Level 6																				   Dark Vision: Your sight has become uncommonly proficient in the darkness."	return   elseif (player.getlevel >= 7) && (RL == 7)	player.AddSpell NAZPCharmAnimals	set RL to 8	messagebox "					 Ranger Level 7																				   Charm Animal: Causes an animal to regard you as a trusted friend and ally. Improves with level. "	return   elseif (player.getlevel >= 8) && (RL == 8) && (RangerPet == 2)	;player.AddSpell NAZPSummonNaturesAllyIV	set RL to 9	;messagebox "					 Ranger Level 8																				  Nature's Ally: Summons random number of wolves or lions depending on which companion you have chosen. Adds beserk for bear companion."	return			   elseif (player.getlevel >= 8) && (RL == 8) && (RangerPet != 2)	player.AddSpell NAZPSummonNaturesAllyIV	set RL to 9	messagebox "					 Ranger Level 8																				   Nature's Ally: Summons random number of wolves or lions depending on which companion you have chosen. Adds beserk for bear companion."	return			   elseif (player.getlevel >= 9) && (RL == 9) && (RangerPet != 2)	player.AddSpell NAZSPNaturesRecovery	set RL to 10	messagebox "					 Ranger Level 9																				   Shadow's Recovery: Heals both you and your companion."	return			  elseif (player.getlevel >= 9) && (RL == 9) && (RangerPet == 2)	;player.AddSpell NAZSPNaturesRecovery	set RL to 10	;messagebox "					 Ranger Level 9																				  Shadow's Recovery: Heals both you and your companion."	return			   elseif (player.getlevel >= 10) && (RL == 10)	 setstage AaaRangerTraining 15					 set RL to 11	 ;messagebox "					 Ranger Level 10																				Ranger Training: You have completed your training."																											return			   elseif (player.getlevel >= 11) && (RL == 11) && (RangerPet != 2)	 player.addspell 0AnimalSwitch					 set RL to 12	 messagebox "					 Ranger Level 11																				  Summon Animal Companion: You time in the wilderness has made you many allies. You now can summon alternate animal companions."																											 return			   elseif (player.getlevel >= 11) && (RL == 11) && (RangerPet == 2)	 ;player.addspell 0AnimalSwitch					 set RL to 12	 ;messagebox "					 Ranger Level 11																				  Summon Animal Companion: You time in the wilderness has made you many allies. You now can summon alternate animal companions."																											 return   elseif (player.getlevel >= 12) && (RL == 12)	set RL to 13	set ImprovedArchery to 2	set UsingBow to 0	messagebox "					 Ranger Level 12																				  Expert Archery: Few can match your deadliness with the bow."	return   elseif (player.getlevel >= 13) && (RL == 13)	player.AddSpell NAZPSnare	set RL to 14	messagebox "					 Ranger Level 13																				 Snare: Set a magical booby trap that will ensnare the next person or creature that draws close."	return   elseif (player.getlevel >= 14) && (RL == 14)	player.AddSpell NAZSPHoldAnimal					;player.removespell NAZPSummonNaturesAllyI	set RL to 15	messagebox "					 Ranger Level 14																				 Shadow's Grasp: Prevents your enemies from taking any actions for a short time. Improves with level."	return   elseif (player.getlevel >= 15) && (RL == 15)	set RL to 16	set ImprovedBlade to 2	set UsingBlade to 0	messagebox "					 Ranger Level 15																				 Expert Bladesman: Few can match your deadliness with a blade."	return   elseif (player.getlevel >= 16) && (RL == 16)					player.AddSpell NAZAbCamouflage	set RL to 17	messagebox "					 Ranger Level 16																				 Stealth: Your stealth abilities have increased while outdoors."	return   elseif (player.getlevel >= 17) && (RL == 17)	setstage AaaRangerTraining 25					set RL to 18	;messagebox "					 Ranger Level 17																				 Shadow Ranger Training: You have completed your training."					return   elseif (player.getlevel >= 18) && (RL == 18) && (RangerPet != 2)	player.AddSpell NAZSPNaturesBlessing	set RL to 19	messagebox "					 Ranger Level 18																				 Shadow's Blessing: Heals both you and your companion."	return			  elseif (player.getlevel >= 18) && (RL == 18) && (RangerPet == 2)	;player.AddSpell NAZSPNaturesBlessing	set RL to 19	;messagebox "					 Ranger Level 18																				 Shadow's Blessing: Heals both you and your companion."	return   elseif (player.getlevel >= 19) && (RL == 19)	player.AddSpell NAZPSpikeGrowth	set RL to 20	messagebox "					 Ranger Level 19																				 Spike Growth: Summon thorny growth from the earth, entrapping and damaging anyone within a wide radius."	return			   elseif (player.getlevel >= 20) && (RL == 20)	player.AddSpell 0Camouflage	set RL to 21	messagebox "					 Ranger Level 20																				 Shadow Stealth: Your stealth abilities have increased while indoors."	return   elseif (player.getlevel >= 21) && (RL == 21)	set RL to 22	set ImprovedArchery to 3	set UsingBow to 0	messagebox "					 Ranger Level 21																				 Master Archery: You have attained an unrivaled mastery of the bow."	return   elseif (player.getlevel >= 22) && (RL == 22)					player.AddSpell 0curedisease	set RL to 23	messagebox "					Ranger Level 22																				  Hands of the Healer: Cures all ailments that inflict your body."	return			   elseif (player.getlevel >= 23) && (RL == 23) && (RangerPet != 2)	player.AddSpell NAZSPNaturesEmbrace	set RL to 24	messagebox "					 Ranger Level 23																				 Shadow's Embrace: Heals both you and your companion."	return			   elseif (player.getlevel >= 23) && (RL == 23) && (RangerPet == 2)	;player.AddSpell NAZSPNaturesEmbrace	set RL to 24	;messagebox "					 Ranger Level 23																				 Shadow's Embrace: Heals both you and your companion."	return   elseif (player.getlevel >= 24) && (RL == 24)					set RL to 25	set ImprovedBlade to 3	set UsingBlade to 0	messagebox "					 Ranger Level 24																				 Master Bladesman: You have attained an unrivaled mastery with a sword."	return   elseif (player.getlevel >= 25) && (RL == 25)					player.AddSpell 0EndureElements					set RL to 26	messagebox "					 Ranger Level 25																				 Endure Elements: Nature can be a harsh place, you have learned to cope with the elements."					return;   elseif (player.getlevel >= 26) && (RL == 26)   else	set PlayerLevel to player.getlevel	set LevelingNormal to 1   endif  endifendBegin Gamemode;***** Check for As You Will Commands	if CheckCommandVar == 0 && NAZGameStart == 0 || LevelingNormal == 2  set CheckCommandVar to 20endifif (CheckCommandVar == 0)  set CheckCommand to player.AddSpell NAZAbDefendMe   if (CheckCommand == 1)	player.removespell NAZAbDefendMe	set CheckCommandVar to 1;	message "Player does not know Defend Me."   elseif (CheckCommand == 0)	set NAZKnowsDefendMe to 1	set CheckCommandVar to 1	set DefendMe to 1;	message "Player knows Defend Me. Adding Global."   endifendifif (CheckCommandVar == 1)  set CheckCommand to player.AddSpell NAZAbHeel   if (CheckCommand == 1)	player.removespell NAZAbHeel	set CheckCommandVar to 2;	message "Player does not know Heel."   elseif (CheckCommand == 0)	set NAZKnowsHeel to 1	set CheckCommandVar to 2;	message "Player knows heel. Adding global."	set Heel to 1   endifendifif (CheckCommandVar == 2)  set CheckCommand to player.AddSpell NAZAbSneak   if (CheckCommand == 1)	player.removespell NAZAbSneak	set CheckCommandVar to 3;	message "Player does not know sneak."   elseif (CheckCommand == 0)	set NAZKnowsSneak to 1	set CheckCommandVar to 3;	message "Player knows sneak. Adding global."	set Heel to 1   endifendifendBegin Gamemode;***** Improved Archery *****if (ImprovedArchery != 1 && ImprovedArchery != 2 && ImprovedArchery != 3)returnendifif (ImprovedArchery == 1)  if (player.GetWeaponAnimType == 3) && (UsingBow == 0)   player.modav attackbonus 4   set UsingBow to 1  elseif (player.GetWeaponAnimType != 3) && (UsingBow == 1)   player.modav attackbonus -4   set UsingBow to 0  endifendifif (ImprovedArchery == 2)  if (player.GetWeaponAnimType == 3) && (UsingBow == 0)   player.modav attackbonus 7   set UsingBow to 1  elseif (player.GetWeaponAnimType != 3) && (UsingBow == 1)   player.modav attackbonus -7   set UsingBow to 0  endifendifif (ImprovedArchery == 3)  if (player.GetWeaponAnimType == 3) && (UsingBow == 0)   player.modav attackbonus 10   set UsingBow to 1  elseif (player.GetWeaponAnimType != 3) && (UsingBow == 1)   player.modav attackbonus -10   set UsingBow to 0  endif	  endifendBegin Gamemode;********Improved Blade********if (ImprovedBlade != 1 && ImprovedBlade != 2 && ImprovedBlade != 3)returnendifif (ImprovedBlade == 1)  if (player.GetWeaponSkillType == 1) && (UsingBlade == 0)   player.modav attackbonus 2   set UsingBlade to 1  elseif (player.GetWeaponSkillType != 1) && (UsingBlade == 1)   player.modav attackbonus -2   set UsingBlade to 0  endifendifif (ImprovedBlade == 2)  if (player.GetWeaponSkillType == 1) && (UsingBlade == 0)   player.modav attackbonus 5   set UsingBlade to 1  elseif (player.GetWeaponSkillType != 1) && (UsingBlade == 1)   player.modav attackbonus -5   set UsingBlade to 0  endifendifif (ImprovedBlade == 3)  if (player.GetWeaponSkillType == 1) && (UsingBlade == 0)   player.modav attackbonus 8   set UsingBlade to 1  elseif (player.GetWeaponSkillType != 1) && (UsingBlade == 1)   player.modav attackbonus -8   set UsingBlade to 0  endif	  endifEnd;; 2015 ; This is an uncompiled script. Expect weird behavior during runtime execution ;

The Messagebox "Choose an Animal Companion" does not appear at all and thats it, it doesnt carry on.
I havent edited any of the scripts, The normal ESP from the first link the scripts work fine, But again the NPCs are in the Abandoned Mines, causing problems with containers there.

I just dont quite understand why it wont work even though they have the exact same name and References.

If anyone can help, that would be amazing
User avatar
kitten maciver
 
Posts: 3472
Joined: Fri Jun 30, 2006 2:36 pm

Return to IV - Oblivion