Jump to content

(Question) About clothes/outfits & followers !


shadowdancer

Recommended Posts

Posted

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)))

Posted

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.

 

 

Posted

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???

 

Posted

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.

 

Posted

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.

 

Posted

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)

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...