• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Detect Which Real is Greater

Status
Not open for further replies.
Level 6
Joined
Sep 19, 2005
Messages
169
I could be missing something simple, so if this is he case please forgive me. What I'm looking for is a way to compare the sizes of two reals. For example, if x.xx is greater than y.yy then do ____________. The goal is just to determine which player has the highest KD but without it rounding.
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
Well, a Real Comparison should do the job I guess?

  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • tempReal1 Greater than tempReal2
    • Then - Actions
      • -------- do A --------
    • Else - Actions
      • -------- do B --------

Edit:
Since it's K/D, I assume they cannot be equal (which can happen in rare cases), so:

  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • tempReal1 Greater than tempReal2
    • Then - Actions
      • -------- Team 1 higher K/D --------
    • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • tempReal1 Equal to tempReal2
        • Then - Actions
          • -------- Tied --------
        • Else - Actions
          • -------- Team 2 higher K/D --------
 
Status
Not open for further replies.
Top