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

Triggers don't activate

Status
Not open for further replies.
Level 2
Joined
Dec 10, 2009
Messages
7
I made a map, which needs about 62 variables, 60 of them are arrays with a field size of 1000

60 Variables, because there are twelve player and each player needs five

One additional for counting
Another one and for a timer in a window

The array needs the length of 1000, because each building needs one slot of the array field...

So each player can build 1000 buildings, with 5 attributes and there are 12 players...


My problem is the following.

It looks like the triggers won't run ... I don't know why...

Does anybody know how to create a two or three dimensional Array OR to make the triggers run with this huge amount of variables?

Thx for you help :)
 
Level 4
Joined
Jan 9, 2010
Messages
89
*Cough*Hashtables*Cough* ( Find a guide)

What do you mean that the triggers won't run? Could you post them?
 
Level 5
Joined
Nov 22, 2009
Messages
181
Ok first off you dont need to set the field value. just set variable[int]= unit ---.
the field value just effects which array[integers] are set to the default value. each array still has a max possible array value of 8112 or w/e it is. (im not at my computer so i can't check the number at the moment)

for example if i made a unit-type array variable called 'unit' and set the array value to 200 and the initial value to peon, then unit[1, 2,3, 4, etc. (all the way up to 200)] would end up having an initial value of peon. hope that helped :)
 
Level 2
Joined
Dec 10, 2009
Messages
7
If I make trigger like .. create 10 soldiers at the beginning of the game

the trigger is there, but it just does not execute ...

If I make a trigger which says: Kill unit X at 7:00 am, the trigger does not execute ...


There is no error message, the triggers are just "ignored" by the game :S
 
Level 5
Joined
Nov 22, 2009
Messages
181
Do you have multiple initialization triggers or any other triggers with the same events? if so, then combine matching ones into one long one. that might be the problem.
 
Level 5
Joined
Nov 22, 2009
Messages
181
I'm sorry forget my last comment. i got confused with server splits for a moment. :)
that might still be the problem but i honestly dont know. i've had that problem before though. it is really annoying. i don't remember how i fixed that though.
 
Level 5
Joined
Nov 22, 2009
Messages
181
The Same problem is happening to me right now. God this is annoying.

Edit: hmm. strange. it works works now. all i did was delete 1 trigger action, delete 1 variable, and place 3 start locations. even stranger is the fact that 3 of the start locations keep dissapearing after a while.

Edit: Edit: i was messing around with the triggers trying to improve them and make them work better and ended up fixing them alll somehow. the map works perfectly now.
 
Last edited:
Status
Not open for further replies.
Top