ThyHolyNoodle

Member
  • Content Count

    10
  • Joined

  • Last visited

About ThyHolyNoodle

  • Rank
    Freshling
  • Birthday 08/18/1998

Profile Information

  • Gender
    Man

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I have this lua file in the right place and am looking for functions like these function Itemcool() local inv = getPlayer():getInventory(); local player = getPlayer(); it = inv:FindAndReturn("MC.myfoods"); if it then getPlayer():Say("I have the cure"); local BP; BP = player:getBodyDamage(); BP:RestoreToFullHealth(); end end Events.OnFillInventoryObjectContextMenu.Add(invContextMenu); in something like (help pls):
  2. ThyHolyNoodle

    Latest API?

    Wait so what exactly am I looking for? I don't understand how I can use any of this. I mean I'm sure the information is somewhere in there and it is the latest but I don't know what I am supposed to use. Right now I am trying to find what I can put after "Events." What I am currently trying to make is a cure that makes use of the largely useless skill "first aid." So far I have function Itemcool() local inv = getPlayer():getInventory(); local player = getPlayer(); it = inv:FindAndReturn("MC.myfoods"); if it then getPlayer():Say("I have the cure"); local BP; BP = player:getBodyDamage(); BP:RestoreToFullHealth(); end end Events.OnFillInventoryObjectContextMenu.Add(invContextMenu); But that last line makes it so that it restores health if you right click on anything in your inventory. So if you could help me understand my way on navigating my way around that'd be great.
  3. ThyHolyNoodle

    Latest API?

    Thanks a million. One last thing, would you happen to know where the bitten functions are off the top of your head? Nevermind Thanks
  4. ThyHolyNoodle

    Latest API?

    Also how do I launch jd-gui when I can't even find the “jd-gui-x.y.z.jar” file, much less the “jd-gui.exe” file. Or Better yet what are you using in that image?
  5. ThyHolyNoodle

    Latest API?

    What files would I be decompiling exactly?
  6. ThyHolyNoodle

    Latest API?

    Hello I've been trying to mod PZ for the past week but I've been having some trouble with some of the functions such as setInf(); (might misspell some of them but they don't work) while others such as RestoreHealth(); do work. If anyone knows where I can get the latest API for the latest build (or better yet build 41), that'd be awesome.
  7. ThyHolyNoodle

    How do I add keys?

    I am a beginner in modding. But I have learned how to make a basic mod that modifies things like hunger and sadness with "HungerChange" and "UnhappyChange" respectively. But I want to make a cure for bitten players but haven't found anything like the previous modifiers that work in a text file script. I found a bunch of java commands like "IsBitten" and "SetBitten" but they don't work. Am I doing something wrong? The commands I feel are relevant are here: http://projectzomboid.com/modding/zombie/characters/BodyDamage/BodyDamage.html
  8. ThyHolyNoodle

    ItemZed (updated 1.1b)

    Hello, I am a beginner in coding and wanted to know if it was possible to create a Lua script using ItemZed that adds a key to an object that cures the bitten status.
  9. ThyHolyNoodle

    ItemZed Help Bitten Status

    Hello I am more or less a beginner to code and wanted to give modding a shot by trying to making a zombie cure that requires level 10 first aid (because the skill is largely a waste of effort) and a set of random ingredients along with constant ingredients and perhaps a vial of a player's blood. I am using ItemZed but I don't see anything that even suggests the bitten or infected status (zombie virus). I only see things for colds, flus, etc. More specifically, if I could get help with making a script to add a key for the bitten status in ItemZed, that would be great. **Edit: This is what I have so far but it doesn't seem to work. It does add a key and it does seem to have relevant boolean variables, but I really don't know what I am doing tbh. -- change local variables accordingly and run script. local objType = "item"; local itemType = "Food"; local addKey = "Zcure"; local addVal = "1"; function run() for w in DataManager.Objects do if w.ObjectType.Name==objType then if w.HasKey("Type") and w.GetFirstKey("Type").Value==itemType then w.AddKeyValuePair(addKey, addVal); end if IsBitten(Foot_L)==true then setBitten(Foot_L, false) end if IsBitten(Foot_R)==true then setBitten(Foot_R, false) end if IsBitten(ForeArm_L)==true then setBitten(ForeArm_L, false) end if IsBitten(ForeArm_R)==true then setBitten(ForeArm_R, false) end if IsBitten(Groin)==true then setBitten(Groin, false) end if IsBitten(Hand_L)==true then setBitten(Hand_L, false) end if IsBitten(Hand_R)==true then setBitten(Hand_R, false) end if IsBitten(Head)==true then setBitten(Head, false) end if IsBitten(LowerLeg_L)==true then setBitten(LowerLeg_R, false) end if IsBitten(Torso_Lower)==true then setBitten(Torso_Lower, false) end if IsBitten(Torso_Upper)==true then setBitten(Torso_Upper, false) end if IsBitten(UpperArm_L)==true then setBitten(UpperArm_L, false) end if IsBitten(UpperArm_R)==true then setBitten(UpperArm_R, false) end if IsBitten(UpperLeg_L)==true then setBitten(UpperLeg_L, false) end if IsBitten(UpperLeg_R)==true then setBitten(UpperLeg_R, false) end if IsBitten(MAX)==true then setBitten(MAX, false) end end end end
  10. ThyHolyNoodle

    Delete Please

    I am brand new to modding and have very limited knowledge about coding. I installed ItemZed and it seems good enough for what I want, but I can't seem to find a way to make a sort of antidote for the zombie virus. **I just realized it's in the wrong subsection, how would I change that?