• 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.

Integer to Hexadecimal

Status
Not open for further replies.
I made a little GUI system that can convert integers to hexadecimals so it can be used in color codes.

  • Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set H[0] = 0
      • Set H[1] = 1
      • Set H[2] = 2
      • Set H[3] = 3
      • Set H[4] = 4
      • Set H[5] = 5
      • Set H[6] = 6
      • Set H[7] = 7
      • Set H[8] = 8
      • Set H[9] = 9
      • Set H[10] = A
      • Set H[11] = B
      • Set H[12] = C
      • Set H[13] = D
      • Set H[14] = E
      • Set H[15] = F
  • Number
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence
    • Conditions
    • Actions
      • -------- That number is just an example --------
      • Set integer = 254
      • Trigger - Run Number Setting <gen> (ignoring conditions)
  • Number Setting
    • Events
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • integer Less than or equal to 0
              • (integer - 16) Less than or equal to 0
        • Then - Actions
          • Set u = integer
          • Set string = (H[t] + H[u])
          • Game - Display to (All players) the text: string
        • Else - Actions
          • Set integer = (integer - 16)
          • Set t = (t + 1)
          • Trigger - Run (This trigger) (ignoring conditions)
<< EDIT >>

If anyone wants to add his touch to the system, then he is welcome :as:
 
Status
Not open for further replies.
Top