Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Can You Trigger Deselection?
Can You Trigger Deselection?
Nov 11 2007, 3:07 am
By: Veta  

Nov 18 2007, 7:03 am Moose Post #21

We live in a society.

I just recalled I actually had this problem in a map that I made. I didn't want to eliminate micro, but I didn't want players controlling Scourges, but to still have ownership of them.

//-----------------------------------------------------------------//
Trigger("Player 1, Player 2, Player 3, etc."){
Conditions:
Bring("Current Player", "Unit X", "Location", At least, 1);

Actions:
Comment("");
Preserve Trigger();
Give Units to Player("Current Player", "Player 12", "Unit X", All, "Location");
Give Units to Player("Player 12", "Current Player", "Unit X", All, "Location");
}
//-----------------------------------------------------------------//

Basically, whenever you click the unit, it is deselected because it is given to another player. However, in truth, the player never loses ownership of the unit for any amount of time, and the unit should in theory function as if no triggers were affecting it.
I will mention, though, that this map also had Order triggers firing after the give triggers. Also note, that when I used these triggers, the affected units never had to attack, only move. I know that they will keep moving to where they're ordered, but I cannot say that they will be able to hold their targeting.




Nov 18 2007, 10:17 am NudeRaider Post #22

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

Btw. thats exactly what i suggested in the first place: :P
Quote from NudeRaider
Give the units to another player (and back right after).
Quote from Mini Moose 2707
I know that they will keep moving to where they're ordered, but I cannot say that they will be able to hold their targeting.
They will not keep the target. P12 is neutral which cancels every attack command given to the unit.

There is a chance if you give the unit to a player that has the same alliances as the original player but I don't think it would keep its target.

Hm some idea I just had: What happens if you don't give the unit to another players but to himself? Is this action ignored? Would it deselect? What about orders?

Post has been edited 1 time(s), last time on Nov 18 2007, 10:39 am by NudeRaider.




Nov 18 2007, 10:38 am NudeRaider Post #23

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

Quote from ZugZugZealot
Anyways, it may be a quite a bit of work, but I may suggest making a series of location layers along the lanes as wide as the lanes, with the depth of probably 10, maybe 20.
[...]
It's a tedious method, but it should work.
Well you didn't explain what you want to do with those triggers, but it seems you want when at least 2 units are at the same spot BOTH units are are ordered to move on by hypers.

Here's why that doesn't make sense at all:
1) Why both? That would mean they would always be ordered to move on as they will reach the next section together.
2) Why move order? What if moving is exactly the thing he wants to prevent? (For example in TOW moving 1 unit past enemy units to reach the end zone thus winning instead of winning by killing all opposition)
3) And what about groups that form when the 2 armies are fighting? Should those groups walk past each other until killed by the defense?!

No, sry... but this is no solution... at least not for what he asked. He wanted to eliminate micro, not move order units around the map when groups have formed.




Nov 19 2007, 4:13 am ZugZugZealot Post #24



[quote=NudeRaider][quote=ZugZugZealot]
Here's why that doesn't make sense at all:
1) Why both? That would mean they would always be ordered to move on as they will reach the next section together.
2) Why move order? What if moving is exactly the thing he wants to prevent? (For example in TOW moving 1 unit past enemy units to reach the end zone thus winning instead of winning by killing all opposition)
3) And what about groups that form when the 2 armies are fighting? Should those groups walk past each other until killed by the defense?!
quote]
Move is only spammed unti they reach the location, then switches back to standard "order attack," for whatever time it runs on. The only thing it would stop, is people doing unit recycling. For example, you your attack at their base, you can keep it from being a total loss by pulling them back. Until they're dead, they won't be able to be pulled back. The reason for move, is that if they try to pull them back, they will return to their current position where they should be at. In a maps like battlecraft and tug of war, theoretically, there should be no units along the way to where then fronts of the two sides collide. I'm not too big on the method since it's kind of messy, and is very location consuming.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:35 am]
Ultraviolet -- Vrael
Vrael shouted: NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
Gonna put deez sportballs in your mouth
[01:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
[2024-4-30. : 7:43 am]
NudeRaider -- Vrael
Vrael shouted: if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
Yeah I'm not a big fan of Westernhagen either, Fanta vier much better! But they didn't drop the lyrics that fit the situation. Farty: Ich bin wieder hier; nobody: in meinem Revier; Me: war nie wirklich weg
[2024-4-29. : 6:36 pm]
RIVE -- Nah, I'm still on Orange Box.
[2024-4-29. : 4:36 pm]
Oh_Man -- anyone play Outside the Box yet? it was a fun time
[2024-4-29. : 12:52 pm]
Vrael -- if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
[2024-4-29. : 11:17 am]
Zycorax -- :wob:
[2024-4-27. : 9:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
[2024-4-27. : 7:56 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: "War nie wirklich weg" 🎵
sing it brother
Please log in to shout.


Members Online: jun3hong