bigglebojiggle Posted January 12, 2022 Posted January 12, 2022 There are a couple mods I want to make but I'm having trouble getting some stuff to work. I don't think this falls under technical support, so I'm asking here. Here's a couple things I want to do: 1: I want to start a game with an item and make a character give me a key. I made a custom player home and a small dialogue related "quest" related to getting this house. The long and short of it is, the player starts the game with a letter of inheritance, is requested to speak to Proventus in White Run, and is informed of a relative's passing, then given a key. The house works fine, the keys work fine, the dialogue is mostly fine. The dialogue only shows up when I have the letter in my inventory, but I can't figure out how to start the game with it instead of adding it manually with Add Item Menu or the console (I was using Alternate Start Live Another Life if it helps). The dialogue plays correctly but I don't get the key after it ends no matter what I try. 2: I hesitate to ask given the nature of this site, but this mod isn't actually sexual. I want to be able to give adopted kids different clothes. I use RCOTS Friend Children as my child overhaul, even adding a custom character and redesigning an existing character correctly, but I can't figure out how to give them new clothes as a gift. I was using a mod that adds a ton of new options to the gift options by adding items to the FormID list, but clothing is more complicated. It appears that I need to give them a Misc item that forces them to swap to an Outfit, but I can't get it to work. I've made the misc item, set up the outfit, tried to add a script, but they just go "Thanks!" and walk off without changing outfits. If I play as a kid myself I can wear it and it displays correctly, but they won't wear it themselves. Forcing them to equip it or add it the inventory didn't appear to work last I tried, but I might have done something wrong, is it possible to make them switch from the basic five outfits? Tl;dr: 1, I want to start the game with an item, then receive and item through dialogue 2, I want to give adopted kids custom outfits from other (mainly RCOTS in this case) mods Thanks for taking the time to read all this!
aurreth Posted January 12, 2022 Posted January 12, 2022 1. You create a new quest with Start Game Enabled and Run Once checked. Give it one Quest Stage. That stage is used to give the letter to the player.
Seijin8 Posted January 12, 2022 Posted January 12, 2022 1 hour ago, bigglebojiggle said: I want to start the game with an item, then receive and item through dialogue Needs to be scripted. Can be as simple as... ThisIsYourQuestScript extends Quest ObjectReference property ItemToGive auto Event OnInit() RegisterForSingleUpdate(5.0) EndEvent Event OnUpdate() (Game.GetPlayer()).AddItem(ItemToGive) EndEvent Attach the script to the quest, then fill the property for the item to give. Just note that working with scripts in CK can be a pain in the arse.
bigglebojiggle Posted January 13, 2022 Author Posted January 13, 2022 9 hours ago, aurreth said: 1. You create a new quest with Start Game Enabled and Run Once checked. Give it one Quest Stage. That stage is used to give the letter to the player. 8 hours ago, Seijin8 said: Needs to be scripted. Can be as simple as... ThisIsYourQuestScript extends Quest ObjectReference property ItemToGive auto Event OnInit() RegisterForSingleUpdate(5.0) EndEvent Event OnUpdate() (Game.GetPlayer()).AddItem(ItemToGive) EndEvent Attach the script to the quest, then fill the property for the item to give. Just note that working with scripts in CK can be a pain in the arse. Thank you both, I'm going to go look into this!
Mister X Posted January 13, 2022 Posted January 13, 2022 For 1) If you have a quest and fill a ReferenceAlias with a Specific Reference to the PlayerRef, you simply can add your letter to the alias inventory in the Reference Alias window (bottom left) This should give the letter to the player as soon as your quest starts. Make the quest start game enabled and the player gets the letter right at the start. No scripting needed in my eyes. But I'm not that experienced with the CK yet, so this might not work for the player.
fishburger67 Posted January 14, 2022 Posted January 14, 2022 You can also start your quest with the story manager. It is really powerful. Give it a look.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.