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

Simple Trigger not functioning...

Status
Not open for further replies.
Level 2
Joined
Jul 28, 2011
Messages
8
Okie dokie. Basically in my map I've got a night/day system. I have a Timer variable called DayTimer (DayTimer = (New timer) <Timer>). When the sun sets or rises, there are text messages displayed to both teams and the timer window that I have DayTimer linked to is supposed to change its background and title.

The speed bump is that I absolutely can't figure out what's up with this trigger not functioning.

Here's my map initialization.

2004rpf.jpg


Here's the trigger that won't friggin' work. Even when I remove the trigger's condition so that the only thing required for it to fire is DayTimer expiring, it still does absolutely nothing. None of the text messages are displayed and the Timer window doesn't switch colors and titles.

20ac6jb.jpg


I made this thing to see if the issue was within my DayTimer setup itself, but when I test run the game, after 150 seconds the text message "Test" is displayed properly.

o0b2tw.jpg


Anyone have any idea why the trigger just refuses to work?
 
Level 2
Joined
Jul 28, 2011
Messages
8
Two, I have one for Sunrise events and one for Sunset events (Switching Timer Window color/title, switching the boolean isDay, and different text messages.)
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Neithor of those triggers fire right? It could be that you are limited to 1 observing trigger per timer so just that one is not working.

If that is the case, the solution is to simply fuse both triggers together (making the condition govern flow control instead of which thread runs). This infact is the most efficient way to do it and I am suprised you are going for the 2 trigger approach.
 
Level 2
Joined
Jul 28, 2011
Messages
8
At first I thought what you said, so I tried disabling one of the two triggers and only having one active. Tested, and it didn't work (The one active trigger was the Sunset Events trigger I posted above). In addition to that, I had Sunset Events, Sunrise Events, and created the test trigger that I posted all active and only the testing trigger worked, printing the "test" text message.

Also I have absolutely no idea how to have Conditions run groups of actions within a single trigger, Google hasn't helped me much there. =(
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
You use a system of conditional jumps which can be accesed like...
Code:
if(bool){
code
}else if(bool){ //not sure of syntax for this one
code
}else{
code
}

Try extending the debug timer handler until it stops working. It could be a defecitve action or something stupid.
 
Status
Not open for further replies.
Top