Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Buggy simple triggers
Buggy simple triggers
This topic is locked. You can no longer write replies here.
May 18 2008, 9:48 pm
By: FatalException  

May 18 2008, 9:48 pm FatalException Post #1



So, I have a map, and in the map, you can call in airstrikes. A wraith flies to the target (a pylon), and everything there is supposed to explode rather violently. The wraith then flies back to where it came from and is removed. My problem is that the wraith is not being detected at the target location. Here is the trigger system I'm having trouble with:
Code
Trigger("Player 1"){
Conditions:
    Bring("Current Player", "Protoss Pylon", "Anywhere", Exactly, 1);

Actions:
    Move Location("Current Player", "Protoss Pylon", "Anywhere", "Air Support target");
    Wait(500);
    Preserve Trigger();
}

//-----------------------------------------------------------------//

Trigger("Player 1"){
Conditions:
    Bring("Current Player", "Protoss Pylon", "Air Support target", Exactly, 1);
    Switch("Switch9", not set);

Actions:
    Remove Unit("Current Player", "Protoss Probe");
    Set Switch("Switch9", set);
    Create Unit with Properties("Player 6", "Tom Kazansky (Wraith)", 1, "Air Support origin", 2);
    Order("Player 6", "Tom Kazansky (Wraith)", "Air Support origin", "Air Support target", move);
    Wait(3000);
    Preserve Trigger();
}

//-----------------------------------------------------------------//

Trigger("Player 1"){
Conditions:
    Bring("Player 6", "Tom Kazansky (Wraith)", "Air Support target", At least, 1);

Actions:
    Create Unit("Player 6", "Protoss Dark Archon", 16, "Air Support target");
    Kill Unit At Location("All players", "Any unit", All, "Air Support target");
    Wait(1000);
    Preserve Trigger();
}

//-----------------------------------------------------------------//

Trigger("Player 6"){
Conditions:
    Bring("Current Player", "Tom Kazansky (Wraith)", "Air Support target", At least, 1);

Actions:
    Create Unit("Current Player", "Protoss Dark Archon", 16, "Air Support target");
    Kill Unit At Location("All players", "Any unit", All, "Air Support target");
    Set Switch("Switch9", clear);
    Wait(1000);
    Preserve Trigger();
}

//-----------------------------------------------------------------//

Trigger("Player 6"){
Conditions:
    Bring("Current Player", "Tom Kazansky (Wraith)", "Air Support target", Exactly, 1);

Actions:
    Order("Current Player", "Tom Kazansky (Wraith)", "Air Support target", "Air Support origin", move);
    Preserve Trigger();
}

//-----------------------------------------------------------------//

Trigger("Player 6"){
Conditions:
    Bring("Current Player", "Tom Kazansky (Wraith)", "Air Support origin", Exactly, 1);
    Switch("Switch9", not set);

Actions:
    Remove Unit At Location("Current Player", "Tom Kazansky (Wraith)", 1, "Air Support origin");
    Preserve Trigger();
}

//-----------------------------------------------------------------//

Yes, I realize there are switches in there, I'll change it later (maybe).

P.S.: This isn't my map for the summer mapping contest.

Attachments:
Squad_Tactics2.scx
Hits: 1 Size: 113.35kb



None.

May 18 2008, 9:55 pm A_of-s_t Post #2

aka idmontie

Trigger("Player 1"){
Conditions:
Bring("Current Player", "Protoss Pylon", "Anywhere", Exactly, 1);

Actions:
Move Location("Current Player", "Protoss Pylon", "Anywhere", "Air Support target");
Wait(500);
Preserve Trigger();
}


Its probably that. Because it has a wait, and its preserved.



Personal GitHub
Starcraft GitHub Organization - Feel free to request member status!
TwitchTV

May 18 2008, 9:59 pm 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

There are more preserved waits. Wait blocks ftw! :lol:
You'll have to replace them all with death counters. Which is more reliable anyway.




May 18 2008, 10:01 pm FatalException Post #4



I can has hyper triggers.



None.

May 18 2008, 10:26 pm Doodle77 Post #5



