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

[Solved] How to calculate percentage?

Level 18
Joined
Jun 2, 2009
Messages
1,233
After 23 years of Warcraft III modding, it seems i forgot how to do that at the moment.

  • Melee Initialization
    • Events
      • Time - Elapsed game time is 0.25 seconds
    • Conditions
    • Actions
      • Set TempInt = (50 x (10 / 100))
      • Game - Display to (All players) the text: (String(TempInt))
Why it says 0?
50 x 10 / 100 = 5 As far as i know? I am trying get 5% of the 50
 
Top