Jump to content

Making a harvestable plant give multiple items?


saintgrimm92

Recommended Posts

I'm working on a mod that adds a unique plant that I want to give 10 of a single item.

 

I figure I could use a script with an onactivate event, but I have no idea how to write a script to check and only give the items if the ingredient has respawned and is harvestable again, so I'm hoping someone can give me a more simple way to just add 10 of the ingredient when the specific plant is harvested instead of the default 1 item.

 

If there's no other way, could someone fill me in on how to set up a script so it only works when the ingredients on a plant are available?

 

 

 

EDIT:

Found a script called DefaultFakeHarvestableScript in CK. For anyone else trying to do the same thing, make your plant an activator instead of a tree, copy the body of that entire script into a new script, and change "1" in the line:

(akActivator as actor).addItem(IngredientHarvested, 1, true)

to however many ingredients you want to add, in the properties you can manually set the respawn time and etc.

 

 

EDIT2: Hearthfires adds plants that give multiple harvests through a misc item/script as well, slightly easier than scripting a fake plant activator, but I already have the script for activator, so I won't bother looking into detail how the BYOH plants work

Edited by saintgrimm92
Link to comment
Share on other sites

  • 1 year later...
  • Recently Browsing   0 members

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