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

Discuss all aspects related to modding Zandronum here.
Post Reply
User avatar
LuciferSam
New User
Posts: 7
Joined: Tue Sep 17, 2013 8:28 pm

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

#1

Post by LuciferSam » Mon May 12, 2014 7:38 pm

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.

User avatar
-Jes-
Frequent Poster Miles card holder
Posts: 975
Joined: Fri Aug 03, 2012 9:55 am
Location: Void Zone

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

#2

Post by -Jes- » Mon May 12, 2014 7:54 pm

script blah enter
{
while getinv health > 0
{
if getinv basicarmor != 300 giveinv basicarmor 1
delay 17
}
}

?
Last edited by -Jes- on Mon May 12, 2014 7:55 pm, edited 1 time in total.

User avatar
LuciferSam
New User
Posts: 7
Joined: Tue Sep 17, 2013 8:28 pm

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

#3

Post by LuciferSam » Mon May 12, 2014 8:29 pm

I was missing the first while statement. Now it works, thanks!

Post Reply