DesertLobster
-
Posts
5 -
Joined
-
Last visited
Posts posted by DesertLobster
-
-
2 hours ago, Tchernobill said:
instanceof(item, "Food")
returns true if it is Food, and returns false if it is not Food
Will instanceof also work for finding whether or not a food item is "Meat" or "Fish" for example, from the base game? I've already figured out how to test if an item is food by calling item:getCategory(). What I'm looking for is a way to get the "FoodType" not the item "Type"
-
Hello, I've been working on a mod attempting to add Diets to the game. In order to do this I would like to be able to retrieve (or get) the FoodType String from the item object if it is a food. I've been digging around for a while but haven't managed to figure out a way to do it. I was wondering if this is even possible currently?
I managed to adjust the FoodType variable by using ItemTweakerAPI for Build41 which allowed me to adjust only that value instead of overwriting everything. I confirmed that it was indeed working through the Mod Options mod. However, I have not been able to actually retrieve the FoodType variable from any food item object.
I was wondering if I was missing something or if this just isn't possible to do currently.
-
Also just realized this was posted 2 years ago so sorry for necroing this
-
Most of this has already been created by other modders.
These mods still work with the current build:
Here's a silent hill radio mod which plays static with nearby enemies: https://steamcommunity.com/sharedfiles/filedetails/?id=2436796084&searchtext=forever+fog
Here's an endless fog mod: https://steamcommunity.com/sharedfiles/filedetails/?id=2436796084&searchtext=forever+fog
Some older Silent Hill mods that may not work anymore:
Silent Hill Overhaul Mod: https://steamcommunity.com/sharedfiles/filedetails/?id=1688238013&searchtext=forever+fog
Silent Hill Music Replacer Mod: https://steamcommunity.com/sharedfiles/filedetails/?id=2282665384&searchtext=silent+hill+music
Doesn't have all of your ideas but I figured you would want to check those out before creating your own mods.
-
The survivor radio mod adds some music radio stations. This works in cars, radios, etc. It does a lot more than just that and I'd highly recommend it. I know it's not the same as it being implemented in the base game but it's a fun way to enjoy it now.
Here's the link: https://steamcommunity.com/sharedfiles/filedetails/?id=2224576262&searchtext=survivor+radio
-
I definitely agree that it would be cool to see in the game. You should check out the mod ZuperCart in the mean time. It adds a pushable shopping cart that you can store items in. Here's the link if you're interested: https://steamcommunity.com/workshop/filedetails/?id=2478768005
Can you retrieve FoodType?
in Tutorials & Resources
Posted
I swear I tried getFoodType() before and it wasn't working so I wrote it off as not being an actual method. Must've been something else I was screwing up. Now it's working though, so thanks a lot for your help! One step closer to making my first mod.