Jump to content

Script help please. :(


ObLars

Recommended Posts

this is the first time i have ever heard about such a problem......

 

i'll see if i can find anything, but i really doubt it......

 

Huh, its weird. To me it seems the end statement doesnt really end the script effect (OnActivate). So that i keep trying to activate the corpse, instead of opening the container.

But thanks, again :)

Link to comment
Share on other sites

well, i guess the problem is the script not allowing the loot script to run

so i guess you will have to change the script, so it will not be attached to that creature

 

which means that every time you activate an object, it will check if it is this creature, and then do the script

 

that is the only option i can think of......

 

it's either this, or when it dies, you replace it with a dead version, that could be looted

Link to comment
Share on other sites

  • 2 weeks later...
Hmm, well. It's not intended to be a cheat :P I just want to be able to (In round one) To get the script to do what i want, for instance. Then i'll probobly add a timer, so that i can only drain the bighorn for 2-3 bottles a day, max. :) I know i can attach it to the bighorn itself, but since im missing that variable value i can't even save it. :( The idea behind it was to drain the bighorn for milk, as in a ranch, but since there is no Milk in vanilla New Vegas. I simply changed the ID of Dirty-Water to Bighorn Urine. And altared the stats to be more urine like. :)

 

I think I'm at about the same stage as you with my own bighorn milking mod. In my version, the player needs to be holding a Milk Bottle that is then converted into a Bighorner Milk consumable. I can't seem to get mine to "restock" though - in theory the onReset should do that after a period (72hrs?) of being out of the cell, but it doesn't seem to have any effect :(

 

Incidentally, I lifted this script originally from the barrel cactus plant. It had a couple of references to playing animations (these appeared to make them re-bloom) which aren't required in this case.

 

scn MCMilkBighornerScript

int State

begin onActivate
if State == 0 && GetActionRef == player
	if player.GetItemCount MilkBottle01 == 0
		ShowMessage MCBighornerMilkFailed
	else
		player.RemoveItem MilkBottle01 1
		player.additem MCBighornerMilk 1
		set State to 1
		setdestroyed 1
	endif
endif
end

begin onReset
if State == 1 && GetDead == 0
	set State to 0
	setdestroyed 0
endif
end

Link to comment
Share on other sites

  • Recently Browsing   0 members

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