Crafting Parameter Functions

Post » Thu Feb 25, 2010 5:09 pm

Managed to duplicate the necessary results for how to get parameters to work for perks like Vigilant Recycler and Hand Loader. However I want to know if I can put into the Recipe a parameter that requires the person to complete a quest first. Right now I want to make a recipe that consumes those blasted toy rockets for Fly Me To The Moon. Want to include a parameter function in that requires the player to complete that quest before they can actually use this recipe. Another concern I have is the rockets not being usable due to them being shielded as an item. Problem is once you acquire them they can't be used as anything else, but quest items.

Anyone have an idea of what sort of added function towards the end of the Fly Me To The Moon script I would need to add to turn the items into regular toy rockets? Know this can be done since i've seen it done with the Legend Of The Star quest/mission. Any bottlecaps you acquire after completing this quest that are Sunset Star Caps turn into regular caps.

*Edit/Update*

Ok did some fishing around in the GECK and found out some similar coding that I could potentially use. The thing i'm having problems understanding is the Sunset Star bottlecap for Legend of The Star seems to auto-shut off after the player reaches 54 caps, but i'm not seeing how that works.

Here's what i've found so far so I can get the best help possible:

1. Editor ID is VMS01RocketSouvenir
2. This is targeted by the VMS01RocketSouvenir script
 scn MS01RocketSouvenirSCRIPTbegin onAdd player   if Player.getItemCount VMS01RocketSouvenir >=5 && VMS01.FuelStatus== 0    Set VMS01.FuelStatus to 1       If GetObjectiveDisplayed VMS01 40==1             SetObjectiveCompleted VMS01 40 1             SetObjectiveDisplayed VMS01 41 1       endif      endifend

3. The Rocket Souvenir is set to a Quest related item and to undo this I will need to make a duplicate item by changing the VMS01RocketSouvenir then saving it as a new form to duplicate the cell. In this new cell i'll deactivate the quest related portion
4. Here are the two scripts for the Sunset Star Cap
*Thought I found the script, but can't find it now for some reason. Here's a script that is showing a reference to the starcap script*

scn NVStarBottleCapScript begin onAdd player	if VFreeformSSHQ.FirstCap == 0		; If this is the first cap the player found, spawn Malcolm Holmes		SSHQMalcolmHolmesREF.MoveTo SSHQMalcolmHolmesMarker		SSHQMalcolmHolmesREF.enable		SSHQMalcolmHolmesREF.evp		; Show Jacklyn and Tomas as well		SSHQTomasREF.enable		SSHQJacklynREF.enable		set VFreeformSSHQ.FirstCap to 1	elseif GetStage VMS09a == 100		player.additem caps001 1		RemoveMe	endifend



So how could I write a script up that tells the computer the remove all quest related VMS01RocketSouvenirs from the player and replace them with my non-quest related VMS01RocketSouvnirsAlt when the player is done with the Fly Me To The Moon Quest?
User avatar
Benji
 
Posts: 3447
Joined: Tue May 15, 2007 11:58 pm

Post » Thu Feb 25, 2010 4:18 pm

Anyone have any advice for me on how to make the rockets into a non quest item? Don't know how to utilize the scripts to do what I would want even though I found the coding.
User avatar
Tessa Mullins
 
Posts: 3354
Joined: Mon Oct 22, 2007 5:17 am


Return to Fallout: New Vegas