morrowind1979 Posted March 6, 2013 Share Posted March 6, 2013 I am looking to create a script I can attach to hearts in the game so each time the player eats a heart first the script checks to see if the player is mycustomrace and if true then each time the player eats a heart he gains 1 stamina point. So far this has me baffled, can anyone help? Link to comment Share on other sites More sharing options...
acidzebra Posted March 6, 2013 Share Posted March 6, 2013 (edited) Since the heart would presumably be in the player's inventory when the eating happens and objects in inventory don't run scripts afaik (because it's inside a container - you), you are probably better off creating a quest with a script tied to the playerref alias and then running the script from there. Edited March 6, 2013 by acidzebra Link to comment Share on other sites More sharing options...
morrowind1979 Posted March 6, 2013 Author Share Posted March 6, 2013 (edited) Ok thanks i will give that a try do u now what the script command is to increase stamina by 1 point by any chance? This is what i got and I am getting the error humheart not a known type: Scriptname Devourheart extends Quest Alias Property PlayerRef Auto Alias Property HumHeart Auto Alias Property DaHeart Auto Alias Property Bheart Auto Event OnActivate(HumHeart akPlayerRef) Debug.Trace("Activated by " + akPlayerRef)EndEvent Edited March 6, 2013 by morrowind1979 Link to comment Share on other sites More sharing options...
Recommended Posts