Flora isHarvested?

Post » Wed Jun 20, 2012 3:52 pm

I'd like to know if there are any conditions I can use to determine whether a Flora has been harvested or not, there didn't appear to be one that was obvious so I was hoping there at least IS one. I've been working on my follower framework and I decided I would toss in harvesting... So far so good, I can make them run to a node of "Flora" type and "Acquire" it... Had a few speed bumps regarding package success/fails

So the Package Template ended up like this...

Sequence
--- Simultaneous
------- Find
------- Follow
--- Simultaneous
------- Travel
------- Wait
--- Simultaneous
------- Acquire (Complete on Success)
------- Wait (Complete on Success)

Explanation: Follower will continue to follow until it finds what it was looking for or follow completes (I don't think Follow does complete), then once found they travel to it, and simultaneously initiates a wait (package variable but set to 30s) so the actor has 30s to attempt to travel to said object (So if their path is blocked they don't stand there forever walking into a wall or whatever) then once either the 30s is up, or they reach their destination, start an acquire and simultaneously wait 5 seconds (this way they have 5 seconds to acquire whatever they found if anything).

Now, only problem is the "Flora" object type doesn't have any meaning to whether the node is ACTUALLY harvestable, so I hope there is a condition I can use to determine that so I can "fail" the next two branches after the Find, since I can't more finely tune the ObjectList regarding Flora.
User avatar
meg knight
 
Posts: 3463
Joined: Wed Nov 29, 2006 4:20 am

Post » Wed Jun 20, 2012 10:24 am

There is such a condition. Sort of. The floranirnroot use it. Hopefully you can find the gold nugget you need in there. The name of the script is NirnrootACTIVATORScript, which determines if the plant has been activated/harvest yet or not.
User avatar
Curveballs On Phoenix
 
Posts: 3365
Joined: Sun Jul 01, 2007 4:43 am

Post » Wed Jun 20, 2012 12:22 pm

Nirnroots use a straight activator, standard Flora use "Trees", and it seems like their behavior is hardcoded to have an activation option when their harvesting period is live. Couldn't find anything related to acquiring information from a harvestable tree.
User avatar
louise tagg
 
Posts: 3394
Joined: Sun Aug 06, 2006 8:32 am


Return to V - Skyrim