Jump to content
  1. DOWNLOAD MODS

    Are you looking for something shiny for your load order? We have many exclusive mods and resources you won't find anywhere else. Start your search now...

    LEARN MODDING

    Ready to try your hand at making your own mod creations? Visit the Enclave, the original ES/FO modding school, and learn the tricks of the trade from veteran modders...

    JOIN THE ALLIANCE

    Membership is free and registering unlocks image galleries, project hosting, live chat, unlimited downloads, & more...

Sign in to follow this  
bleakraven

[SKY] Removing an item belonging to a keyword

Recommended Posts

Hey there!

 

I have a house that requires furs in order to be fully furnished (comfy rugs, beds...). How can I remove an item from the player that is considered a fur item? Trying to removeItem using VendorItemAnimalHide didn't work... Is there a way to check if the player has 1 item of this kind and remove it, or do I have to make a huge IF list for every item that has this keyword?

 

Cheers

Share this post


Link to post
Share on other sites

You could create a new formlist with all the fur items in it. Then you can use the formlist like any object, get counts, remove items, etc..

Share this post


Link to post
Share on other sites

If I do that, and then call RemoveItem(myformlist, 1) will it then pick 1 object at random that belongs to that list and remove it?

Share this post


Link to post
Share on other sites

Not sure... it might, or it might remove one of each. :shrug: Give it a try and see.

Share this post


Link to post
Share on other sites

According to CK Wiki, it will remove one of each items, if the player has one of it.

 

 

If you pass in a form list, it will remove aiCount of each item in the form list from the container

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×