Jenn Yoshikawa
Registered User
Join date: 14 Nov 2007
Posts: 91
|
10-18-2009 08:02
Hey guys this may sound off the wall. But I need to find out if there is a way to do this. What I need is a way to take two 100% but they show up under a hover text as one 100% only. The idea is to take health and add a armor stat to it. In the end health dose not drop till armor is 0% I tried it one way but some thing me and lsl math don't get along lol. Any help would be nice.
Thanks Jenn
|
Nika Talaj
now you see her ...
Join date: 2 Jan 2007
Posts: 5,449
|
10-18-2009 09:21
I am tempted to say "try it again in English this time", but unfortunately I think I may understand you.
Do you mean:
On your combat meter, you want to do away with the separate armor and health statistics. Instead, when you are being attacked, you want the armor to decrease with each hit until it reaches zero, and only then do you want health to begin to go down.
Question: When the armor is still there, do you want the hovertext to read "Armor x%", and then change to "Health y%", or do you want the hovertext to just always say "Health"? It seems to me that the former would be best.
|
Jenn Yoshikawa
Registered User
Join date: 14 Nov 2007
Posts: 91
|
10-18-2009 09:44
BINGO yes!!
|
Nita Paule
Registered User
Join date: 27 Jul 2008
Posts: 2
|
one solution of many
10-30-2009 22:47
From: Jenn Yoshikawa BINGO yes!! use states.
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
10-31-2009 07:20
integer armorCnt = 100; integer healthCnt = 100;
default { touch_start(integer n) { llSetTimerEvent(1.0); } timer() { if (armorCnt > 0) { llSetText("Armor = " + armorCnt + "%", <0, 0, 0 >, 1.0); armorCnt -= 10; } else if (healthCnt > 0) { llSetText("Health = " + healthCnt + "%", <0, 0, 0 >, 1.0); healthCnt -= 10; } else { llOwnerSay("You died"); llResetScript(); } } }
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime. From: someone I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
|