ObLars Posted November 1, 2010 Share Posted November 1, 2010 Well, yesterday i started on a little project of mine, but i can't seem to get the script to end when i want it to. Scn BighornUrinGatherBigScript Begin OnActivate If getdead == 0 Player.additem BighornUrin 3 elseif getdead != 1 endif end This script will add Bighorn urine x 3 to my inventory if i activate a bighorn when its alive, and not when its dead. Thats good and all, but the script won't let me search the dead bighorn once i kill it, since the script is, somehow still going OnActivate. (Only reasonable cause i can think of). Could someone with a tad more scripting experience then myself maybe point out the error (s) and try and help me out? TIA. :) Link to comment Share on other sites More sharing options...
Thromnambular Posted November 1, 2010 Share Posted November 1, 2010 I can think of an approach to this that might work, though I'm not 100% sure about it. Anyway, you know how the Mister Sandman perk works? It adds an extra option (by adding a button named "Murder") when you activate sleeping human NPC. So, what if you did the same thing, add an "extract urine" button when you activate a living Bighorn. It doesn't force you to extract the urine, it'll just give you that extra option. Here are some screenshots as examples. Entry point for Mister Sandman perk:http://i54.tinypic.com/w978t5.png Entry point for a perk that let's you extract Bighorn Urine:http://i51.tinypic.com/2jdrpkp.png Where it says "YOUR SCRIPT HERE" just place your script without checking if the target is dead since the condition for the entry point can do that for you. EDIT: Misread your post, thought it was from dead Bighorns, so the second image is slightly wrong, the condition would be if GetDead = 0. Link to comment Share on other sites More sharing options...
ObLars Posted November 1, 2010 Author Share Posted November 1, 2010 Hmmmm, that might actually work :o But how would i, say.. enable it once a week. With a script i could code a timer. Thanks for the help! :P I'll be sure to test it out ;) Link to comment Share on other sites More sharing options...
ObLars Posted November 1, 2010 Author Share Posted November 1, 2010 No idea what causes it, but again, i can't search the dead animal. :( Even with the perk. But once i remove the perk and the script, the animal acts as usual, granting the search option like always. :s Link to comment Share on other sites More sharing options...
ObLars Posted November 1, 2010 Author Share Posted November 1, 2010 Bump - Still need advice. Link to comment Share on other sites More sharing options...
Quetzlsacatanango Posted November 1, 2010 Share Posted November 1, 2010 Why not give the bighorners a new death item that you harvest from their bodies just like any other loot? No script needed. Link to comment Share on other sites More sharing options...
ObLars Posted November 1, 2010 Author Share Posted November 1, 2010 Why not give the bighorners a new death item that you harvest from their bodies just like any other loot? No script needed. Cause that would mean the whole point of this mod would be ruined, i want to be able to harvest them over time, for profits. Im trying to make a ranch, like a cattle farmer. Getting by-products from them over time, then kill them for the meat. And have some kind of a Respawn script or something.. Link to comment Share on other sites More sharing options...
ObLars Posted November 1, 2010 Author Share Posted November 1, 2010 The only problem i got is that the Script makes so that the attached animal won't let me search it when it's dead. The (search) message shows on hoover, i click activate, but it wont give me the animals container.. Link to comment Share on other sites More sharing options...
Quetzlsacatanango Posted November 1, 2010 Share Posted November 1, 2010 Maybe you could make it a quest script that will add the items to the bighorners' inventory every x days. Link to comment Share on other sites More sharing options...
ObLars Posted November 1, 2010 Author Share Posted November 1, 2010 Maybe you could make it a quest script that will add the items to the bighorners' inventory every x days. That could be a viable option, but not what i was thinking of. Now, is there a way to prompt inventory search via the script? By adding i.e OpenTeammateContainer 1? Link to comment Share on other sites More sharing options...
Recommended Posts