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.
[2024-5-31. : 2:36 pm]
Wing Zero -- Bop em
[2024-5-31. : 2:36 pm]
Wing Zero -- Mods
[2024-5-29. : 9:40 pm]
Ultraviolet -- :wob:
[2024-5-28. : 8:43 am]
TheHappy115 -- Yea, thats the issue. Thanks. It would also explain why my deleted map couldn't get updated. Updated version reduced collision on units (only thing added) since was dodging game (players collide with each other)
[2024-5-28. : 5:26 am]
Ultraviolet -- If so, I'd just focus on getting them on scmscx.com and then you can link to that in the showcase thread for your maps
[2024-5-28. : 5:25 am]
Ultraviolet -- I can't upload my EUD maps, I think the DLDB has some issue with handling them. Are you trying to upload EUD maps?
[2024-5-28. : 2:06 am]
TheHappy115 -- Its been awhile but ever since I requested one of the Maps I posted to be deleted since I couldn't delete it myself (or update it), I haven't been able to upload any more maps. Any reason for that?
[2024-5-26. : 7:14 pm]
Kyradax -- Hi
[2024-5-26. : 5:05 pm]
O)FaRTy1billion[MM] -- :wob:
[2024-5-25. : 9:22 am]
Zycorax -- :wob:
Please log in to shout.


Members Online: O)FaRTy1billion[MM], jun3hong, Roy