ok heres the thing i am making an rpg where every player starts as an adventurer and from there they can upgrade to either a worker or a gaurd then from the gaurd a swordsman or a warrior from worker to woodsman or a bowman etc. now people can choose there own hero but when you bring your hero to certain spots EVERY1 gets sent to the movie spot now if i leave the units under player's controll the people can make the guys move and mess it up. so i solved thsi by givign it to p7(computer) but how do i make it so that it gives the right unit to the right player?
Set deaths for the units according to the player they belong to.
Like if you have a marine, scv, bat and each belongs to p1-3 respectively then set deaths for marine for p7 to 1, scv to 2, and bat to 3.
Then when it's time to give it back to the player you can use those values.
You could also just have each of the players units in a specific spot so not all crowded together would not need to be spread out far. Then put a location for each of them where they will go and then simply give the units at that location back and forth.
--- your method works btu what if p1,2 both have scvs?
Instead of setting deaths of p7, set deaths of the unit to 1 for the specific player.
Or you could just set deaths of one unit for the specific player and have the number of deaths correspond to a specific unit.
Or, never give the units to p7?
If You have hyper-triggers in you map just have a location for each player follow them through the game, if it's a good in-depth rog with some detail you already have this done for spells and such. So, when they are in "Movie Mode" as you put it you can have a trigger that constantly makes them teleport exactly to where they are.
It's a simpler trigger that can be generalized, doesnt need specifics but the specific location for each player. Instead of 6 seperate triggers for 6 different units and a copy of each of thoise 6 for each player, you'd only require 1 for each player with just constently Teleporting them. Also on all center location triggers, I Usually center it again before I do the rest of the trigger, even if I have an always center location on unit going. You could even get away using the same location for each player this way too.
Conditions:
Switch "Movie Mode" is set
Actions:
Center Location 'X' on 'Unit" controled by Current Player.
Teleport (Move) All Unit at location 'X' to 'X'
Preserve Trigger.
If you have Hyper-Triggers then this will make this fire 12 times per second for each player. Just set the Movie Mode switch when you intiate it, and clear it when ots done.
prob with that is THE UNITS MOVE the players units move so teh teleport doenst work also i do have the locations, but your way conflicts to much. ill try ---
QUOTE(sharf @ Mar 30 2006, 03:50 PM)
prob with that is THE UNITS MOVE the players units move so teh teleport doenst work also i do have the locations, but your way conflicts to much. ill try ---
[right][snapback]456032[/snapback][/right]
If you want them to move to a location like walk there then just nvm the teleport, and have it just constantly order them to a location then when they sit there then have them sit there and keep ordering it to move to the centered location, but It's just an Idea, If you have the players keep their units might make the feel of the map better.
I just wanted to give you another option.
As it gives each player's unit to player 7, create a label unit under or over it to mark which player it belongs to. Use a different unit type for each player, or if using burrowed units as the label (probably the best choice from an aesthetic standpoint), use a different number, stacked underground, for each player. Trigger it so that your labels always remain in association with the units belonging to the players, then base your giving back conditions on the labels.
3 triggers should do everything you need.
-1-
Current Player commands atleast 1 (unit):
Set Deaths to 1 of that (unit).
-2-
Current player suffers 2 deaths of (unit) (if the unit dies):
Set to 0 deaths of (unit).
-3-
Current player commands exactly 0 (unit):
Current player suffers exactly 1 deaths of (unit):
Condition saying to give the units back to the players:
Give 1 unit owned by P7 to Current Player.
Now, make this set of triggers for all 7 units, and you're done!
EDIT: Reorganized it a little. Also, when someone upgrades or a unit is otherwise removed, remember to set the deaths of that unit back to 0.
well i decided nto to give um to p7 doesnt work as well as i want but it works, but now, how do i make a medic(p7's (computer)) heal a players unit?(yes its organic)
P7 needs to be allied to the person who is going to get healed and the medic must have energy.
both these things are on and they still dotn heal, can they heal no terran? i think they can... they do in melee.....
QUOTE(sharf @ Mar 30 2006, 09:09 PM)
both these things are on and they still dotn heal, can they heal no terran? i think they can... they do in melee.....
[right][snapback]456282[/snapback][/right]
Try setting the Medic to "Patrol", where you want them to be healed, set to patrol to a centered location if you want them to follow them.
Also, make sure the heal ability is not disabled in p7's unit settings.