Hydromancerx Posted March 19, 2015 Share Posted March 19, 2015 I cannot tell if the dirty water I am putting in my custom water container is Clean or Dirty. How do I make it show that its Dirty? Do I need a new icon or is it something more (such as lua)? Large Tupperware Container Large Tupperware Container With Water Large Tupperware Container With Tainted Wateritem HCLargetup { Weight = 0.8, CanStoreWater = TRUE, Type = Normal, DisplayName = Large Tupperware Container, ReplaceOnUseOn = WaterSource-HCLargetupwater, icon = HCLargetup, }item HCLargetupwater { IsWaterSource = TRUE, Weight = 1.6, CanStoreWater = TRUE, Type = Drainable, UseWhileEquipped = FALSE, UseDelta = 0.02, DisplayName = Large Tupperware Container with Water, ReplaceOnDeplete = HCLargetup, ReplaceOnUseOn = WaterSource-HCLargetupwater, Icon = HCLargetupwater, } WolfeClaw 1 Link to comment Share on other sites More sharing options...
Svarog Posted March 19, 2015 Share Posted March 19, 2015 As far as I know. The "skull" icon will appear on the sprite as an overlay if the water is taken from a tainted source (Water barrels for example) no additional scripting is needed for items.Edit: Did a quick check using one of my mods that add water containers and yea, as long as CanStoreWater = TRUE, then whether or not water will be tainted depends solely on the water source. Green skull is an overlay that appears if it's tainted and it requires no additional code or sprites. Link to comment Share on other sites More sharing options...
WolfeClaw Posted March 19, 2015 Share Posted March 19, 2015 I had a feeling that was the case. Ah well, just re-use the normal water icon I made then. Link to comment Share on other sites More sharing options...
valrix Posted March 20, 2015 Share Posted March 20, 2015 You can also taint the water with a OnCooked/OnCreate event that calls setTaintedWater(true) on the item. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now