Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Dark Swarm Remove then Create a Unit
Dark Swarm Remove then Create a Unit
This topic is locked. You can no longer write replies here.
Aug 22 2008, 4:27 am
By: blacklight28  

Aug 22 2008, 4:27 am blacklight28 Post #1



I'm trying to create a dark archon at a location that is supposed to center on a dark swarm which is instantly removed when casted. These are my triggers.

Conditions:
-Always

Actions:
-Center location labeled 'P1 Bullet' on 'Bullet' owned by All Players at 'P1's place'.
-Preserve Trigger
Conditions:
-All Players bring at least 1 Bullet to 'p1's place'.

Actions:
-Create 1 Protoss Dark Archon at 'P1 Bullet' for Player 1.
-Kill all Protoss Dark Archon at 'P1 Bullet' for Player 1.
-Preserve Trigger

Conditions:
-All Players bring at least 1 Bullet to 'Anywhere'.

Actions:
-Remove all Bullet for All Players.
-Preserve Trigger

The dark archon isn't spawning. How to fix?



None.

Aug 22 2008, 4:32 am Morphling Post #2



Is the Dark Archon spawned on walkable terrain?
Is the Bullet in "p1 place"?
Are the triggers for the right player?



None.

Aug 22 2008, 4:34 am SiN Post #3



ok
A) your making it overcomplicated
B) your first trigger doesnt work.
C) Your third trigger is removing the dark swarm before the location can center on it.

try this:
Condition:
- All Players brings exactly (or at least) 1 'Bullet' to 'p1's place'

Action:
- Center Location 'P1 Bullet' on 'Bullet' at "P1's place'
- Remove 1 'Bullet' at 'P1 Bullet'
- Create 1 'Dark Archon' At 'P1 Bullet'
- Wait 0 millisecond
- Kill exactly 1 'Dark Archon' at 'P1 Bullet'
- Preserve Trigger

if you experience wait blocks use a death count timer.



None.

Aug 22 2008, 4:36 am Falkoner Post #4



Your problem is the constant centering, while it may center once on the unit in question, in the next trigger loop the unit is no longer there, and so it now gets centered to the middle of whatever location you are saying the unit is in, in this case, Anywhere.



None.

Aug 22 2008, 4:47 am blacklight28 Post #5



Well that didn't work Sin. Poop.



None.

Aug 22 2008, 4:52 am SiN Post #6



didn't work?
can you tell us exactly what's happening?
is the dark archon being created elsewhere?



None.

Aug 22 2008, 4:55 am blacklight28 Post #7



I don't think the dark archon is being created at all. And Falk, the location wouldn't move would it? The location stays where it is even if the thing is taken away and if there's nothing to center on, it wouldn't move. Right? I'm not positive.



None.

Aug 22 2008, 5:21 am Falkoner Post #8



As I said, if you try to center a location on a unit that is not there, it goes to the center of the location you told it the unit was in.



None.

Aug 22 2008, 5:24 am blacklight28 Post #9



Even if that is what's happening here, there is no dark archon spawning and there's nothing that's saying the the dark archon has no room to be placed.



None.

Aug 22 2008, 5:33 am Falkoner Post #10



Why don't you remove the bullet in the same trigger as you create and kill the dark archon? There's no wait required like SiN had, but it's pointless to have it separated.



None.

Aug 22 2008, 6:53 am KyleIs1337 Post #11



Assuming the bullet is the dark swarm, it is not working because it is not owned by the player that casts it. It's owned the player 12 (neutral).



None.

Aug 22 2008, 10:38 am Zwo Post #12



I think you can easily fit everything in to one trigger.

Condition:
p12 brings at least one Dark Swarm to 'p1's place'

Action:
Center location 'p1 bullet' on one Dark Swarm owned by p12 at 'p1's place'
Create one Dark Archon at 'p1 bullet' for p1
Kill one Dark Archon owned by p1 at 'p1 bullet'
Kill one Dark Swarm owned by p12 at 'p1 bullet'
preserve trigger

