Page 1 of 1

Rechargeable Armor: can't find a solution (Zandronum & Zdoom)

Posted: Mon May 12, 2014 7:38 pm
by LuciferSam
Hi there, i'm trying to make a particular armor (halo-like). I've tried with ACS, with no luck.

Steps so far:
1) Check the inventory of the player, if exists a particular armor (hell armor)
2) give 1 armor point to the player until it reaches a particular value (300), which does not work.
Maybe I should try with DECORATE?

Could someone put a code snippet?
Thanks.

RE: Rechargeable Armor: can't find a solution (Zandronum & Zdoom)

Posted: Mon May 12, 2014 7:54 pm
by -Jes-
script blah enter
{
while getinv health > 0
{
if getinv basicarmor != 300 giveinv basicarmor 1
delay 17
}
}

?

RE: Rechargeable Armor: can't find a solution (Zandronum & Zdoom)

Posted: Mon May 12, 2014 8:29 pm
by LuciferSam
I was missing the first while statement. Now it works, thanks!