PDA

View Full Version : Mapping help.


Durandal
03-02-2008, 2:48 AM
Hey guys, I'm working on my map for the UMS competition that we've just gotten into place, but I'm having this problem with my map that no doubt has a ridiculously easy answer that escapes me.

I have a trigger that at a certain point creates men at an area for players 1, 2, and 3, and then moves them to another. My problem is that, even when players 2-3 are absent, the units still spawn with the correct player colors, but are hostile and begin firing on everyone elses's troops. What's the problem with this?

intranetusa
03-02-2008, 3:37 AM
Hey guys, I'm working on my map for the UMS competition that we've just gotten into place, but I'm having this problem with my map that no doubt has a ridiculously easy answer that escapes me.

I have a trigger that at a certain point creates men at an area for players 1, 2, and 3, and then moves them to another. My problem is that, even when players 2-3 are absent, the units still spawn with the correct player colors, but are hostile and begin firing on everyone elses's troops. What's the problem with this?


A problem that can't be helped... I asked the exact same question about a week ago...apparently there isn't a solution. :/

http://www.warboards.org/showthread.php?p=578075#post578075 (http://www.warboards.org/showthread.php?p=578075#post578075)

Durandal
03-02-2008, 10:14 AM
Although, I'm not giving units to anyone, I'm directly creating them. It's probably the same error, but still, there must be something I'm overlooking. I never see newb map makers complain about this.

SilverCrusader
03-02-2008, 10:55 AM
Uncheck the box that says this for a specific player and check it for the force that the player is in.

Durandal
03-02-2008, 11:07 AM
The trigger is applied to force 1. It just went

Condition:
Player 7 brings "Train" to "Location".
"Platform spawn" is "set"

Action:
Create 14 "Royal Marine" for "Player 1"
Create 14 "Royal Marine" for "Player 2"
Create 14 "Royal Marine" for "Player 3"
Issue Order to all Royal Marines owned by "Player 1" at "location": "move" to "location"
Issue Order to all Royal Marines owned by "Player 2" at "location": "move" to "location"
Issue Order to all Royal Marines owned by "Player 3" at "location": "move" to "location"
Wait 2000 milliseconds.
Create 14 "Royal Marine" for "Player 1"
Create 14 "Royal Marine" for "Player 2"
Create 14 "Royal Marine" for "Player 3"
Issue Order to all Royal Marines owned by "Player 1" at "location": "move" to "location"
Issue Order to all Royal Marines owned by "Player 2" at "location": "move" to "location"
Issue Order to all Royal Marines owned by "Player 3" at "location": "move" to "location"
Clear "platform spawn".
"preserve trigger".

Polkaman
03-02-2008, 1:48 PM
You could put a trigger that kills all the player's units if the player is absent. But is the absent player neutral...?
Also you could make the units appear for a certain neutral player, then give the units.

Dem0nS1ayer
03-02-2008, 2:19 PM
Do the players control units at the beginning of the map? If they do, you could set switches for players 1, 2, and 3 at the beginning of the game and then make a trigger saying:

Condition
Player commands at most 0 [any unit].

Action
Clear switch 'player 1'.

Then just add the switch to the trigger that you're having problems with, so it will only create units for player 1 if the switch is set.

Twitch6000
03-02-2008, 2:19 PM
Ok I had the same problem with a few things in Total Invisible Defense.The fix is a bitch but it works.You have to make the create portion of the trigger in a different trigger.So you can detect the players.Then after they are all detected and/or made you set a switch or add 1 to a death count.To set the spawn.
So something like this player 7 brings train to location
platform set
currentplayer brings atleast 1 anyunit to anywhere
create
add 1 dc for current player

then in the other part you would just have everything you have now execpt the create units and in conditions have dc of unit is atleast 1.
For it to be more clear download the beta of total invisible defense to see what I mean.

Durandal
03-02-2008, 6:39 PM
Too much of a pain. I just decided to make a seperate trigger with create unit actions per player, and that cleared it up.