Note that if you're using SCMdraft2 standard trigger editor you have to use 'neutral' instead of p12.



None.

Aug 22 2008, 11:03 am NudeRaider Post #13

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

Yeah Sin's trigger works just fine, but as Kyles mentioned detect and center swarms for P12.

Then remove the wait and the remove dark archon so you can trace where the archon is being created (just for testing / pinpointing the problem). Most likely where you don't expect it (locations switched?) and because you remove it right after you don't notice it's created at all.

Btw. if the swarm is being removed and the next action is create dark archon you can tell for sure that it IS being created (or unplaceable error), the question is just where.




Aug 22 2008, 9:52 pm Falkoner Post #14



Quote
Assuming the bullet is the dark swarm, it is not working because it is not owned by the player that casts it. It's owned the player 12 (neutral).

Yeah, but All Players also works, so that isn't the problem.

Also, make sure you're not hacking while testing, as some hacks auto-remove the placement error...



None.

Aug 22 2008, 11:35 pm KyleIs1337 Post #15



This trigger should work.



Players:
?

Conditions:

'Neutral' brings 'at least' '1' 'Dark Swarm' to' Anywhere'

'Switch 1' is 'Clear'


Actions:

Center location 'Swarm' on 'Dark Swarm' owned by 'Neutral'

'Set' 'Switch 1'

Remove' Dark Swarm' owned by 'Neutral' at Swarm'

Create '1' 'Dark Archon' for 'Neutral' at 'Swarm'

Kill '1' 'Dark Archon' owned by 'Neutral' at 'Swarm'

Clear Switch 1

Preserve Trigger.





The reason your trigger wasn't working is because when you centered the location and removed the dark swarm it stopped the rest of the trigger from firing because the conditions are not met because the dark swarm is no longer there.

Attachments:
Dark Swarm.scx
Hits: 0 Size: 23.63kb

Post has been edited 8 time(s), last time on Aug 22 2008, 11:56 pm by KyleIs1337.



None.

Aug 23 2008, 4:58 am SiN Post #16



That's not true...When the conditions of a trigger are met it fires every single action no matter what. Even if the conditions are changed right after the conditions are met.
And why did you pointlessly put a switch in there?


I think his problem is that either 1) the 'bullet' unit is not a dark swarm. 2) His locations are wrong. 3) the dark swarm is not being cast in the location 'p1's place'



None.

Aug 23 2008, 5:06 am KyleIs1337 Post #17



Did you test the test map? Also if you remove the switch from the trigger in the test map and then test it, you will see that it will not work. And after every action it fires it checks previous conditions from all the other triggers and if they are met it runs them. But you can see that my test map works with the switch but doesn't work without it.



None.

Aug 23 2008, 5:36 am SiN Post #18



Well I'll try the map tomorrow but in the mean time:

Quote from NudeRaider
...Yeah Sin's trigger works just fine...




None.

Aug 23 2008, 5:37 am KyleIs1337 Post #19



It does work, hmm I tried that exact trigger before using the switch...oh wells they both work who cares this topic is solved now :). Also, you don't require that Wait for 0 milliseconds either.

Post has been edited 1 time(s), last time on Aug 23 2008, 5:43 am by KyleIs1337.



None.

Aug 26 2008, 2:14 am blacklight28 Post #20



This topic is not solved... It doesn't work on my map.
See if you can find a different way.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[10:11 pm]
Ultraviolet -- :P
[10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
[2024-4-17. : 11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
[2024-4-17. : 3:26 am]
O)FaRTy1billion[MM] -- i have to ask for minerals first tho cuz i don't have enough to send
[2024-4-17. : 1:53 am]
Vrael -- bet u'll ask for my minerals first and then just send me some lousy vespene gas instead
[2024-4-17. : 1:52 am]
Vrael -- hah do you think I was born yesterday?
Please log in to shout.


Members Online: eksxo