• 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.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

[Trigger] Week System

Status
Not open for further replies.
Level 7
Joined
Oct 8, 2007
Messages
154
Is it possible to make "week system"?
I want it to have for example "monday" as an Event and every monday some actions will replay, there will be some condions unlocking another actions.

Exactly I want to make it like that

Event: monday
Actions: Show text exciptly timed to all players- its Monday schools and factories where u can get manyy items and experience are open.
open gates, spawn units etc.

Another monday
Event: monday
Condition: Its for ex. 10th monday
Actions: Show text exciptly timed to all players- its Monday schools and factories where u can get manyy items and experience are open.
But this monday is special there is an football match on the stadium U can go there to join mini dota battleground.
Spawn units on stadium etc.
 
Level 9
Joined
Nov 17, 2004
Messages
277
I did something like this, but just with months and years. It would have a timer, and when it expired, it would destroy the timer window and create a new one with a new title. There are a few ways to do it. You could have a different timer for each day, and when one expires, it closes itself and starts the next one, thus repeating. Or you could just have a one shot timer, and have boolean variables for each day, and when the timer expires, set the current day to 'false' and the new one to 'true' and re-activate the timer with a new window and label.
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
its about math not variable
modulo is like
7 modulo 3 is 1
7 | 3
-6| 2
>1<

Or

x*y + a = z (all integers)
z mod x = a
 
Level 21
Joined
Aug 21, 2005
Messages
3,699
modulo x returns the "remainder" of a division by x. For instance: 5 / 3 = 1; but not exactly 1, there's a remainder of 2. If you divide by 7, you get the weeknumber, and the remainder is the exact day, you see?

For instance: day 12 / 7 = 1 (week 1)
the remainder (modulo) of 12 / 7 = 5 (day 5 - friday)
 
Status
Not open for further replies.
Top