Jump to content

Recommended Posts

So I'm adding a animal that has hunger and you can feed it.  If you don't feed it, it will die.  Logic wise that all works perfectly, but it's really hard to know when it needs feeding.  So I'd like some custom mouse over text that tells you their hunger value.

 

And that's where I got totally lost.  I tried looking at things like "DisplayFoodValues" mod but that works on inventory items that already have mouse over tips and just adds info to the pre-existing tip.

 

I don't have a tip (as far as I can tell) and my efforst to simply add a Hoverer widget to my animal all seemed to have failed (which I get, it's not a gui item so adding gui widgets to it probably isn't designed to work).  So any other great ideas?  I thought of trying to add a bar (and looked at "FDDYnamicStatusBar" mod, but that seems super complicated.  Is there an easy way to just show a custom mouse over string when you hover over a specific inst of a custom prefab? :p

 

Thanks for any info.

Link to comment
https://forums.kleientertainment.com/forums/topic/31200-custom-mouse-over-text/
Share on other sites

I think you can also use the variable inst.name or something like that, I know Heavenfall used it in RPG Items if you want to check. With this you can change the name of an entity in one line and can change a "Cthulhu" to a "Starving Cthulhu" in one line.

Thanks - in the end I did get some text working by looking at a few mods (food values and damage numbers) but after all that effort I realised it was actually easier to just use a copy of the players health meter.  That looked way better than text too.  If anyone else is interested in custom health meter you can lookup the pets mod I'm working on:

 

Steam Workshop: http://steamcommunity.com/sharedfiles/filedetails/?id=222076729
Download Page: http://forums.kleientertainment.com/files/file/457-pets/

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...