Attaching Papyrus Script to Trees

Post » Fri Nov 16, 2012 9:18 pm

Is there anyway to attach papyrus scripts to trees or will I have to go old school oblivion style and write a quest script that can identify the editor ID and use an if block? (If not I hope Bethesda employees see this as a request for the next patch if at all possible *gets on knees and begs*)
User avatar
sarah taylor
 
Posts: 3490
Joined: Thu Nov 16, 2006 3:36 pm

Post » Fri Nov 16, 2012 7:58 am

you already can attach a script to a tree (on the reference not the base)

depends on what you need it to do though
User avatar
patricia kris
 
Posts: 3348
Joined: Tue Feb 13, 2007 5:49 am

Post » Fri Nov 16, 2012 6:23 pm

I need it to attach to the base, I would like to create a wood chopping skill that can be used away from the chopping blocks to harvest branches and such for fletching. It would be easiest to do this with an OnHit event, but I can't attach the scripts. I've done a bit more research since I posted this question :/ . So what I'm probably going to do is sort of like I did in the Oblivion scripting engine that will basically actively monitor the situation until I do hit and object with the editorID i'm after and go from there. (Really was avoiding that because it's a little heavier on the cpu and is more likely to bloat a save game.)
User avatar
Scott
 
Posts: 3385
Joined: Fri Nov 30, 2007 2:59 am

Post » Fri Nov 16, 2012 7:45 am

Yes, you can attack scripts to trees, just edit the tree and go to the script tab and add a script of your choosing or create a new one.
User avatar
Esther Fernandez
 
Posts: 3415
Joined: Wed Sep 27, 2006 11:52 am

Post » Fri Nov 16, 2012 12:58 pm

You can attach to an individual tree, but it would take forever to attach it to a few thousand individual trees. Hence why I would like to attach it to the base instead.
User avatar
Bethany Short
 
Posts: 3450
Joined: Fri Jul 14, 2006 11:47 am

Post » Fri Nov 16, 2012 1:39 pm

fwiw you can create a custom tree as a flora object, then attach a script to the base. of course the downside is you would not be able to control speedtree physics and you would have to run a search/replace on worldspace to replace the existing trees with your custom one
User avatar
MARLON JOHNSON
 
Posts: 3377
Joined: Sun May 20, 2007 7:12 pm

Post » Fri Nov 16, 2012 11:36 am

Check out http://www.creationkit.com/Dynamically_Attaching_Scripts#Attaching_Scripts_to_Objects on the CK-wiki, it might help you.
User avatar
Caroline flitcroft
 
Posts: 3412
Joined: Sat Nov 25, 2006 7:05 am

Post » Fri Nov 16, 2012 7:19 am

:D TYVM! That was exactly what I needed.
User avatar
Hannah Barnard
 
Posts: 3421
Joined: Fri Feb 09, 2007 9:42 am


Return to V - Skyrim