Quote from FatalException
I can has hyper triggers.
we're talking about wait blocks here...



None.

May 18 2008, 10:32 pm Daedalus Post #6



Quote from FatalException
I can has hyper triggers.
Eh? :|

Anyhow, you don't want to use waits. Wether you use hypertriggers or not, it can mess things up (right?).
I can't sleep anyway, so I've done it for you as well as some other adjustments:

Code
Trigger("Player 1"){
Conditions:
   Bring("Current Player", "Protoss Pylon", "Anywhere", At Least, 1);

Actions:
   Move Location("Current Player", "Protoss Pylon", "Anywhere", "Air Support target");
   Preserve Trigger();
}

//-----------------------------------------------------------------//

Trigger("Player 1"){
Conditions:
   Bring("Current Player", "Protoss Pylon", "Air Support target", Exactly, 1);
   Switch("Switch9", not set);

Actions:
   Remove Unit("Current Player", "Protoss Probe");
   Set Switch("Switch9", set);
   Create Unit with Properties("Player 6", "Tom Kazansky (Wraith)", 1, "Air Support origin", 2);
   Order("Player 6", "Tom Kazansky (Wraith)", "Air Support origin", "Air Support target", move);
   Preserve Trigger();
}

//-----------------------------------------------------------------//

Trigger("Player 1"){
Conditions:
   Bring("Player 6", "Tom Kazansky (Wraith)", "Air Support target", At least, 1);

Actions:
   Create Unit("Player 6", "Protoss Dark Archon", 16, "Air Support target");
   Kill Unit At Location("All players", "Any unit", All, "Air Support target");
   Create Unit("Current Player", "Protoss Dark Archon", 16, "Air Support target");
   Kill Unit At Location("All players", "Any unit", All, "Air Support target");
   Set Switch("Switch9", clear);
   Order("Current Player", "Tom Kazansky (Wraith)", "Air Support target", "Air Support origin", move);
  Preserve Trigger();
}

//-----------------------------------------------------------------//

Trigger("Player 6"){
Conditions:
   Bring("Current Player", "Tom Kazansky (Wraith)", "Air Support origin", Exactly, 1);
   Switch("Switch9", not set);

Actions:
   Remove Unit At Location("Current Player", "Tom Kazansky (Wraith)", 1, "Air Support origin");
   Preserve Trigger();
}

//-----------------------------------------------------------------//




None.

May 18 2008, 10:44 pm y10k Post #7



lol man, you unchecked "Air support target's" "Air flags" so it will never detect your wraith.



None.

May 18 2008, 10:48 pm FatalException Post #8



Shit, I checked those, it didn't save it?

EDIT: It didn't save it.

EDIT AGAIN: Hey, I found my problem, I'm working on an old version of my map. :P

I guess that's what I get for not doing anything with it for over 9000. LOCK PLOX.



None.

May 18 2008, 11:07 pm NudeRaider Post #9

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

Epic fail....

that was what I was thinking of first but I didn't want to insult you so I didn't ask for that...




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[07:43 am]
NudeRaider -- Vrael
Vrael shouted: if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
Yeah I'm not a big fan of Westernhagen either, Fanta vier much better! But they didn't drop the lyrics that fit the situation. Farty: Ich bin wieder hier; nobody: in meinem Revier; Me: war nie wirklich weg
[2024-4-29. : 6:36 pm]
RIVE -- Nah, I'm still on Orange Box.
[2024-4-29. : 4:36 pm]
Oh_Man -- anyone play Outside the Box yet? it was a fun time
[2024-4-29. : 12:52 pm]
Vrael -- if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
[2024-4-29. : 11:17 am]
Zycorax -- :wob:
[2024-4-27. : 9:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
[2024-4-27. : 7:56 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: "War nie wirklich weg" 🎵
sing it brother
[2024-4-27. : 6:24 pm]
NudeRaider -- "War nie wirklich weg" 🎵
[2024-4-27. : 3:33 pm]
O)FaRTy1billion[MM] -- o sen is back
Please log in to shout.


Members Online: Roy