Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Any way to set a trigger repeatedly?
Any way to set a trigger repeatedly?
Feb 19 2009, 2:50 am
By: Expopower  

Feb 19 2009, 2:50 am Expopower Post #1



Essentially, I have a trigger like this:

1. Conditions: "Player1" brings at least "#" "unit" to "Location".

Action: Display text message "blah".

Center view on "Location".

Give all "unit" owned by "Player2" at "Location" to "Player3".

2. "Player1" brings at most 0 "unit" to "Location".

Give all "unit" owned by "Player3" at "Location" to "Player2".

----------------------------------------------------

I've already tried using "Preserve trigger", but all this does is repeat the actions of the respective trigger repeatedly, which is not exactly what I intended...is there any script that can activate when Trigger2 is activated, which resets Trigger1?

Thanks!



None.

Feb 19 2009, 3:02 am Norm Post #2



Try setting a death counter with the first trigger, and have whatever value you count for deaths be a condition for the second.



None.

Feb 19 2009, 3:04 am NudeRaider Post #3

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

I spent like 5 minutes looking at your triggers trying to figure what you're actually trying to do.
It's much easier to help if you just describe the behavior you want instead of posting non-working triggers.

So you want to fire the give/display/center view when you bring a unit somewhere only once, and want to undo the giving once you move the unit away. Then possibly start over. Right?

That's easily done by setting a switch:
1. Conditions:
- "Player1" brings at least "#" "unit" to "Location".
- Switch 1 is cleared
Action:
- Display text message "blah".
- Center view on "Location".
- Give all "unit" owned by "Player2" at "Location" to "Player3".
- Set Switch 1

2. Conditions: "Player1" brings at most 0 "unit" to "Location".
- Switch 1 is set
Action:
- Give all "unit" owned by "Player3" at "Location" to "Player2".
- Clear Switch 1

If this can be done by multiple players independently then use a death counter (already has 1 count per player) instead of a (global) switch.

Post has been edited 1 time(s), last time on Feb 19 2009, 3:16 am by NudeRaider.




Feb 19 2009, 3:10 am Expopower Post #4



Ah, okay! Thanks for the advice! (On both formulating my questions and my triggers).



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[12:32 pm]
Oh_Man -- yea APM vs eAPM
[08:48 am]
NimoStar -- plus most of the human APM is just spam clicking APM inflation
[08:47 am]
NimoStar -- the thing with the "*12" thing is completely misleading. The AI isn't using two control groups, it can use each of those actions to command a single unit individually and issue different commands to each single unit.
[08:06 am]
NudeRaider -- NudeRaider
NudeRaider shouted: Oh_Man Artosis hasn't caught on how devastating the perfect focus fire is. With the mutas he was like "the Mutas always seem to have less hp than against a human". But he didn't notice that the flock he had selected always just had one muta that was hurt. Same with the wraiths here. He's talking about how valks+wraith is gonna destroy Pluto's valks, then 5s later he's dumbfounded the human player's air is just gone and he never figured out why. And for some reason didn't even think to go back and look at the battle.
*Pluto's wraiths
[08:05 am]
NudeRaider -- Oh_Man Artosis hasn't caught on how devastating the perfect focus fire is. With the mutas he was like "the Mutas always seem to have less hp than against a human". But he didn't notice that the flock he had selected always just had one muta that was hurt. Same with the wraiths here. He's talking about how valks+wraith is gonna destroy Pluto's valks, then 5s later he's dumbfounded the human player's air is just gone and he never figured out why. And for some reason didn't even think to go back and look at the battle.
[02:18 am]
Oh_Man -- Close enuf
[2026-9-21. : 4:14 pm]
Vrael -- perhaps there is a small professional player trapped in a box in the server rack where pluto is running? hmm?
[2026-9-21. : 4:14 pm]
Vrael -- 240*12*2 is 5760, where is the other 240 APM?
[2026-9-21. : 3:44 pm]
Oh_Man -- 1 action is selecting the unit and another action is moving it
[2026-9-21. : 2:58 pm]
Vrael -- 240*12 is 2880, where is the other 3000 APM?
Please log in to shout.


Members Online: Zoan