Staredit Network

Staredit Network -> UMS Assistance -> Center location not working
Report, edit, etc...Posted by Azu on 2006-02-09 at 21:49:24
Trigger("\x007Corners","\x007Sides"){
Conditions:
Command("Current Player", "Yggdrasill (Overlord)", At most, 0);

Actions:
Move Location("Current Player", "Start Location", "Anywhere", "Unit appear");
Create Unit with Properties("Current Player", "Yggdrasill (Overlord)", 1, "Unit appear", 20);
Preserve Trigger();
Comment("Create OL");
}

//-----------------------------------------------------------------//

Why isn't it working? It's suppost to create 1 overlord for each player on Force 1 and Force 2 at there respective star locations, but instead it creates them in the middle of the map ?_?
Report, edit, etc...Posted by Wing-of-no-Wing on 2006-02-09 at 22:09:48
If a location is moved without a valid place, i.e. to a unit that does not exist at the time that the action activates, then it will be moved to the middle of the map. Use something other than a start location to move it to, like a burrowed unit that will be immediately removed...or, if you needn't conserve, simply pre-place the locations where you need them to be.
Report, edit, etc...Posted by KaboomHahahein on 2006-02-09 at 22:10:30
MoveLocation(P1 Center, Male Student, P1, Anywhere);
(trigger form starforge)

Anyways, you are centering the location Anywhere in the Unit appear area, you need to switch that around. Your trigger seems kind of weird, so I can't be sure. What editor are you using?
Report, edit, etc...Posted by Azu on 2006-02-09 at 22:14:51
SCMDraft2

It's suppost to center the location to the Start Location which counts as a unit and thus I should be able to center on it

Then it should create an overlord there

It should do this for all players in force 1 and 2

So each player in force 1 and 2 should get an overlord spawned at there Start Location if they have no overlords

It should do this using only 1 location and without adding any extra units

ADDITION:
Oh and two other triggers that use a simular method, work perfectly fine. o.0

//-----------------------------------------------------------------//

Trigger("\x007Corners","\x007Sides"){
Conditions:
Bring("Current Player", "Zerg Creep Colony", "Anywhere", At least, 1);

Actions:
Comment("Creep to Sunken");
Move Location("Current Player", "Zerg Creep Colony", "Anywhere", "Unit appear");
Remove Unit At Location("Current Player", "Zerg Creep Colony", 1, "Unit appear");
Create Unit("Current Player", "Zerg Sunken Colony", 1, "Unit appear");
Preserve Trigger();
}

//-----------------------------------------------------------------//

and

Trigger("All players"){
Conditions:
Bring("Current Player", "Any unit", "Purchased units", At least, 1);

Actions:
Move Location("Current Player", "Yggdrasill (Overlord)", "Anywhere", "Unit appear");
Move Unit("Current Player", "Any unit", All, "Purchased units", "Unit appear");
Minimap Ping("Unit appear");
Preserve Trigger();
Comment("Spawn units at Overlord");
}

//-----------------------------------------------------------------//

So why is the one for spawning the overlord not working..? I don't understand =/
Report, edit, etc...Posted by KaboomHahahein on 2006-02-09 at 22:16:38
Move Location("Player 1", "Terran Civilian", "Anywhere", "P1 Center");
That is my trigger.

Are you sure that Start location count as a unit? Because by the looks of it, spawning in the center of the map, it means that Starlocation isin't a unit. I don't think it is a unit either...
Report, edit, etc...Posted by Azu on 2006-02-09 at 22:50:31
Well it's in the units tab and it lets me set it as the unit to center the location on in clasic trigedit

It isn't centering on it though

sad.gif
Report, edit, etc...Posted by Phant on 2006-02-09 at 22:53:59
Or start location gets removed at when starting game.
So you will need an other unit.

What do you do for a map?
Report, edit, etc...Posted by KaboomHahahein on 2006-02-09 at 23:03:55
Just place some cloaked/burrowed units at the start location so the location can actually center , or you can, for each player make one "to be centered" location and just spawn the units in the locations and move the locations for actual units when needed.
Report, edit, etc...Posted by Azu on 2006-02-10 at 00:26:33
NOOOOOOOOOOOOOOO I wanna do it with 1 location and triggers set up so don't need 1 for each player !

sad.gif

Oh well I'll just have to make a seperate unit for it to center on I guese =/
Report, edit, etc...Posted by Red2Blue on 2006-02-10 at 07:08:11
Just as a thing to note:

You cannot center a location on:

-In a specific area in another location (I.e, you can only center it on the middle of the location and not on the left side, there are some exceptions)
-A map revealer
-A doodad
-A sprite
-Terrain (duh).
-A start location!

When you said "start location" in the beginning you were probably talking about the start location, weren't you. >_>

Always use a valid unit!
Report, edit, etc...Posted by Azu on 2006-02-10 at 07:53:56
I mean when you open SCMDraft2 and click Units then Neutral then Start location then select Star location and it makes that circle thing that you place on the map
Report, edit, etc...Posted by Red2Blue on 2006-02-10 at 08:32:12
Yea, but the circle isn't detected in the game.
Report, edit, etc...Posted by Azu on 2006-02-10 at 08:52:00
I know that's the problem so I had to use a differant unit instead =/
Report, edit, etc...Posted by Red2Blue on 2006-02-10 at 08:56:22
Ah I see. What is this map?
Report, edit, etc...Posted by Azu on 2006-02-10 at 12:51:30
A sunken defense map..

ADDITION:
http://www.staredit.net/index.php?showtopic=26573
Report, edit, etc...Posted by (U)Bolt_Head on 2006-02-11 at 03:59:17
Azu, the map editors do not change what is possable to be triggered. SI could make SCMDraft identify anything as unit but you can't just center a location on it because it allows you to create the trigger. Its same deal with starforge, you can create triggers for players above player 8 in starforge but they will never function in the real game.

I guess i'm just saying get used to the fact triggers don't work just because you were able to make them.
Report, edit, etc...Posted by Azu on 2006-02-11 at 05:43:03
Why doesn't blizard make them work in starcraft? Is there a reason not to allow them to work?
Report, edit, etc...Posted by in_a_biskit on 2006-02-11 at 07:14:45
Blizzard didn't plan for people to find out about players past player 8 and other hidden features and to use them in their maps.

To ask why they 'disabled' them is the wrong question. The answer is that they made the game, and mapmakers used loopholes to extend it. Blizzard never had to put anything in that wasn't part of the game they intended you to play...
Report, edit, etc...Posted by Azu on 2006-02-11 at 07:17:37
Why did they not intend map-makers to use those, anyways? Is there a problem it causes that I should know about?

Oh and FYI, in normal staredit, the one blizzard made, you make a trigger to center a location on the Start Location. But it doesn't work. So it seems like a bug to me... ermm.gif
Report, edit, etc...Posted by LegacyWeapon on 2006-02-11 at 08:13:58
The problem is we went in and made programs that edited the CHK. This was not intended.

It doesn't work means it doesn't work. Find some way else to do it.
Next Page (1)