Stranded II
Scripts A psuedo-armor idea! A psuedo-armor idea!
6 replies So the way this idea would work is as follows:
You use the items in question: a helmet and body armor. Your health would increase, to mimic defense.
100 health +50 w/Chest!
+20 w/helmet!
To "unequip" the helmet, you can either drop it, or use it again. The 20 health points would be deducted, but the 50 health points remain.
Is it possible to give health a variable? That's a pretty good idea, but there is at least one problem:
Let's say you have 30 hp with armor already equipped. Now you take off the helmet, and... you have -20HP?
Of course there are ways to bypass it, so, it would actually work, I think Dang... True that, sir.
WAIT!
If you got 30 hp (with your example), and equip the helmet, you'll gain a bonus 20 hp. So, that's 50 hp. Remove it, and you're back to 30 hp! Yeah, I meant chest part, not helmet, my bad
I have some ideas about it, for example to make maximum health like you said, but normal health would be in percentage, so, if you had 30/150 HP (that's 1/5, or 20%), and you take the chest part off, your hp would be still 20%, or 20/100. That's actually pretty easy to calculate, but one little problem remains - player health is an integer (if I remember correctly), so sometimes you would need to round hp, BUT very little numbers would round to 0 (the player would die), OR some numbers would round to bigger ones
(49/150 -> 32.(6)/100=33/100 -> 49.5/150=50/150 - that's a bug exploit! ).
So... Yeah, you would need a variable for that I was testing it for a bit, and I believe I've found a system that may work!
The extra hp is subtracted, leaving your health at least the way it was before. It will be a semi-good system!
Unit Hunter's about to get... armor-fied! Glad to hear that!
Also will be glad to know it works! YES ADD ARMOR IM SICK OF GETTING CURSHED BY RAPTORS