Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Need help with a trigger
Need help with a trigger
Dec 6 2008, 5:48 pm
By: Dem0n  

Dec 6 2008, 5:48 pm Dem0n Post #1

ᕕ( ᐛ )ᕗ

I'm making a Defense/RPG map, and the RPG part of the map gets used over and over for each "mission" that you go with your character. Each mission has different enemies, so I need a trigger that created enemies in certain spots for different missions. I already have neutral units on the map for mission #2, and I made a trigger that centers location on the neutral unit, removes it, then creates 1 for p8. I have like 20 neutral units, but only 2 units actually get replaced with p8 units. Can someone help me make this trigger properly because I think that I'm doing it wrong. D:




Dec 6 2008, 5:52 pm Falkoner Post #2



Is the trigger that gives them to player 8 assigned to multiple players?



None.

Dec 6 2008, 5:54 pm Biophysicist Post #3



Maybe you just forgot to Preserve Trigger... I've made noober mistakes...

Can you post the triggers, please? Then we can help you more.



None.

Dec 6 2008, 6:24 pm Dem0n Post #4

ᕕ( ᐛ )ᕗ

Well these aren't the exact triggers, but this is what I originally put. The triggers I have now are so messed up. :P

Players:
Player 8

Condition:
Player 7 has suffered exactly 2 deaths of cantina (this dc represents what mission the players are on).

Action:
Center location labeled 'give units zergling' on Zerg Zergling owned by Neutral at 'RPG AREA'.
Remove all Zerg Zergling at 'give units zergling' for Neutral.
Create 1 Zerg Zergling at 'give units zerling' for Player 8. Apply properties (burrowed).
Center location labeled 'give units hydra' on Zerg Hydralisk owned by Neutral at 'RPG AREA'.
Remove all Zerg Hydralisk at 'give units hydra' for Neutral.
Create 1 Zerg Hydralisk at 'give units hydra' for Player 8. Apply properties (burrowed).
Preserve Trigger.





Dec 6 2008, 6:30 pm Biophysicist Post #5



I don't know why it's not working, but why don't you just Give them instead of remove-createing them?



None.

Dec 6 2008, 6:30 pm Pigy_G Post #6



Would you need to also make the players Neutral and Player 8? I'm not sure but try that see if it works.



None.

Dec 6 2008, 6:34 pm Biophysicist Post #7



... What? I don't understand what you mean, and I don't think other people can, either...



None.

Dec 6 2008, 6:59 pm Falkoner Post #8



If you're removing them and placing the same unit, why not just give all in that location to them?



None.

Dec 6 2008, 7:06 pm Zhuinden Post #9



It's easy, Remove 1 instead of All.



None.

Dec 6 2008, 7:08 pm Dem0n Post #10

ᕕ( ᐛ )ᕗ

If I give it to them, the lings come unburrowed, so it looks bad. D:

Collapsable Box


Post has been edited 1 time(s), last time on Oct 9 2012, 12:22 am by I Iz LEET.




Dec 6 2008, 7:13 pm Biophysicist Post #11



I thought lings autoburrowed if there wasn't anything nearby? Try turning P8's vision off, waiting a bit, and turning it back on. (Make sure he has Burrowing researched, of course...)



None.

Dec 6 2008, 7:15 pm Zhuinden Post #12



Maybe what he is doing if it works out just as fine then he doesn't need to mess around with AI Scripts. I personally hate those more.

I still say that you're supposed to Remove 1 instead of Remove All, in case you didn't notice my post above. This is the key of fixing it, that's why.



None.

Dec 6 2008, 7:33 pm GameLoader1337 Post #13



so true, if you removed them all that'd just mean all of em get removed to create 1 back and the loop would end there.



None.

Dec 6 2008, 8:37 pm NudeRaider Post #14

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

Have the burrow tech researched for P12 and P8 and edit the properties of the preplaced units to "burrowed". Then they will stay burrowed even after giving.

Also it doesn't matter if he removes all or just 1 of them since how I understand it there's only 1 unit acting as a placeholder and he want's to create only 1 at its place.

The triggers you posted should work fine. The mistake is most probably in another trigger. Copy the text triggers to notepad and check for all actions that kill, move or remove P8 units. Maybe it also helps to check triggers that use "Anywhere", "RPG Area" and "Give units xyz".




Dec 6 2008, 9:19 pm Falkoner Post #15



Quote
Also it doesn't matter if he removes all or just 1 of them since how I understand it there's only 1 unit acting as a placeholder and he want's to create only 1 at its place.

It really depends on the size of the location he's centering on them, and how close the units are.



None.

Dec 6 2008, 9:47 pm SelfPossessed Post #16



1) It might not affect anything, but the trigger condition should check if Neutral brings at least 1 zergling and 1 hydralisk to RPG Area. You can then copy the trigger 20 times so that the gives happen in a single trigger cycle.
2) Check the triggers that affect the deaths of cantina. If the trigger that modifies it executes in the same trigger loop, it'll stop.
3) I second changing the Remove All to Remove 1, just in case.
4) Give causes unburrowing problems with nonhero units due to their default AI. If you use the hero versions of Zerglings and Hydralisks, they will stay burrowed after the give. If you don't mind the default upgrades that hero units get, I'd recommend using them instead.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:53 am]
Ultraviolet -- :lol:
[06:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[06:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[06:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[06:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
[06:48 pm]
Vrael -- On this Topic, I could definitely use some Introductions.
[06:48 pm]
Vrael -- Perhaps that utilizes cutting-edge technology and eco-friendly cleaning products?
[06:47 pm]
Vrael -- Do you know anyone with a deep understanding of the unique characteristics of your carpets, ensuring they receive the specialized care they deserve?
[06:45 pm]
NudeRaider -- Vrael
Vrael shouted: I've also recently becoming interested in Carpet Cleaning, but I'd like to find someone with a reputation for unparalleled quality and attention to detail.
beats me, but I'd make sure to pick the epitome of excellence and nothing less.
[06:41 pm]
Vrael -- It seems like I may need Introductions to multiple companies for the Topics that I care deeply about, even as early as Today, 6:03 am.
Please log in to shout.


Members Online: Oh_Man