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.
[10:09 pm]
Ultraviolet -- let's fucking go on a madmen rage bruh
[10:01 pm]
Vrael -- Alright fucks its time for cake and violence
[2024-5-07. : 7:47 pm]
Ultraviolet -- Yeah, I suppose there's something to that
[2024-5-06. : 5:02 am]
Oh_Man -- whereas just "press X to get 50 health back" is pretty mindless
[2024-5-06. : 5:02 am]
Oh_Man -- because it adds anotherr level of player decision-making where u dont wanna walk too far away from the medic or u lose healing value
[2024-5-06. : 5:01 am]
Oh_Man -- initially I thought it was weird why is he still using the basic pre-EUD medic healing system, but it's actually genius
[2024-5-06. : 3:04 am]
Ultraviolet -- Vrael
Vrael shouted: I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
With the modern EUD editors, I don't think they're calculating nearly as many offsets as you might imagine. Still some fancy ass work that I'm sure took a ton of effort
[2024-5-06. : 12:51 am]
Oh_Man -- definitely EUD
[2024-5-05. : 9:35 pm]
Vrael -- I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
[2024-5-05. : 9:35 pm]
Vrael -- that is insane
Please log in to shout.


Members Online: DiearAnother