Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: a center loc problem
a center loc problem
May 17 2009, 9:01 pm
By: r00k  

May 17 2009, 9:01 pm r00k Post #1



Trigger("Player 1","Player 2","Player 3","Player 4","Player 5","Player 6"){
Conditions:
Always();
Actions:
Move Location("Current Player", "Warbringer (Reaver)", "Anywhere", "Reaver");
Preserve Trigger();
}
-------------------------------------------------------------------------------------------------------------------------------------------
Trigger("Player 1","Player 2","Player 3","Player 4","Player 5","Player 6"){
Conditions:
Most Kills("Men");
Actions:
Give Units to Player("All players", "Current Player", "Warbringer (Reaver)", All, "Anywhere");
Preserve Trigger();
}
-------------------------------------------------------------------------------------------------------------------------------------------
Trigger("Player 7"){
Conditions:
Bring("Player 11", "Men", "Reaver", At least, 1);
Actions:
Give Units to Player("Player 11", "Player 7", "Men", All, "Reaver");
Preserve Trigger();
}
-------------------------------------------------------------------------------------------------------------------------------------------




Where is the Problem ?

It works when the first Player has the Reaver. But when the Reaver changes to another owner, it doesnt work anymore. Single Player works fine. Is it the location, that does not center on the Reaver anymore, and if, why ?
Or is it the Trigger that tells P11 to give a unit at the Location "Reaver" to Player 7... thx for help.




None.

May 17 2009, 9:19 pm Wormer Post #2



All triggers run for each player present in the game: first all run for P1, then for P2 and so on. So when the first player controls the Warbringer the location Reaver still centers at Warbringer for Player 2, 3 and others, and as far as there is no Warbringer for that players on the map it is centered in the middle of the map. So, when it goes to the Player's 7 triggers the location Reaver is most likely in the middle of nowhere.

Also, take a note that two players can have Most Kills at the same time (when they have exact number of most kills) and that Most Kills condition will be true every trigger cycle for each player who has the most kills.

Understand?



Some.

May 17 2009, 9:22 pm r00k Post #3



so i add most kills in the first trigger and hope they never have same amount of kills ?

ah ok i just center when the player controls the warbringer and i choose something else for most kills.
What ?



None.

May 17 2009, 9:23 pm Wormer Post #4



Quote from r00k
so i add most kills in the first trigger and hope they never have same amount of kills ?
You'd better make it work when they have. Because... for example at start, all have 0 kills.



Some.

May 17 2009, 9:25 pm r00k Post #5



ok im pretty sure i can figure something out now...
thx a lot.



None.

May 17 2009, 9:30 pm Wormer Post #6



Probably it is a good idea to retain an old owner untill only one player have the most kills.

Anyways, make the first trigger like this:
Quote
TRIGGER
Owners: P1, P2, P3, P4, P5, P6
Conditions:
Current player commands at least 1 Warbringer.
Actions:
Move location Reaver on Warbringer owned by current player at Anywhere.
Preserve trigger.

If you want the reaver to change the owner sometimes I would have made it like this:
Quote
TRIGGER
Owners: P1, P2, P3, P4, P5, P6
Conditions:
Always.
Actions:
Clear switch sMostKills.
Preserve trigger.

TRIGGER
Owners: P1, P2, P3, P4, P5, P6
Conditions:
Current player has most kills of men.
Actions:
Set switch sMostKills.
Preserve trigger.

TRIGGER
Owners: P1, P2, P3, P4, P5, P6
Conditions:
Switch sMostKills is Cleared. // Current player is not a leader anymore
Current player commands at least 1 Warbringer.
Actions:
Give all Warbringer owned by current player at Reaver to player 12.
Preserve trigger.

TRIGGER
Owners: P1, P2, P3, P4, P5, P6
Conditions:
Switch sMostKills is Set. // Current player is a leader
Player 12 commands at least 1 Warbringer. // And Warbringer belongs to noone
Actions:
Give all Warbringer owned by player 12 at Reaver to current player.
Preserve trigger.

TRIGGER
Owners: P1, P2, P3, P4, P5, P6
Conditions:
// Better dont use this condition there, and don't ask why, that is wired! Use the next one:
Current player commands at least 1 Warbringer.
Current player brings at least 1 Warbringer to Anywhere.
Actions:
Move location Reaver on Warbringer owned by current player at Anywhere.
Preserve trigger.

// And that trigger which gives units on Reaver or whatever...


Post has been edited 4 time(s), last time on May 17 2009, 9:47 pm by Wormer.



Some.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:55 pm]
Zoan -- :wob:
[10:34 am]
NudeRaider -- SEN doesn't rely on spammers initiate its sleep cycle. It hat fully automated rest and clean-up phases. Please understand that this is necessary for the smooth operation of the site. Thank you.
[03:45 am]
Sylph-Of-Space -- Does the shoutbox get disabled when there's spammers?
[2024-5-17. : 6:47 am]
NudeRaider -- lil-Inferno
lil-Inferno shouted: nah
strong
[2024-5-17. : 5:41 am]
Ultraviolet -- 🤔 so inf is in you?
[2024-5-17. : 4:57 am]
O)FaRTy1billion[MM] -- my name is mud
[2024-5-17. : 4:35 am]
Ultraviolet -- mud, meet my friend, the stick
[2024-5-16. : 10:07 pm]
lil-Inferno -- nah
[2024-5-16. : 8:36 pm]
Ultraviolet -- Inf, we've got a job for you. ASUS has been very naughty and we need our lil guy to go do their mom's to teach them if they fuck around, they gon' find out
[2024-5-16. : 5:25 pm]
NudeRaider -- there he is, right on time! Go UV! :D
Please log in to shout.


Members Online: 1avae8285rL7