[zscript] modifying armor amount

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.

[zscript] modifying armor amount

Postby zrrion the insect » Tue Jan 09, 2018 3:34 pm

I am attempting to make a function that gets the amount of armor you has, does some math, and then modifies the amount of armor you have. Normally I would use CheckInventory for the first step, but that function behaves differently in zscript so I am unsure where to start.
User avatar
zrrion the insect
Like a fish in a child's hands.
 
Joined: 25 Jun 2009
Location: Time Station 1: Moon of Glendale

Re: [zscript] modifying armor amount

Postby Blue Shadow » Wed Jan 10, 2018 4:46 am

Use CountInv("BasicArmor").
User avatar
Blue Shadow
 
Joined: 14 Nov 2010
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: ATI/AMD (Modern GZDoom)


Return to Scripting

Who is online

Users browsing this forum: No registered users and 2 guests