Staredit Network

Staredit Network -> UMS Assistance -> [SOLVED] Any unit, Men, Factories?
Report, edit, etc...Posted by La-Dragon on 2006-02-01 at 16:58:11
Is there a way to make all observers, dropships, shuttles, overlords, medics, and all non-combat units die when there are no more troops in a certain place without making like 50 triggers or switches?

Report, edit, etc...Posted by PCFredZ on 2006-02-01 at 17:12:39
Yes, using multiple conditions in a single trigger.

P: Current Player
C: Current Player commands exactly 0 Marines
C: Current Player commands exactly 0 Firebats
C: Etc.
A: Kill all Medics for Current Player
A: Kill all Dropships for Current Player
A: Preserve Trigger
Report, edit, etc...Posted by M_s4 on 2006-02-01 at 17:18:29
Yeah, wat PCFredz said, but you have to use Commands at Location instead of just plain old Command. For the zones, you gotta make them up yourself.

The title of the topic is irrelevant to the question, unless you were thinking there is a unit detection that specifies the type of unit as in combat/non-combat. There is none. I'm still ambiguous about the specifics of factories, because I only use buildings, men, specfic, or any unit, I've never used factories
Report, edit, etc...Posted by La-Dragon on 2006-02-01 at 17:26:40
Er.. that kinda helps..

ADDITION:
Well, you can make almost any unit in my game, so I'm going to have to put like dragoons, dts, ghosts, archons, carriers, arbiters etc all in one trigger?
Report, edit, etc...Posted by Oo.Vic.oO on 2006-02-01 at 17:28:17
pretty much.
Report, edit, etc...Posted by M_s4 on 2006-02-01 at 17:40:07
A problem is that you are limited to 16 conditions per trigger so you will have to do it like this.
Trigger:
Conditions:
-Commands 0 blah at blah
-more..more
-some extra
-Commands 0 things at blah (this is 16)
Actions:
Set Switch 'First Set'

Trigger:
Conditions:
-Commands 0 marines at blah
-Some more
-Commands 0 Last unit at blah
Actions:
-Set Switch 'Second Set'

Trigger:
Conditions:
-Switch 'First Set' is set
-Switch 'Second Set' is set
Actions:
-Kill all non-combat at blah
-Kill all another-non-combat at blah
-and so on


If you have a lot of units that need to be not in your location, you may even need to resort to a third or fourth set. You can have up to 64 actions so I'm pretty sure you will not need another trigger.
Report, edit, etc...Posted by joker2kill on 2006-02-01 at 18:03:07
QUOTE(M_s4 @ Feb 1 2006, 02:40 PM)
A problem is that you are limited to 16 conditions per trigger so you will have to do it like this.
Trigger:
Conditions:
-Commands 0 blah at blah
-more..more
-some extra
-Commands 0 things at blah (this is 16)
Actions:
Set Switch 'First Set'

Trigger:
Conditions:
-Commands 0 marines at blah
-Some more
-Commands 0 Last unit at blah
Actions:
-Set Switch 'Second Set'

Trigger:
Conditions:
-Switch 'First Set' is set
-Switch 'Second Set' is set
Actions:
-Kill all non-combat at blah
-Kill all another-non-combat at blah
-and so on
If you have a lot of units that need to be not in your location, you may even need to resort to a third or fourth set. You can have up to 64 actions so I'm pretty sure you will not need another trigger.
[right][snapback]418342[/snapback][/right]


your trying to help him, not confused him iwth blahs, and lasts, and such and suches wink.gif
Report, edit, etc...Posted by M_s4 on 2006-02-01 at 19:25:45
Yes, I should really never do that again... closedeyes.gif Anyways, when I said blah, I meant for you to replace it with like Terran Marine, Terran Wraith, and like "Zone 1" or "Zone 4C".
Report, edit, etc...Posted by La-Dragon on 2006-02-01 at 20:57:58
Well this will take awhile.. cry.gif

Thanks...
Report, edit, etc...Posted by Staredit.Net Essence on 2006-02-01 at 21:52:20
Or you could use [men] if you want to basically kill non building.
Report, edit, etc...Posted by Red2Blue on 2006-02-02 at 00:41:58
Then again, Men make it difficult to keep track of. There are alot of units that count as men, many of which may be used for different purposes other then the detection at the current trigger.
Report, edit, etc...Posted by BroodKiller on 2006-02-02 at 12:29:27
QUOTE(M_s4 @ Feb 2 2006, 12:18 AM)
The title of the topic is irrelevant to the question, unless you were thinking there is a unit detection that specifies the type of unit as in combat/non-combat. There is none. I'm still ambiguous about the specifics of factories, because I only use buildings, men, specfic, or any unit, I've never used factories.

Well, I'm more an SC modder than a mapmaker, but I do remember there is a setting in units.dat that determines the 'character' of a unit (i.e. whether it counts as 'men', 'factory' etc.).
Of course this doesn't mean anything if you speak about 'pure' mapmaking, but I just wanted to clarify this in a more general context. smile.gif
Next Page (1)