• Content Count

  • Joined

  • Last visited

About lance789

  • Rank
    Advanced Member

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

522 profile views
  1. lance789

    Lua spawning an item using ..._OnCreate

    Thank you.
  2. So, so im trying to figure out how to spawn an item added by a mod directly into player inventory but whenever i use the associated recipe, the items needed gets used but the item doesn't spawn... Example: Item: module Extended_Foods{ imports { Base }item ChickenRamenPot_3_5 { HungerChange = -60, Type = Food, DisplayName = Pot of Chicken Flavoured Ramen, MinutesToCook = 30, Weight = 3, IsCookable = True, DaysTotallyRotten = 10, UnhappyChange = 90, FatigueChange = +80, StressChange = +70, MinutesToBurn = 30, Icon = EFM_BLANK, ReplaceOnUse = Pot, DaysFresh = 5, //BoredomChange = 30, DangerousUncooked = TRUE, }}Recipe: module Extended_Foods{ imports { Base }recipe Make ThreeFifths Pot of Ramen Chicken Flavor { ChickenRamenBowl=3, Pot, Result:Bowl=3, Time:20.0, }}3 Bowls Combined to make 3/5 of a Pot of Ramen: -- Recipe LUA-- Made by: Svarog-- (I added in this pot of ramen data)-- Pot of Ramen - B2P (3/5)function RecipeMake ThreeFifths Pot of Ramen Chicken Flavor_OnCreate(items, result, player) local inv = player:getInventory(); inv:AddItem("Extended_Foods.ChickenRamenPot");So every time i've made 3 Ramen Bowls and combined them, i'd get the 3 bowls back (so thats good), but no 3/5Ramen Pot... Could anyone please help me sort out how to get this properly working? Ive already have the codes for all ramen chicken "bowls -> pot", "pot -> bowls", and "pot -> pot" combinations done, i just need to get the Lua working. D:
  3. lance789

    Extended Foods Mod (BETA) v1.0.1

    Longer experation dates are being made through packed meals and rations. Trying to figure out how to use lua to give more than 1 item when an item is used (i.e. when a packed meal is used, it may give 3 foods that were used to craft it)
  4. lance789

    Extended Foods Mod (BETA) v1.0.1

    wow, out of all the desserts i had planned, brownies never occurred to me, These are great suggestions. as of build 31.2, french fries are already in the game, so yeah, happy meals are planned xD Ketchup and Mustard are also in game and i think meat patties are the ground beef equivalent. really liking the idea of Enchiladas, brownies and Quesadilla though i'll work on adding these when my next test is over (this coming friday)
  5. lance789

    Extended Foods Mod (BETA) v1.0.1

    sorr, last 2 days i've been busy outside of home.... now spring break has ended which means back to labs ;__;
  6. lance789

    Extended Foods Mod (BETA) v1.0.1

    THANKS MAN!!!! re-uploading a link with distribution values rebalanced to the intended values.
  7. lance789

    Extended Foods Mod (BETA) v1.0.1

    Download of mod is available now, but mod needs some heaving fixing (which is why im releasing it now).
  8. lance789

    Need help finding data/code/script

    some of these i didnt know were usable, like AlwaysWelcomeGift (need to get this implemented in my code) EnduranceChange (what exactly does this apply to?) AlcoholPower = 1 (HOLY CRAP i didnt know this was a thing!!! need to use) PoisonPower = 40 (didnt know this was a thing, should prob use this in conjunction with spicy foods) UseForPoison = 15, (I don't know what this does) EvolvedRecipe (i know how to use this, but since i've coded my items in a way to where some pieces are universal (such as batter and sandwhich fillings, i wont need this) PoisonDetectionLevel (i've seen this somewhere before, i think it may come in handy when NPCs are enabled) >:3 ReplaceOnUse = base.item (is the base.item part specifically needed? i know pre build 30 you just have the item tag alone to spawn it on use) So, this is pretty much what the first 40 items i have looks like: -- [ Script File]module Extended_Foods { imports { Base }item TasteyHamSandwich { HungerChange = -95, Type = Food, DisplayName = Ham Sandwich, IsCookable = FALSE, DaysTotallyRotten = 4, UnhappyChange = 35, FatigueChange = -5, StressChange = -3.0, Icon = Item_EFM_BLANK.png, DaysFresh = 2, } recipe Make Ham Sandwich { BreadSlices=2/Sandwich, HamSlices, SandwichFilling, Result:TasteyHamSandwich, Time:20.0, } recipe Make Ham Sandwich { HamSandwich, SandwichFilling, Result:TasteyHamSandwich, Time:20.0, }}-- [ LUA File ]require "Items/SuburbsDistributions";require "Items/Extended_Foods";require "Items/Extended_Foods_Medical";Extended_Foods = {}Extended_Foods.version = "1.0"; = "lance789";Extended_Foods.modName = "Extended Foods Mod";-- Tastey Ham Sandwichtable.insert(SuburbsDistributions["all"]["stove"].items, "Base.TasteyHamSandwich");table.insert(SuburbsDistributions["all"]["stove"].items, 2);table.insert(SuburbsDistributions["all"]["fridge"].items, "Base.HamSandwich");table.insert(SuburbsDistributions["all"]["fridge"].items, 1.0); table.insert(SuburbsDistributions["grocery"]["counter"].items, "Base.TasteyHamSandwich");table.insert(SuburbsDistributions["grocery"]["counter"].items, 0.1);table.insert(SuburbsDistributions["spiffoskitchen"]["counter"].items, "Base.TasteyHamSandwich");table.insert(SuburbsDistributions["spiffoskitchen"]["counter"].items, 0.5);table.insert(SuburbsDistributions["kitchen_crepe"]["counter"].items, "Base.TasteyHamSandwich");table.insert(SuburbsDistributions["kitchen_crepe"]["counter"].items, 0.4);Events.OnGameBoot.Add(Extended_Foods.init);so this looks about right?
  9. lance789

    Need help finding data/code/script

    forgot to mention, i remember seeing somewhere where functions like getStress() and changeStress() were among a list of all functions in game. is there anyway to alter the values of these functions without having them be permanent? like for example, using hot drink to push back the time required for sleep to be necessary?
  10. lance789

    Need help finding data/code/script

    thank you very much, your code is exactly what i was trying to do!
  11. lance789

    Need help finding data/code/script

    How do i distributed items to home refrigerators? Is it something like this: -- Ham Sandwichtable.insert(SuburbsDistributions["all"]["stove"].items, "Base.HamSandwich");table.insert(SuburbsDistributions["all"]["stove"].items, 5.5);table.insert(SuburbsDistributions["grocery"]["counter"].items, "Base.HamSandwich");table.insert(SuburbsDistributions["grocery"]["counter"].items, 0.2);what do i put for home refrigerators?
  12. lance789

    Need help finding data/code/script

    I'm looking for the data/code that is used by Betablockers and Sleeping Pills. Does anyone know where i can find the data which these two effect? (for example, code that effects panic). Also, i cant seem to find the base game item distribution lua/script. can someone please tell me where it is?
  13. lance789

    A simple change to Coffee is not as simple as I think?

    yeah, looks like there shouldn't be a problem >.>
  14. lance789

    Extended Foods Mod (BETA) v1.0.1

    I've made a quick splash for the mod page, also completed some sprites for pizza(cheese slice and whole boxed), BLT sandwhich, strawberry and berry icream bowls, biscuits sprite is giving me trouble though.
  15. lance789

    New Denver, BC (V2.1)

    i cant get this to work.... I dont know if there is a location picker like for west point and kualdron (how ever you spell it), or if you have to travle here from Kaul, but how so i get here? assuming it is working and i dont know what i'm doing?