Unable to attach script to custom quest.

Post » Wed Nov 10, 2010 1:03 pm

I made a quest for a friend to add certain items to the Player's inventory if those items weren't present. I wrote a script for the quest and saved it as a Quest script, but it will not show up in the Script dropdown box for the quest. I've done this successfully for Oblivion more than once and followed the same steps: 1. Make the quest and save it. 2. Make the script and save it. 3. Open the quest and attach the script. So why is this not working for FO3? What did I miss?
User avatar
Ronald
 
Posts: 3319
Joined: Sun Aug 05, 2007 12:16 am

Post » Wed Nov 10, 2010 3:34 pm

Well, all I can say is check these few things. Make sure you named the script properly and dont have typos or something preventing you from finding it. Make sure it actually is a quest script, or else it will not show up.
User avatar
Kirsty Collins
 
Posts: 3441
Joined: Tue Sep 19, 2006 11:54 pm

Post » Wed Nov 10, 2010 12:04 pm

You did not miss any steps. That is exactly how I add scripts to quests.

Possible problems:
1. Its not really saved as a quest script.
2. The script is full of errors and will not save.
3. You have script functions that cannot be used in a quest script.
User avatar
Dona BlackHeart
 
Posts: 3405
Joined: Fri Dec 22, 2006 4:05 pm

Post » Wed Nov 10, 2010 2:33 pm

Thank you both. I looked through the script using FO3Edit and it definitely saved as a quest script. The script is:

scn ItemAddScriptBegin GameMode If Player.GetItemCount VaultTecSpecOpsArmor < 1   Player.AddItem VaultTecSpecOpsArmor 1 Endif If Player.GetItemCount VaultTecGaussRifle < 1   Player.AddItem VaultTecGaussRifle 1 Endif If Player.GetItemCount AmmoVTGauss < 1  Player.AddItem AmmoVTGauss 50 EndifEnd


Basically, he wanted to ensure that he could use his favorite armor and weapon in the DLCs, since some of them clear your inventory at some point or other. There were no errors when I saved it and I copy/pasted the item names to ensure there were no typos. Luckily, I had a backup of the original .esp he sent me. I started over with that and got it to work. I don't know why it worked the second time around, but it's not the first time something like that happened to me. :shrug:
User avatar
Benji
 
Posts: 3447
Joined: Tue May 15, 2007 11:58 pm

Post » Thu Nov 11, 2010 2:36 am

There is really no need for that script if thats all you want to do.
Just click the 'quest item' check box on the objects and they will not be removed by the DLC or any mod that uses the 'removeAllItems' function.
User avatar
Chantel Hopkin
 
Posts: 3533
Joined: Sun Dec 03, 2006 9:41 am

Post » Wed Nov 10, 2010 10:15 am

There is really no need for that script if thats all you want to do.
Just click the 'quest item' check box on the objects and they will not be removed by the DLC or any mod that uses the 'removeAllItems' function.

:facepalm: I didn't even think of that. Oh well, at least with this script he can trade armor and weapons with a companion without actually giving anything up.
User avatar
Albert Wesker
 
Posts: 3499
Joined: Fri May 11, 2007 11:17 pm


Return to Fallout 3