shadowdancer Posted April 20, 2015 Posted April 20, 2015 Hi all, I have a question to pro. modders. I already did a lot of different standalone followers, but now for some of them i want to do next thing - i want that my standalone follower could change outfits if i ask him/her through the dialog window. The same way as it was done in Kasumi mod by JackGa for example. So, is there any tutorial which can explane the whole process or can anyone help me with step by step explanation???I think this probably will involve some scripting.... Thank you to anyone who can help)))
Guest Posted April 20, 2015 Posted April 20, 2015 Create a Quest Create A dialogue inside Add a Branch (and a topic) In the topic write something like "Dear follower, change your armor" In the answer just say something (an answer is required.), like "Ok" Then condition the answer to be: GetId "Id of your follower" == 1.0 --> This will make your question available only for the follower. Then in the answer, you will see something called "Papyrus fragments". Write this code in the fragment: if (akSpeaker.getItemCount(myFancyArmor)==0) akSpeaker.addItem(myFancyArmor, 1) endIf akSpeaker.equipItem(myFancyArmor, true) Close and re-open the answer (forget about the errors you will get the first time, just say yes.) You will see now a papyrus fragment created. Edit it (not the code you did before, the new item on the very right) There should be some code inside. At the very bottom add: Armor Property myFancyArmor Auto Save. Now edit the properties of the fragment and pick the armor you want. That is a basic, but should do the trick.
shadowdancer Posted April 20, 2015 Author Posted April 20, 2015 Thx , that was quite good info) But , now i have another question - in properties of the fragment can i put the name of the outfit (which contain set of armor pieces) or i need to write the name of every single piece of armor, which i want my follower to dress???
Guest Posted April 20, 2015 Posted April 20, 2015 I am not aware about outfits (I don't think you can wear them through Papyrus code, but I can be wrong.) For sure you can add all pieces of the armor using the same approach I mentioned before.
shadowdancer Posted April 20, 2015 Author Posted April 20, 2015 Ok Thank you, I will try this) Though i still hope that someone will be able to answer me about sets of armor (Outfits)
Guest Posted April 20, 2015 Posted April 20, 2015 I tried to "Equip" an outfit. It does not work. But if you get the outfit you can do something like: Outfit Property myOutfit Auto Function blah() ... int num = myOutfit.GetNumParts() while (num) num -= 1 akSpeaker.EquipItem(myOutFilt.GetNthPart(num) endWhile ... EndFunction This requires SKSE.
shadowdancer Posted April 20, 2015 Author Posted April 20, 2015 Ok i try it, and yes i use latest skse version) and thank you again)
Reenana Posted April 21, 2015 Posted April 21, 2015 hmm, nice coincidence... since sooner or later me gotta learn about scripting too.. me gonna watch this thread C:
Guest Posted April 21, 2015 Posted April 21, 2015 Hello @Reenana, for any kind of scripting feel free to ask.
shadowdancer Posted April 21, 2015 Author Posted April 21, 2015 hmm, nice coincidence... since sooner or later me gotta learn about scripting too.. me gonna watch this thread C: I myself very novice with scripting too)
Reenana Posted April 21, 2015 Posted April 21, 2015 Hello @Reenana, for any kind of scripting feel free to ask. Thankies CPU (^▽^)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.