Staredit Network

Staredit Network -> UMS Assistance -> Need help with a map!
Report, edit, etc...Posted by Staredit.Net Essence on 2005-03-22 at 17:04:19
Hi there.

I just downloaded a map that some korean guy made i think, but it has a big problem i want to fix, here ill explain:

I have some units at a certain location "(location1)" owned by a neutral player and i want to give those units to a certain player using a trigger; the trigger will go like this:
GiveUnits(All, Men, P7, location1, P1);
P7 is neutral player and P1 is current player
i do this for all the players so they can start with certain army at one round.

and the problem is: if they player is not in the game, lets say he left; the units of P7 that were suposed to be given to that player become computers and start attacking the other units, well i dont want this, so i was looking for a way to kill this units if the player is not in the game.

Please post any ideas of a trigger, i also used the SetAliance trigger and preserved it for the players but when this units become computers they wont be allied

Finally here is a Link for the map im telling u about, feel free to try to fix it, u will see the error at the second round just when u spawn
http://www.overdosed.net/clanfiles/uploads...Ô±¸¶Ô¾î2004.scx

Thanks for your time
Report, edit, etc...Posted by Mr_Mooo_Cow(U) on 2005-03-22 at 17:44:09
Well if you don't mind welfare quality you could add a trigger that checks if the computer(the one that is taking units but you don't want it to) has the units you don't want, if it does then give them back to p7 (nuetral player)... happy.gif
Report, edit, etc...Posted by chuiu on 2005-03-22 at 17:45:46
Well most maps usually have a unit somewhere to detect whether the player is in the game (a preplaced one). Since this map is IMPOSSIBLE SCENARIOS DESERT (that someone *cough* has renamed), you should use their comsat as that unit.

So something like:

C:
Current player commands exactly 0 comsat.
A:
Kill all men for current player.
preserve trigger.
Report, edit, etc...Posted by bajadulce on 2005-03-22 at 17:58:26
I couldn't get your link to work.. tho my poor internet connection might be faulty. Maybe you could use SEN's file hosting to "attach" this map.

Report, edit, etc...Posted by Staredit.Net Essence on 2005-03-22 at 18:30:37
Yes i made it that way thanks
Condition
Bring(P8, AtMost, 0, AnyUnit, Round 3);
Command(P1, Exactly, 1, Comsat Station); <----- New added line

Action

CenterView(GGG P3);
KillUnitAt(All, AnyUnit, Round 3, All Players);
GiveUnits(All, Men, P7, GGG P1, P1);


Works great!
Report, edit, etc...Posted by Snipe on 2005-03-22 at 18:35:57
good job
Report, edit, etc...Posted by Staredit.Net Essence on 2005-03-22 at 18:46:01
You know, Once a player leaves the game all their units belong to player 12. Now. How do I kill p12 units, you ask? Easy, Go into starfoge triggers and do a trigger that reads,


Trigger
Description:
Leave Trigger
Players:
¤ All Players
Conditions:
¤ Player 12, commands at least 1 anyunit.
Actions:
¤ Kill all anyunit for player 12, at anywhere.
¤ Preserve Trigger


This way, when any player leaves all their units will be imedietly destroyed.

(You say you have a way working just fine as it is, which is very good and I suggest you don't play around with it too much or something will go wrong.)
-This p12 trigger is moreso for your future use, Good luck in the future with your maps. happy.gif
Next Page (1)