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

Timer

Status
Not open for further replies.
Level 5
Joined
Jul 25, 2008
Messages
155
Hiya, I want to make like a leaderboard that counts down from 40 minutes, one second at a time. How do I do this?

  • give gold
    • Events
      • Time - Turn expires
    • Conditions
    • Actions
      • -------- set base gold --------
      • For each (Integer A) from 1 to 12, do (Set Gold_received[(Integer A)] = 7)
      • For each (Integer A) from 1 to 12, do (Player - Add 2 to (Player((Integer A))) Current lumber)
      • -------- check empires --------
      • For each (Integer A) from 1 to 12, do (Trigger - Run check Mirkwood <gen> (checking conditions))
      • For each (Integer A) from 1 to 12, do (Trigger - Run check Haradwaith <gen> (checking conditions))
      • For each (Integer A) from 1 to 12, do (Trigger - Run check Umbar <gen> (checking conditions))
      • For each (Integer A) from 1 to 12, do (Trigger - Run check NorthRohan <gen> (checking conditions))
      • For each (Integer A) from 1 to 12, do (Trigger - Run check Eriador <gen> (checking conditions))
      • For each (Integer A) from 1 to 12, do (Trigger - Run check Gondor <gen> (checking conditions))
      • For each (Integer A) from 1 to 12, do (Trigger - Run check SouthRohan <gen> (checking conditions))
      • For each (Integer A) from 1 to 12, do (Trigger - Run check Mordor <gen> (checking conditions))
      • For each (Integer A) from 1 to 12, do (Trigger - Run check Lorien <gen> (checking conditions))
      • For each (Integer A) from 1 to 12, do (Trigger - Run check for victory <gen> (checking conditions))
      • For each (Integer A) from 1 to 12, do (Trigger - Run check Moria <gen> (checking conditions))
      • For each (Integer A) from 1 to 12, do (Trigger - Run check Mithril Mines <gen> (checking conditions))
      • For each (Integer A) from 1 to 12, do (Trigger - Run check Fangorn <gen> (checking conditions))
      • For each (Integer A) from 1 to 12, do (Trigger - Run check Shire <gen> (checking conditions))
      • For each (Integer A) from 1 to 12, do (Trigger - Run check Rhovanion <gen> (checking conditions))
      • For each (Integer A) from 1 to 12, do (Trigger - Run check Rhun <gen> (checking conditions))
      • For each (Integer A) from 1 to 12, do (Trigger - Run check Ithilien <gen> (checking conditions))
      • For each (Integer A) from 1 to 12, do (Trigger - Run check Arnor <gen> (checking conditions))
      • For each (Integer A) from 1 to 12, do (Trigger - Run check WestRhovanion <gen> (checking conditions))
      • For each (Integer A) from 1 to 12, do (Trigger - Run check Minas Morgul <gen> (checking conditions))
      • For each (Integer A) from 1 to 12, do (Trigger - Run check Brown Hills <gen> (checking conditions))
      • -------- give gold --------
      • For each (Integer A) from 1 to 12, do (Player - Add Gold_received[(Integer A)] to (Player((Integer A))) Current gold)
      • -------- update leaderbord --------
      • Trigger - Run refresh leaderbord <gen> (checking conditions)

  • (Owner of Withered Heath [Rhun] 0239 <gen>) Equal to (Player((Integer A)))

  • check Ithilien
    • Events
    • Conditions
      • (Owner of Hideout in Ithilien [Ithilien] 0057 <gen>) Equal to (Player((Integer A)))
      • (Owner of North Ithilien [Ithilien] 0257 <gen>) Equal to (Player((Integer A)))
      • (Owner of South Ithilien [Ithilien] 0255 <gen>) Equal to (Player((Integer A)))
    • Actions
      • Set Gold_received[(Integer A)] = (Gold_received[(Integer A)] + 2)
      • Game - Display to (Player group((Player((Integer A))))) the text: You control Ithilie...
      • Unit - Create 1 Swordsman of Ithilien for (Player((Integer A))) at (Center of Region 095 <gen>) facing Default building facing degrees
      • Unit - Create 1 Ranger for (Player((Integer A))) at (Center of Region 095 <gen>) facing Default building facing degrees
 
Last edited:
Status
Not open for further replies.
Top