Alliances
This topic is locked. You can no longer write replies here.
Oct 13 2009, 12:22 am
By: IcY  

Oct 13 2009, 12:22 am IcY Post #1

Cruisin' on that LSD

so im making a map where the player needs to use the 'a' or 'attack' button to attack and this can be done using alliances (set to ally).
one thing i dont get is sometimes the unit will not attack, and this is from the time after you click 'a' on a unit you want to attack, but then your unit will begin to move over to attack, but stops mid-way. that is because the trigger is either preserved to set to ally, or just waiting milliseconds to ally, and it ends up allying half way through the attack. i want to know how to make it ally each time after you attack and kill the unit, should i use kills?




Oct 13 2009, 12:28 am Falkoner Post #2



You can detect when their kill score goes up and reset the ally, that, or you can only set them to ally when they have an enemy.



None.

Oct 13 2009, 12:32 am IcY Post #3

Cruisin' on that LSD

wouldnt detecting the kill score only detect when a kill is made causing that to be the only time they r allied? what if they click un ally each time before a kill?




Oct 13 2009, 12:40 am rockz Post #4

ᴄʜᴇᴇsᴇ ɪᴛ!

I'm pretty sure you're looking for a way to prevent people from ever unallying right?

Well if you constantly chance any alliance status, any force attack will be canceled during the trigger run. Using hyper triggers, this prevents most units from ever attacking. The easiest way around this is to detect when a player unallies another player. To do this, you use the "foes" player group. Somehow you need to differentiate the players. If you have unique units somewhere on the map, you can use those (ie foes commands at least 1 "unique unit" then set player X to ally). If not, you can set unique deaths for each player (player 1 has 1 death of cantina, player 2 has 2 deaths of cantina etc...). Then detect when foes have exactly 1,2,3 etc... deaths of cantina and set alliance accordingly.

Finally, if you have NO enemies, you can always just detect when foes have at least 1 any unit, then ally everyone.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Oct 13 2009, 12:43 am ClansAreForGays Post #5



Make the condition: if foes command atleast 1 any unit
Make the action: set player(x) to allie
Make the action: Display text: Don't try to unally.
Preserve Trigger




Oct 13 2009, 12:56 am IcY Post #6

Cruisin' on that LSD

thanks guys




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[04:46 pm]
Ultraviolet -- @:@
@:@ shouted: this community still going strong?
Still going.. strong is debatable though.
[04:13 pm]
WeirdoX4857 -- I can't believe this is really been around since 2003 but it does look classic and old asf still better than talking to kids on discord ranting about skibidi toilet and sexuality or whatever mental illness is going on in their heads
[04:11 pm]
WeirdoX4857 -- Nigga how you ask is it still going strong when you get a text every 3 miles per hour or something
[04:10 pm]
WeirdoX4857 -- Where is everybody
[01:21 pm]
@:@ -- this community still going strong?
[2026-9-27. : 4:30 pm]
Oh_Man -- yeah, probs
[2026-9-27. : 3:11 pm]
NudeRaider -- I bet it just needs another training session against pros instead of only against itself and nobody will be able to stop it anymore.
[2026-9-27. : 3:09 pm]
NudeRaider -- Oh_Man
Oh_Man shouted: pluto vs pro gamer snow: https://youtu.be/NOXXpATkdZU
so it can be beaten by a prepared pro, even in macro games, if only barely. the muta micro in particular seems really hard to handle for protoss ground though. In the open goons can't catch them, in the base they trip over buildings, it just instantly flies out of storms and they fly circles around archons. Mass cannons do work, but can't cover the whole map with it. Probably need mass corsair to counter and hope you can outmaneuver all the scourge.
[2026-9-27. : 2:14 am]
Oh_Man -- pluto vs pro gamer snow: https://youtu.be/NOXXpATkdZU
[2026-9-27. : 1:14 am]
Symmetry -- https://staredit.net/topic/18932/ check it
Please log in to shout.


Members Online: Dem0n