Staredit Network

Staredit Network -> UMS Assistance -> Ally when their same race.
Report, edit, etc...Posted by DroneFx_DT_ on 2005-09-27 at 02:15:42
Sup,Im new here and I need help sad.gif
Im currently working on a map that has 3 different races.Their all unallied.
If a player choses a race,he/she will be allied to the race.

But if other players also chose the same race,they will be allied with the other players that chose the same race and unally with the ones that chose a different race--but how do I set a trigger that does that?

Im confused with the triggers--sort of.
Report, edit, etc...Posted by in_a_biskit on 2005-09-27 at 04:18:02
Well, if a player is 'user selectable', then they'll start off with a town hall and four workers of their chosen race at their start location. So you can look at what building they have at their start location to determine which race they are.

Finding all the pairs of matching races and getting them to ally is a different matter, though. If you don't mind making quite a few repetitive triggers, you can make lots of triggers like this:
Trigger
Players:
¤ All players
Conditions:
¤ Current player commands at least 1 hatchery
¤ Player 1 commands at least 1 hatchery
Actions:
¤ Set player 1 to allied victory

And repeat for every possible combination of races (there are nine of them), for example:
Trigger
Players:
¤ All players
Conditions:
¤ Current player commands at least 1 hatchery
¤ Player 1 commands at least 1 command center
Actions:
¤ Set player 1 to enemy

and so on, then...

Repeat for every player...
Trigger
Players:
¤ All players
Conditions:
¤ Current player commands at least 1 hatchery
¤ Player 2 commands at least 1 hatchery
Actions:
¤ Set player 2 to allied victory


That gives you seventy-two triggers to make unsure.gif

