Jump to content

How to make an animal an activator


CaptainRC

Recommended Posts

Ok, after many requests, I've decided to at least try to add one little function to my old "Be a Milk Drinker" mod and make the milk harvestable from cows. Unfortunately, I don't know how to do that. Could someone show me how? Even better if you can explain to me how I can make it so that you can only harvest if you have a certain item. Edited by CaptainRC
Link to comment
Share on other sites

There are probably a few ways to go about this, though I can't say I've tried 'activating' a cow. :P One way would be to stick a script against a cow that does a GetItemCount() against your object. Another way could be to bind your cows to an event node, e.g., Player Activate Actor and bind the item check condition directly in there to trigger an admin quest that results in obtaining milk (e.g., when the quest is triggered through the event node, your quest would could be as simple as setting up your Reference Aliases for the actors (e.g., player and cow), doing a Game.GetPlayer().AddItem(milk, 1) plus some sort of timer interval set against GameDaysPassed so that you can't milk the same cow again for a certain period of time.

 

Of course, I could be completely wrong. :P

Link to comment
Share on other sites

Granted I'm just throwing this at the wall only because you haven't found a solution yet.

 

But you could make the cow "talk" and add "dialog" which is the option to milk the cow or leave him (edit: her, don't go milking bulls :pinch:) alone and then make the choosing milk option give you the item.

Edited by budcat
Link to comment
Share on other sites

Granted I'm just throwing this at the wall only because you haven't found a solution yet.

 

But you could make the cow "talk" and add "dialog" which is the option to milk the cow or leave him (edit: her, don't go milking bulls :pinch:) alone and then make the choosing milk option give you the item.

This should work, but he'd still need to script the milk add and the timer to prevent milking of the same cow within a certain time interval.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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