armor
- darksmaster923
- Posts: 1857
- Joined: Wed Jan 03, 2007 10:32 pm
- Location: Huntington Beach, California, USA
- darksmaster923
- Posts: 1857
- Joined: Wed Jan 03, 2007 10:32 pm
- Location: Huntington Beach, California, USA
that would be really cheap. just charge in with guns blazing and dont die, even if theres 7 baddies.
heres a script i worked up in like, 2 seconds. would it work, havent tested it yet
EDIT
It doesnt work
lol
heres a script i worked up in like, 2 seconds. would it work, havent tested it yet
EDIT
It doesnt work
Code: Select all
{
INIT [0]
INITARMOR [0]
Spawn[ ()
{
Console(false);
LowLevel("Setup");
} ]
Setup[ ()
{
PawnRender(false);
INIT = GetAttribute("playerhealth", "Player");
INITARMOR = GetAttribute("armor", "Player");
self.think = "Armor";
} ]
Armor[ ()
{
self.ThinkTime = "0.3";
if(GetAttribute("playerhealth", "Player") < INIT);
{
INIT = GetAttribute("playerhealth", "Player");
if(GetAttribute("armor", "Player") < INITARMOR);
{
if(GetAttribute("armor", "Player") > 0);
{
ModifyAttribute("armor", -17, "Player");
ModifyAttribute("playerhealth", 11, "Player");
INITARMOR = GetAttribute("armor", "Player");
}
}
}
} ]
}Herp derp.
Well, first of all, you have a ';' after every if( ) statement. That's not supposed to be there. You should always try these things with the console on to see if there are syntax errors.
Secondly, I don't get this part:
If I understood it correctly, you set INITARMOR = 'armor' attribute. Then the 'armor' attribute isn't changed at any part, the enemies damage only the 'playerhealth' attribute, right? So INITARMOR can't be less than 'armor' because they both remain the same.
***EDIT***
Oh, and to be honest. I don't like your way of posting.

Secondly, I don't get this part:
Code: Select all
if(GetAttribute("armor", "Player") < INITARMOR)***EDIT***
Oh, and to be honest. I don't like your way of posting.
You post all these things without even trying them yourselfheres a script i worked up in like, 2 seconds. would it work, havent tested it yet
Pain is only psychological.
- darksmaster923
- Posts: 1857
- Joined: Wed Jan 03, 2007 10:32 pm
- Location: Huntington Beach, California, USA
- darksmaster923
- Posts: 1857
- Joined: Wed Jan 03, 2007 10:32 pm
- Location: Huntington Beach, California, USA
- darksmaster923
- Posts: 1857
- Joined: Wed Jan 03, 2007 10:32 pm
- Location: Huntington Beach, California, USA
- darksmaster923
- Posts: 1857
- Joined: Wed Jan 03, 2007 10:32 pm
- Location: Huntington Beach, California, USA
- darksmaster923
- Posts: 1857
- Joined: Wed Jan 03, 2007 10:32 pm
- Location: Huntington Beach, California, USA