Actually, you only need a third as many if you make the default stance between players as 'enemy' (that way you don't need any of the 'enemy' triggers).
Report, edit, etc...Posted by DroneFx_DT_ on 2005-09-27 at 04:45:55
Seventy-two triggers? Ah well,Im used to making hundreds of triggers anyways.Ima work on it,unless someone gives a simpler trigger blink.gif Thx..
Report, edit, etc...Posted by lazyjoe21 on 2005-09-27 at 09:50:18
perhaps add conditions of elasped time so later in the game if a dark archon mind controls other race units the alliances dont conflict
Report, edit, etc...Posted by Deathknight on 2005-09-27 at 19:04:04
You only need three triggers, unless my theory doesn't work.

Create two locations, Location 1, which can be placed anywhere, and Location 2, which is placed in an open area away from all the players' main bases.

Then run the following triggers, one for each race.


Trigger
Description:
Zerg Alliance
Players:
¤ All Players
Conditions:
¤ Current player commands at least 1 Hatchery.
¤ Elapsed game time is at most 5 seconds.
Actions:
¤ Move 1 Overlord owned by current player from anywhere to Location 2.
¤ Run AI Script "Set Player to Ally" at Location 2.
¤ Center location labelled Location 1 on Hatchery owned by Player 1 at Anywhere.
¤ Move all Overlord owned by Player 1 from Anywhere to Location 1.
¤ Center location labelled Location 1 on Hatchery owned by Player 2 at Anywhere.
¤ Move all Overlord owned by Player 1 from Anywhere to Location 2.
¤ Center location labelled Location 1 on Hatchery owned by Player 3 at Anywhere.
¤ Move all Overlord owned by Player 1 from Anywhere to Location 3.
¤ Center location labelled Location 1 on Hatchery owned by Player 4 at Anywhere.
¤ Move all Overlord owned by Player 1 from Anywhere to Location 4.
¤ Center location labelled Location 1 on Hatchery owned by Player 5 at Anywhere.
¤ Move all Overlord owned by Player 1 from Anywhere to Location 5.
¤ Center location labelled Location 1 on Hatchery owned by Player 6 at Anywhere.
¤ Move all Overlord owned by Player 1 from Anywhere to Location 6.
¤ Center location labelled Location 1 on Hatchery owned by Player 7 at Anywhere.
¤ Move all Overlord owned by Player 1 from Anywhere to Location 7.
¤ Center location labelled Location 1 on Hatchery owned by Player 8 at Anywhere.
¤ Move all Overlord owned by Player 1 from Anywhere to Location 8.



Trigger
Description:
Terran Alliance
Players:
¤ All Players
Conditions:
¤ Current player commands at least 1 Command Center.
¤ Elapsed game time is at most 5 seconds.
Actions:
¤ Move 1 SCV owned by current player from anywhere to Location 2.
¤ Run AI Script "Set Player to Ally" at Location 2.
¤ Center location labelled Location 1 on Command Center owned by Player 1 at Anywhere.
¤ Move all SCV owned by Player 1 from Anywhere to Location 1.
¤ Center location labelled Location 1 on Command Center owned by Player 2 at Anywhere.
¤ Move all SCV owned by Player 1 from Anywhere to Location 2.
¤ Center location labelled Location 1 on Command Center owned by Player 3 at Anywhere.
¤ Move all SCV owned by Player 1 from Anywhere to Location 3.
¤ Center location labelled Location 1 on Command Center owned by Player 4 at Anywhere.
¤ Move all SCV owned by Player 1 from Anywhere to Location 4.
¤ Center location labelled Location 1 on Command Center owned by Player 5 at Anywhere.
¤ Move all SCV owned by Player 1 from Anywhere to Location 5.
¤ Center location labelled Location 1 on Command Center owned by Player 6 at Anywhere.
¤ Move all SCV owned by Player 1 from Anywhere to Location 6.
¤ Center location labelled Location 1 on Command Center owned by Player 7 at Anywhere.
¤ Move all SCV owned by Player 1 from Anywhere to Location 7.
¤ Center location labelled Location 1 on Command Center owned by Player 8 at Anywhere.
¤ Move all SCV owned by Player 1 from Anywhere to Location 8.



Trigger
Description:
Protoss Alliance
Players:
¤ All Players
Conditions:
¤ Current player commands at least 1 Nexus.
¤ Elapsed game time is at most 5 seconds.
Actions:
¤ Move 1 Probe owned by current player from anywhere to Location 2.
¤ Run AI Script "Set Player to Ally" at Location 2.
¤ Center location labelled Location 1 on Nexus owned by Player 1 at Anywhere.
¤ Move all Probe owned by Player 1 from Anywhere to Location 1.
¤ Center location labelled Location 1 on Nexus owned by Player 2 at Anywhere.
¤ Move all Probe owned by Player 1 from Anywhere to Location 2.
¤ Center location labelled Location 1 on Nexus owned by Player 3 at Anywhere.
¤ Move all Probe owned by Player 1 from Anywhere to Location 3.
¤ Center location labelled Location 1 on Nexus owned by Player 4 at Anywhere.
¤ Move all Probe owned by Player 1 from Anywhere to Location 4.
¤ Center location labelled Location 1 on Nexus owned by Player 5 at Anywhere.
¤ Move all Probe owned by Player 1 from Anywhere to Location 5.
¤ Center location labelled Location 1 on Nexus owned by Player 6 at Anywhere.
¤ Move all Probe owned by Player 1 from Anywhere to Location 6.
¤ Center location labelled Location 1 on Nexus owned by Player 7 at Anywhere.
¤ Move all Probe owned by Player 1 from Anywhere to Location 7.
¤ Center location labelled Location 1 on Nexus owned by Player 8 at Anywhere.
¤ Move all Probe owned by Player 1 from Anywhere to Location 8.

Report, edit, etc...Posted by DroneFx_DT_ on 2005-09-28 at 01:21:23
Btw,this map is not having user selectable.Its more of u choosing a race in game..then later choose a hero for that race.Then u get allied to players whos the same race as u..including the cpu.

I fixed the Ally thingy thx to u guys,I still need to work on Ally "Vision" though.

Thx to all.
Next Page (1)