Jump to content

How do i run a timer on an NPC


dieangel68

Recommended Posts

I'm trying to make a custom npc that require to eat food every now and then, for this i "assume" that i need to run some sort of regular timer so his "hunger" value gradually goes up (then i can trigger a quest from it, popup message to the player, make it eat food from it's inventory, etc)

 

How do i implement this?

Link to comment
Share on other sites

Hmm... Not sure... Have you thought of just giving him a set of armor with a custom effect of StarvationDamage? Maybe one point of starvation damage every two seconds, that would take 400 seconds, or six minutes forty seconds of gameplay, to reach the first Starvation level. Whenever you're tired of feeding him/her/it, just remove the item with the effect.
Link to comment
Share on other sites

  • Recently Browsing   0 members

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