Jump to content

Need a helping hand (Script)


ObLars

Recommended Posts

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

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

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

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

  • Recently Browsing   0 members

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