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.
[02:27 am]
Symmetry -- https://staredit.net/topic/18903/ THE REVIEWS ARE HERE! "ok these are pretty good memes" - ssj9Kevin
[2026-7-17. : 2:58 pm]
Ultraviolet -- Symmetry
Symmetry shouted: Man I wish we had this tech back in the day when people played ums lmao
fr fr
[2026-7-17. : 2:39 am]
Symmetry -- Man I wish we had this tech back in the day when people played ums lmao
[2026-7-16. : 6:28 am]
NudeRaider -- EUD actions, specifically. The conditions remained. Today we can even have actions again, but they're all virtualized/whitelisted (not sure on the actual technical implementation) so you can only use them for specific intended purposed, not arbitrary code injections.
[2026-7-16. : 6:26 am]
NudeRaider -- I mean yes, maps - through EUDs - were theoretically able to do that as well, but that was patched quickly.
[2026-7-16. : 6:25 am]
NudeRaider -- Symmetry
Symmetry shouted: Ohhh imagine a SC map that could delete itself
not the map, the editor
[2026-7-16. : 2:28 am]
Symmetry -- I vaguely remember Voy doing some ACE back in the day, but I had no idea EUDs could do that kind of shit. I am very much catching up on the technology
[2026-7-16. : 2:28 am]
Symmetry -- Ohhh imagine a SC map that could delete itself
[2026-7-15. : 8:51 pm]
NudeRaider -- Symmetry
Symmetry shouted: NudeRaider Is EUD editor capable of writing shit onto the player's harddrive? That seems like it would be dangerous
yeah an editor that isn't allowed to write files sounds rather pointless, so I'd assume it can. Like most other programs too btw. and yes, obviously that's dangerous, but also kinda necessary. MS introduced that virtualization for exactly that reason.
[2026-7-15. : 4:10 am]
Ultraviolet -- I don't think so. I think they shut that shit down after 1.16, maybe even earlier
Please log in to shout.


Members Online: Symmetry, O)FaRTy1billion[MM]