Project Zomboid

Project Zomboid

Otillräckligt med betyg
Last Stand - Pandaccumulator
2
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Filstorlek
Lades upp
Uppdaterades
138.999 KB
14 jan, 2023 @ 4:07
14 jan, 2023 @ 6:36
3 ändringsnotiser ( visa )

Abonnera för att ladda ner
Last Stand - Pandaccumulator

Beskrivning
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 kommentarer
Satoshi / Load 9 apr @ 12:17 
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 3 dec, 2024 @ 16:00 
thanks
tfkmaster  [skapare] 3 dec, 2024 @ 5:06 
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 2 dec, 2024 @ 16:28 
what stuff got added?
BobyTheGreat 2 sep, 2024 @ 5:32 
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  [skapare] 2 sep, 2024 @ 4:58 
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 2 sep, 2024 @ 3:36 
@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 1 sep, 2024 @ 22:26 
Thx I was Confused Where To Find The Weapon ID :steamhappy:
tfkmaster  [skapare] 1 sep, 2024 @ 8:26 
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 1 sep, 2024 @ 7:09 
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")?