Project Zomboid

Project Zomboid

Not enough ratings
Last Stand - Pandaccumulator
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
138.999 KB
Jan 14, 2023 @ 4:07am
Jan 14, 2023 @ 6:36am
3 Change Notes ( view )

Subscribe to download
Last Stand - Pandaccumulator

Description
This mod add items and skills in the upgrade menu for the challenge "Last Stand - Accumulator".

This was done by overriding the menu creation function, so it should not be compatible with other mod that use the same (lazy) technique.

Requested by a gud fren.

Workshop ID: 2917811485
Mod ID: LastStand_Pandaccumulator
22 Comments
Satoshi / Load Apr 9 @ 12:17pm 
So I downloaded this mod to have a better experience in the last stand accumulator, but I think something is wrong, I tried to add a bunch of vanilla melee and ranged weapons, but the weapon menu just turned to the default one (while the character one stayed intact), restarted the game 2 times and nothing changed, can you still help with it? :dishhead:
shotgunner Dec 3, 2024 @ 4:00pm 
thanks
tfkmaster  [author] Dec 3, 2024 @ 5:06am 
I don't remember exactly. Some skills like Nimble, Reloading, Aiming, Short blunt, Spear, Maintenance...
And in term of weapons should be Machette and Katana at least, a revolver too i think.
shotgunner Dec 2, 2024 @ 4:28pm 
what stuff got added?
BobyTheGreat Sep 2, 2024 @ 5:32am 
Oh Yeah This Mod Does Not Add But It overids The Menu,
Well Adding the Armor To The Weapon Shop Should Do For Now Thx For The Help @tfkmaster
tfkmaster  [author] Sep 2, 2024 @ 4:58am 
It's technical possible to add a new category but you'd have to invoke the "ISChallenge2ArmourUpWindow:create()" in the script that manage the whole shop thingy in the first place. I don't have the scripts on hand so i can't tell which one it would be (also there should be no "require" in that one script because we're not trying to "override" an existing script within the game, but add a new one)

But otherwise you could totally do it in the weapon shop if you need a quick patch :D
BobyTheGreat Sep 2, 2024 @ 3:36am 
@tfkmaster So I Wana Add A New Genre Of Stuff In The Shop Called "Armour" But It Dont Work Is There Any Way To Add A New Catagory Or Should I Just Place The Armour On The "Weapon Category"
Here The Code That i 100% Did Not Steal And Change without Knowing How it Works (Real) :

require "LastStand/ISUI/ISChallenge2ArmourUpWindow"

if not ISChallenge2ArmourUpWindow then
return
end

function ISChallenge2ArmourUpWindow:create()
local y = 90;

local label = ISLabel:new(16, y, 20, getText("Challenge_Challenge2_Armour"), 1, 1, 1, 0.8, UIFont.Small, true);
self:addChild(label);

local rect = ISRect:new(16, y + 20, 230, 1, 0.6, 0.6, 0.6, 0.6);
self:addChild(rect);

y = y + 25;
self:createItemButton(16, y, "Base.WeldingMask", 50)

y = y + 25;
self:createItemButton(16, y, "Base.Hat_Fireman", 75)

y = y + 25;
self:createItemButton(16, y, "Base.Jacket_Fireman", 100)

y = y + 25;
self:createItemButton(16, y, "Base.Trousers_Fireman", 75)

self:loadJoypadButtons()
end
BobyTheGreat Sep 1, 2024 @ 10:26pm 
Thx I was Confused Where To Find The Weapon ID :steamhappy:
tfkmaster  [author] Sep 1, 2024 @ 8:26am 
Yup that's about it !
Just so you get the full explanation on the createItemButton(x, y, name, price) :
The first two are for positionning the button on the window, you probably don't have to touch it.
The third one is the "ItemID" of the item you wanna buy. To find that ID, you can go on the item page on the PZwiki (for exemple : https://pzwiki.net/wiki/Hand_Axe ) and you can find "Item ID" on the right side table within the "Technical" section.
And finally the number in fourth position is the price of the item you wanna buy, you can go wild with that lol

If you follow that snippet (putting it before the final "self:loadJoypadButtons()") you should be able to add anything you want without issue !

Have fun :D
BobyTheGreat Sep 1, 2024 @ 7:09am 
y = y + 30;
self:createItemButton(16, y, "Base.Shotgun", 500)

So Do i Just Need To Copy And Paste This But Use The Name For A Weapon I Wana Add For ("Base.Shotgun")?