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

Calendar

Status
Not open for further replies.
Level 9
Joined
Jul 20, 2009
Messages
427
I need triggers that creates a multiboard that shows a calendar system based of the day cycle in the gameplay constant. I need it to show day and year..thanks in advance..
 
Well, in Map Initialization set the time to 00:00.
Use this trigger:
  • Trigger
  • Events
    • Time - Elapsed time is 0.00 seconds
  • Conditions
  • Actions
    • Game - Set time of day to 0.00
    • Multiboard - Create a multiboard with 2 columns and 1 rows
    • Multiboard - Set item text to (Last created multiboard) in column 2, row 1 to 1
    • Multiboard - Set item text to (Last created multiboard) in column 1, row 1 to Days
    • Wait 1 seconds
    • Trigger - Turn on Trigger1 <gen>
  • Trigger1
  • Events
    • Game - The in-game time becomes Equal to 0.00
  • Conditions
  • Actions
    • Set DaysPassed = ((DaysPassed) + 1)
    • Multiboard - Set item text to (Last created multiboard) in column 2, row 1 to (String(DaysPassed))
The seconds trigger is a not-initially enabled.
 
Status
Not open for further replies.
Top