View Full Version : Need help with some triggers
Eldente
05-29-2007, 10:37 AM
Howdy, people. I'm new here and, actually, almost new to SC mapping. I decided to try making a small movie map, and I have some problems with several triggers.
1). "Create unit" problem - duplication.
If I make a trigger to create 1 unit in location x, when I test the map, it gives me not just 1 unit, but 3, 4 or even 5 instead. On top of all that, these "excessive" units do not "listen" to any triggers they should, neither attack or move. How do I prevent this from happening?
2). Level of agression - too low.
All of the units attack only enemy units that can inflict damage. Enemy buildings and units like, for example, medics, stay unharmed, when I need them burnt in
red flames.
3). About repeating triggers.
I need dropships created in several locations every 3 seconds, beginning with 10 seconds elapsed time. Any suggestions how to do that? Tried "always; create ...+wait 3000 ms+preserve trigger", but I didn't even hope that would work :)
4). Unwanted computer movement/actions.
How do I make the computer's dropships stand still until the right time? The computer always does some dumb moves with them on its own. AI scripts are off.
That's it for the moment. MB I'll add some more questions. Thanks in advance for the solutions :)
P.S. I used the SC X-tra Editor, downloaded from sc.org. If someone has suggestions for a better editor (+coloured text, no unit limits etc.) , I'd be glad to listen.
Motosh
05-29-2007, 11:43 AM
3). About repeating triggers.
I need dropships created in several locations every 3 seconds, beginning with 10 seconds elapsed time. Any suggestions how to do that? Tried "always; create ...+wait 3000 ms+preserve trigger", but I didn't even hope that would work :)
Find a unit that you're not using on your map. Critters work pretty well. Have the game set a value of deaths for that unit. Then in another trigger have this value reduced. In the trigger(s) you're using to make the ships, add a condition of "Current Player has suffer At Most 0 Deaths of [Unit]".
P.S. I used the SC X-tra Editor, downloaded from sc.org. If someone has suggestions for a better editor (+colored text, no unit limits etc.) , I'd be glad to listen.
Starforge is nice. It has colored text and all. My favorite thing about Starforge, other than the map making, is the trigger editor it has. You can directly type in your triggers.
Eldente
05-29-2007, 1:57 PM
Find a unit that you're not using on your map. Critters work pretty well. Have the game set a value of deaths for that unit. Then in another trigger have this value reduced. In the trigger(s) you're using to make the ships, add a condition of "Current Player has suffer At Most 0 Deaths of [Unit]".
Thanks a million. There's only one thing: the trigger starts repeating itself only after a significant amount of time.
I made a critter, triggered it "always - set deaths to 4" and "always - subtract deaths by 4". Then I triggered the dropships to be created with elapsed time at least 10 secs + deaths of critter at most 0, + wait 3000ms, + preserve. What did I do wrong?
Motosh
05-29-2007, 2:33 PM
1)Always - Reduce Deaths of {critter} by 1; Preserve
2)If deaths of {critter} at most 0; Elapsed game time {10} - Create Ship; Set Deaths of {critter} to {value}; Preserve
This should do it. No need to have a Wait action in the creation trigger. Just reset the deaths of the critter to the desired duration. If you're using hyper triggers, then a value of 12 will result in a 1 second delay. I'm not sure about regular triggers. Havn'e used them in so long.
To get hypers, if you're not already using them, make a trigger with "always - Wait 1 MS(62 times) with a comment of "Hyper" and a Preserve. They help alot, but if you're not set for them they can really mess things up.
Eldente
05-29-2007, 2:45 PM
If you're using hyper triggers, then a value of 12 will result in a 1 second delay. I'm not sure about regular triggers. Havn'e used them in so long.
To get hypers, if you're not already using them, make a trigger with "always - Wait 1 MS(62 times) with a comment of "Hyper" and a Preserve. They help alot, but if you're not set for them they can really mess things up.
As I wrote earlier, I'm almost new to SC mapping, so I prefer the regular ones :)
People, does someone have any idea about 1)? It makes me want to blast my PIII 667 MHz (I know, what a pile of junk) to smithereens with a scarab...
I have had trouble with 4) before it seems if an AI player is going to have an AI script in the future or is at all active it likes to play with dropships. Only way I found to stop it was to create a neutral player of the same colour and then as soon as units are dropped switch them to the agressive AI's control. You can set still neutral player as another AI's enemy if dropships should be attacked.
Makaber
05-29-2007, 3:28 PM
you probably checked several players for the trigger.
Just check one player or current player.
Eldente
05-30-2007, 3:52 AM
I have had trouble with 4) before it seems if an AI player is going to have an AI script in the future or is at all active it likes to play with dropships. Only way I found to stop it was to create a neutral player of the same colour and then as soon as units are dropped switch them to the agressive AI's control. You can set still neutral player as another AI's enemy if dropships should be attacked.
Thanks, I'll try it out :)
you probably checked several players for the trigger.
That's the thing, I didn't! The trigger only affects one player! But still the created units duplicate (now a stable x 3), and the excessive units don't even act like normal units - don't move, attack or anything else!
Howdy, people. I'm new here and, actually, almost new to SC mapping. I decided to try making a small movie map, and I have some problems with several triggers.
Hello there, and welcome on board... the 'mapping express'. :)
Let's see what we can do about it then?
1). "Create unit" problem - duplication.
If I make a trigger to create 1 unit in location x, when I test the map, it gives me not just 1 unit, but 3, 4 or even 5 instead. On top of all that, these "excessive" units do not "listen" to any triggers they should, neither attack or move. How do I prevent this from happening?
A tiny question, do you use hypers? If so, that might be it.
If not, then the trigger owner is set to a force which is causing the unit replication.
And as you said later , they don't move because most likely when they spawned they got 'pushed' outside the location. Enlarge it and almost assuredly it'll work.
2). Level of agression - too low.
All of the units attack only enemy units that can inflict damage. Enemy buildings and units like, for example, medics, stay unharmed, when I need them burnt in red flames.
Set AI scritps for that aggressive cinematic player. Composed by several triggers (for instance, spawning foes and another with order command to attack) or not, there are a few options to pull it though.
I need a lil' more specific aim and to know what you're trying to do in the cinematic would help. *Hint, hint*
3). About repeating triggers.
I need dropships created in several locations every 3 seconds, beginning with 10 seconds elapsed time. Any suggestions how to do that? Tried "always; create ...+wait 3000 ms+preserve trigger", but I didn't even hope that would work :)
Please post the entire trigger because it should've worked. For example, try the condition "Elapsed time at least 0 ms" to see if it jives.
Also I need to know if hypers are being used and the trigger's player owner setted.
4). Unwanted computer movement/actions.
How do I make the computer's dropships stand still until the right time? The computer always does some dumb moves with them on its own. AI scripts are off.
As said before, set the cinematic AI to neutral and then use it. You can have two players with the same colour (1 neutral, the other aggressive), using advanced editors, and then swap between'em when needed.
P.S. I used the SC X-tra Editor, downloaded from sc.org. If someone has suggestions for a better editor (+coloured text, no unit limits etc.) , I'd be glad to listen.
My suggestion is for you to try SCMDraft 2 (http://www.warboards.org/showthread.php?t=13285) 'cause it has great compatibility with SCXE and has a triggering system similar to SCXE or the hard way, through text typing. ;)
I simply dislike SF due to it's annoying capability of messing up maps and compatibility issues with other editors, like the one you were using (SCXE). Plus having a few bad experiences with it, being the worse to make me rebuild a map from scratch. :P
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.