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.
[2024-5-20. : 3:08 pm]
Sylph-Of-Space -- woah! nice! thank you!
[2024-5-20. : 4:05 am]
O)FaRTy1billion[MM] -- the setting exists, it's just hidden in a weird place
[2024-5-20. : 4:04 am]
O)FaRTy1billion[MM] -- instead change "Microtile Overlay" to "Impassable"
[2024-5-20. : 4:04 am]
O)FaRTy1billion[MM] -- er, wait, idk why i was looking for height
[2024-5-20. : 4:03 am]
O)FaRTy1billion[MM] -- below the minimap should be a thing that says "Overlay Settings" with a little + button in the corner, press the + to expand it, uncheck Use Defaults, then change "Tile Overlay" to "Height"
[2024-5-20. : 3:57 am]
Sylph-Of-Space -- Unless I'm dum (possible)
[2024-5-20. : 3:57 am]
Sylph-Of-Space -- It would be so so so nice if SCMDraft had some kind of dedicated "walkability" view for the tilesets.
[2024-5-20. : 3:53 am]
Sylph-Of-Space -- :'( dont cry for me cat-gentina
[2024-5-19. : 9:18 pm]
Ultraviolet -- 🔪🐈
[2024-5-19. : 12:34 pm]
NudeRaider -- curiosity kills the cat!
Please log in to shout.


Members Online: 1jordanc272hh9