How to modify player's max health with scripts in slade?

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
walterjacobs
Posts: 1
Joined: Fri May 30, 2025 12:07 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia (Modern GZDoom)

How to modify player's max health with scripts in slade?

Post by walterjacobs »

Hello fall guys,
I'm making a fun map modification of Brutal Wolfenstein. The hits-scanning enemies make it way too hard though. I'd like to slightly increase the standard 100 points max health. I've modified the health parameter in misc/PLAYER.txt but this doesn't increase the hp available with normal health pickups.

Can someone suggest me some tips? Thanks in advance!
not__starwalker
Posts: 2
Joined: Wed Jul 09, 2025 9:43 pm
Preferred Pronouns: He/Him

Re: How to modify player's max health with scripts in slade?

Post by not__starwalker »

Hi, I'm making my own mod where i had a similar issue, so i tried changing the amount of the health pickup you could hold.

Default {
Inventory.MaxAmount 400;
}

by changing it to that i could get the player to have 400 hp, so I'm assuming if you change your health pickup(s) max amount to 100, that might work for you.
(I'm really bad at coding though, so no guarantees)
Post Reply

Return to “Scripting”