Posted by: Doing it Right
Date: Tuesday 7:26 PM

How would I write a conditional if I wanted to know if I have more or less endurance than my opponent? Thanks.

Posted by: Sanford -NES- 
Date: Tuesday 8:33 PM

if endurance_percent < (opp * 33) + 34 then: means you're behind

if endurance_percent > (opp * 33) + 34 then: means you're ahead

Posted by: Doing it Right
Date: Saturday 5:50 AM

thanks man. but could you explain the rationale behind the conditionals? am no math genius actually i have trouble with the multiplication table.

Posted by: Sanford -NES- 
Date: Saturday 7:37 AM

The value "opp" can be one of three numbers.

2 = opponent is strong
1 = opponent is tired
0 = opponent is weak

So at the start of the fight:

if endurance_percent > (opp * 33) + 34 then XXXXX
if 100 > (2 * 33) + 34 then XXXXX
if 100 > (66) + 34 then XXXXX
if 100 > 100 then XXXXX

The conditional will not kick in...

If his fighter is tiring faster than yours:
(your fighter is at 85% and his is tired)

if endurance_percent > (opp * 33) + 34 then XXXXX
if 85 > (1 * 33) + 34 then XXXXX
if 85 > (33) + 34 then XXXXX
if 85 > 67 then XXXXX

The conditional will now kick in...

Forgive me if I screwed up. It's early and someone will quickly correct me if I made a mistake... :)

Posted by: The Art of Pugilism   
Date: Saturday 7:41 AM

The fact is that there isn't a very good way to estimate where you stand unless he is tired and you are not.

An easier way to think about it is this.

if opponent = tired and endurance_percent > 67 then you are ahead on endurance.

Tired (opp = 1) is triggered when your opponent has endurance_percent < 67.

Weak (opp=0) is triggered when your opponent has endurance_percent < 33 (seldom happens)

So you should use his endurance together with your endurance when building your conditional, like:

if endurance_percent > 75 and opponent = tired then 5b/10/5 (inside)

or

if endurance_percent > 67 and opponent = weak then 6h/11/3 (inside)

In the first case, you know you have at least and advantage of at least 8% and you are willing to take a chance with some big body blows while he is tiring.

In the second case, you know you are double his endurance and you are just trying to put him away.

Posted by: Tha Row`s Finest ( Gee Money )
Date: Saturday 8:29 AM

actually aop
with sanford' method' combined with " if endurance_percent ******* "
you can make a very accurate calculated estimation of his endurance

Posted by: Sanford -NES- 
Date: Saturday 8:36 AM

I disagree, Row. Because of the limitations to your opponent's end% ( 67-100%,34-66%, and 0-33%), 7% or 8% is as close as you can get. Again, maybe I'm missing something, but I don't think so.

Posted by: The Art of Pugilism   
Date: Saturday 12:27 PM

Hell, you can't even get that close. If you are 68% and he is 94% the formula plays the same as if you are 94% and he is 68%. Nothing really changes until he gets below 67% and his opp number drops.

With the line I gave above (if endurance_percent > 75 and opponent = tired) you can assure yourself of at least an 8% cushion. You can increase that cushion by increasing your endurance number to 80%, but you risk a higher probability that it won't trigger.

That being said, very frequently one of the two fighters drops below 67% at a critical point in the fight, so conditionals centered around having an advantage when he crosses the line are very useful.

Posted by: Doing it Right
Date: Monday 4:25 AM

Hey thanks guys.

Posted by: Tha Row`s Finest ( Gee Money )
Date: Monday 5:50 AM

sanford and aop I mean it like this
sure you cannot accurately pinpoint his conditioning
but you can make sure the lines only kick in when your conditioning has a real advantage

one thing that is true is that yes it won't have much effect till he drops under atleast 68 %
but to avoid situations where you think you have a real advantage but the advantage might just be 2 or 3 %
like he's 66 % and you are 69 %
the line would say you're ahead but you'd prolly think by much more
for that you can make lines like

if endurance_percent > (opp * 33) + 34 and endurance_percent > 90 then XXXX
if endurance_percent > (opp * 33) + 34 and endurance_percent > 80 then XXXX
if endurance_percent > (opp * 33) + 34 and endurance_percent > 75 then XXXX
to make sure your stamina is still at the lvl that you want
sure its not accurate but the most accurate way I've found to compare the endurance of the two fighters

and if you really like math you could make ALOT of those lines with @ the end having < > conditionals like endurance_percent > 80 < 90
to really pinpoint your own endurance to a margin of 5 percent or so
yes you two are mostly right its not accruate
what I meant is, its still the most accurate way
How do I write a conditional to compare my and my opps endurance?