PDA

View Full Version : Trigger Problems...


Kankuro4800
09-13-2007, 5:20 PM
Sorry if this is in the wrong board, but...
I've made a map, and everything is perfect. Except the triggers.
It's a battle game (like Naruto Hokage Battle and FF7 Battle for those of you who know) and the first step is to select a char using beacons.
That works fine, but then the second step goes wrong. You need gas to execute the attacks, and i set it to 10 gas for ever 200 milliseconds (I've triple-checked, it IS 200 milliseconds), but it comes at 20 per...30 seconds, i think, the point is it comes too slow. The 3rd part is the attacks proper. They're supposed to make x amount of units at a certain location, wait x amount of time, then destroy the unit. But the problem is that it makes the units then doesn't destroy them until quite a time after...and that throws off the game completely. These errors worked before, but now theyre...not. I used the regular staredit for triggers and starforge for square terrain and such. I can;t get scxe to work. A side note, if it's important, to save hours of time, I've compiled about...90% of the triggers as set for 'All Player', so under the All Players section of triggers, its quite the distance down to reach the bottom.

Another side note: This isn't the main problem, but its a trigger problem nonetheless: I want music, preferably as a switch which you toggle with civilians. I've gotten the .wav file and imported it, and heres the trigger I've used:

Players: All Players (I've also tried it with each player checked induvidially)
Conditions: Bring at least 1 civilian to "Music ON"
Trigger: Play .wav file "name"
Preserve Trigger
(Note: I also tried adding Wait x milliseconds between plat and preserve, x being the length of the .wav file, and it still didn't work. I've also tried to replace the conditions to always, but that still doesn't work...)

Please, I REALLY am getting annoyed with this, so please help!

SilverCrusader
09-13-2007, 5:27 PM
Wait times sure are a bitch aren't they? Yes well your problem is you probably have several wait times, and they are all in All Players.

Kankuro4800
09-13-2007, 5:31 PM
Wait times sure are a bitch aren't they? Yes well your problem is you probably have several wait times, and they are all in All Players.

Yes, they are a bitch...
But...
uh...
what? So what if I have so many and such? Is that a problem? How do I go about fixing them?

SilverCrusader
09-13-2007, 5:34 PM
hmm well, trying adding them to individual players instead of in the ALL Players catagory. That way the wait times are only affecting that player. See, when you use a wait time it blocks up all other wait times until it is complete, than another one runs, and you'll end up with like 20 seconds of wait before that trigger is executed again.

Kankuro4800
09-13-2007, 5:35 PM
But...but...
I have around 100 triggers...and i need to re-write them...for induvidual players?
So thats like...600 triggers!:o

SilverCrusader
09-13-2007, 5:39 PM
ahahaha, no, just right the gas thing silly. And you don't have to rewrite, copy the trigger and edit it to work for each player.

Kankuro4800
09-13-2007, 5:44 PM
ahahaha, no, just right the gas thing silly. And you don't have to rewrite, copy the trigger and edit it to work for each player.
So just make the gas induvidual?
...
Ok!
And even with the copy thing, 600 triggers is a tad high...

Update: Ok, I did it and am going on to battle.net to test it...

Could you help with the music? It would be fun...

SilverCrusader
09-13-2007, 5:49 PM
Yeah, just the gas, just make:
Players:
Player1
Player2
Player3
Player4
Player5
Player6
Conditions:
Always.
Actions:
Wait 200 milliseconds.
set resources for currentplayer add 10 gas.
Preserve Trigger.

So shouldn't be too hard.

Kankuro4800
09-13-2007, 5:51 PM
Yeah, just the gas, just make:


So shouldn't be too hard.

woops, i set one for each induvidual player, instead of checking player 1, 2, 3, ect all at once, i made an induvidual one...it still works, right?

PS(any help with the music?)

Btw, Thank you so much! ^_^

It still doesn't work T_T

Kankuro4800
09-13-2007, 6:38 PM
o god, it's gotten worse...much worse...the gas goes to 10 and stays there...
I did the trigger you said but replaced always with current player accumulates at most 300 gas.

SilverCrusader
09-13-2007, 7:50 PM
hmm, I'm gonna have to take a look at it, there might be an unknown variable affecting everything.