duby777 Posted August 29, 2013 Share Posted August 29, 2013 I have no idea how to mod. And not sure if it is even possibal for you guys to do what im asking. Any chance some one could make me a umlimted weight mod? So i can carry as much stuff as i want too ^^ i guess i am a horder lol....i want to keep everything thank you guys Link to comment Share on other sites More sharing options...
Aricane Posted August 29, 2013 Share Posted August 29, 2013 I have no idea how to mod. And not sure if it is even possibal for you guys to do what im asking. Any chance some one could make me a umlimted weight mod? So i can carry as much stuff as i want too ^^ i guess i am a horder lol....i want to keep everything thank you guys The easiest way to go about that is to just make all items have 0.0 weight. This zipfile contains two text files that are to replace the ones you find in your project zomboid folder\media\scriptshttp://pz-mods.net/temp/Zeroweight-items.zip. This will replace vanilla items weight with 0.edit: perhaps you should make a backup of the old ones - just make sure they're not just renamed. They must be removed from the scripts folder Link to comment Share on other sites More sharing options...
RegularX Posted August 30, 2013 Share Posted August 30, 2013 Or, and I haven't tried this myself, but a container item with a ridiculous WeightReduction value. BigHikingBag is 80, so like 8000 might help... Aricane 1 Link to comment Share on other sites More sharing options...
The_Real_Al Posted August 30, 2013 Share Posted August 30, 2013 WeightReduction is a percentage, i believe. Let me check... Link to comment Share on other sites More sharing options...
duby777 Posted August 30, 2013 Author Share Posted August 30, 2013 Wow thank you guys this will help me a ton! Link to comment Share on other sites More sharing options...
The_Real_Al Posted August 30, 2013 Share Posted August 30, 2013 Confirmed. Hence such a container might look like this:module bbag{ item BottomlessBag { WeightReduction = 100, Weight = 0.0, Type = Container, Capacity = 100, DisplayName = Bottomless Bag, Icon = Backpack, CanBeEquipped = Back, }}You'll need to wrap this up in a *.txt file in the /mods/script/ folder. Feel free to increase the capacity, and please, be so kind and post if you hit a maximum. I'd be interested. Now for distribution. Since you don't want this bag to show up all over the place, you'll either need a fairy godmother or - better - a way to add it directly to your inventory.I can give it a shot:packmule = {};function packmule.addItems(_key) if _key == 38 then local player = getSpecificPlayer(0); local inv = player:getInventory(); inv:AddItem("bbag.BottomlessBag"); endendEvents.OnKeyPressed.Add(packmule.addItems);This code goes into a *.lua file in your /media/lua/ directory. Hit L ingame and it should spawn a fancy but tasteful backpack in your inventory. Let me know how many Clowns you can fit in there. Oh and tell if it works because then i've indeed understood Robomat's lua-tutorial. If not... oh the humanity. RegularX 1 Link to comment Share on other sites More sharing options...
CareBearCorpse Posted August 30, 2013 Share Posted August 30, 2013 Your script is working WeightReduction is a percentage, i believe. Let me check... Apparently yes, because setting up wieght reduction to a ridiculous value (8000) i get a negative weight in my inventory. PZ is really defying the laws of physics. Gonna write a ticket in the bug reports ; though maybe it was intended... Link to comment Share on other sites More sharing options...
RegularX Posted August 30, 2013 Share Posted August 30, 2013 They probably just assumed no modder would do something like create a bag with 8000% weight reduction Link to comment Share on other sites More sharing options...
The_Real_Al Posted August 30, 2013 Share Posted August 30, 2013 Ha, they said we were insane to do it. Insane! Now watch us levitating above the ground while making millions during holiday season. RegularX 1 Link to comment Share on other sites More sharing options...
RegularX Posted August 30, 2013 Share Posted August 30, 2013 I really hope you don't mind, but that's now totally going to be my sig quote Link to comment Share on other sites More sharing options...
The_Real_Al Posted August 31, 2013 Share Posted August 31, 2013 Now i just blushed like a dairy queen. Is there actually a way to reduce the weight of items in the root-inventory? Got some great ideas for 'starched pants of unlimited hauling' and such. Link to comment Share on other sites More sharing options...
RegularX Posted August 31, 2013 Share Posted August 31, 2013 Not unless the player has some setter for weight reduction, which I haven't seen. 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