Jump to content

fritozy101

Member
  • Posts

    5
  • Joined

  • Last visited

fritozy101's Achievements

  1. Steam Link They work pretty great all things considered! Absolutely genius as far as interactions with the world go (coding involved is insane), currently requires a submod to fully function. Their logic is a bit funky but is easily adjustable for the most part. (and brings a real apocalyptic feel to the start) Would love to work on or test if you get anything else going
  2. Main Steam Link Works with build 41+ This mod aims to add more occupations to the game, with starting equipment, for new and existing occupations, in a mostly balanced way. (Vanilla Changes Only) Better Occupations Steam Link (Vanilla Changes With Costs) Better Occupations Costly Steam Link (More Occupations With no Costs )More Occupations Steam Link -Added so far- *Soldier *Miner *Gang Member *Student *Office Worker *Escaped Prisoner *Doomsday Prepper *Game Hunter *Professional Athlete *Dry Cleaner *Musician *Crashed Pilot *Tinkerer There are more planned. Open to suggestions to, as I'm still learning and even looking for help on these forums for improving this mod these days! lol Items chosen based on occupations. Requires: https://steamcommunity.com/workshop/filedetails/?id=2216760107 This simple mod would not be possible without this Framework! -Thank you for old version as well-. Updated/brought all 4 mods in line with one another as of 8/12/2021
  3. OnNewGame = function(player, square, profession) local player = getPlayer() local hat = player:getInventory():AddItem("Base.Hat_HardHat") local vest = player:getInventory():AddItem("Base.Vest_HighViz") local gloves = player:getInventory():AddItem("Base.Gloves_LeatherGloves") player:setClothingItem_Head(hat) player:setClothingItem_Torso(vest) player:setClothingItem_Hands(gloves) end, Update: Found more that work, Legs=pants Feet=shoes... haha pretty obvious ones, still trying to find jackets/holster/vest After the hurdle of making it to the above somewhat functional code, it is only...somewhat functional. I was able to find the types in Debug mode, from other mods, PZ modding site, and a PZ item site. However, only Head/Hat/Hands/Torso want to work. I very quickly ran out of things to even try! May just have the wrong item types or they were recently changed/updated? Vest/TorsoExtra/Trousers/Pants/Jacket/LongJacket/Suit/Body do not work. Using this Framework -Thank you- Any help or pointers appreciated, thank you for all the resources! UPDATE: Believe I found a full list of Vanilla body locations, finally, but, still none of them work in the code, except for the main ones in the first post..... -- Hat -- TankTop -- Tshirt -- Shirt -- Socks -- Pants -- Skirt -- Dress -- Shoes -- Eyes -- LeftEye -- RightEye -- BeltExtra -- AmmoStrap -- Mask -- MaskEyes -- MaskFull -- Underwear -- FullHat -- Torso1Legs1 -- Neck -- Hands -- Legs1 -- Sweater -- Jacket -- FullSuit -- FullSuitHead -- FullTop -- BathRobe -- TorsoExtra -- Tail -- Back -- Scarf -- FannyPackFront -- Necklace -- Necklace_Long -- Nose -- LeftWrist -- RightWrist -- Right_RingFinger -- Left_RingFinger -- Right_MiddleFinger -- Left_MiddleFinger -- Ears -- EarTop
  4. Also are the rules old and not applying formatting in the forum, or is automatically formatted for this stuff?
  5. Attempt/jokes ------------------------------------------------------------------------------------- OnNewGame = function(player, square, profession) local player = getPlayer() local hat = player:getInventory():AddItem("Base.Hat_Fireman") local profession = player.getProfession('fireofficer') if not profession then return end setClothingItem_Head(hat) end, Working/ish Having Vest/TorsoExtra/Trousers/Pants/Jacket/LongJacket <-none of that seems to work as IDs, ->only Head/Hat/Hands/Torso work. I'm assuming Head = Mask and Hat=Hat ------------------------------------------------------------------------------------- OnNewGame = function(player, square, profession) local player = getPlayer() local hat = player:getInventory():AddItem("Base.Hat_HardHat") local vest = player:getInventory():AddItem("Base.Vest_HighViz") local gloves = player:getInventory():AddItem("Base.Gloves_LeatherGloves") player:setClothingItem_Head(hat) player:setClothingItem_Torso(vest) player:setClothingItem_Hands(gloves) end, Final Edit: Think this is about as far as the thought is willing to go, I ultimately was able to add clothes based on a profession chosen and now have a new issue that I may make a new thread for if that issue also takes more than a week to solve. Been posting junk for some days here, help or not it's keeping me organized and learning, deleted all of the other stuff posted here from my learning curve to not confuse anyone willing to help (also I think this forum has some less than comprehensive formatting rules) cant even get lines of code to work on the forum. So above is finally doing something... I end up with two Fireman hats in the inventory and the player isn't wearing a fucking thing still But it's the closest I've come to calling on a profession and getting the player to wear an item because of it. Utilizing this awesome framework that really helped me make wanted personal game adjustments, as well as come this far. Framework -THANK YOU- Again, any help or pointers appreciated, thank you in advance.
×
×
  • Create New...