I'm trying to get a flying command center to move a certain location, land, then turn into a planetary fortress. I have no issue getting it to move and land but I'm stuck at getting it to morph to a PF. I've already adjusted the price to be free, so that's not the issue. I can click on the command in the command card and it will do it but I need it to change through triggers.
ok, assuming that you have enough resources and the engineering bay isn't a problem, then you should try to set the "Command Center - Upgrade to Planetary Fortress" to the other one (something about morphing coce or something). If that doesn't work then I'd have to look at it to figure it out.
I already had it to set the COCE one, tried the other and it didn't work either
Here's a screen shot of the trigger, and I could attach the map if needed
I see your problem. You have the variable Command Center set to the Command Center (Flying) unit. When that CC lands, it's no longer that unit so your orders aren't going anywhere. You would need to set your variable to the landed command center in order for that trigger to work.
OK, here's what I've got so far:
Unit - Order Command Center to ( Move targeting CC Land) (Replace Existing Orders)
Unit - Order Command Center to (Command Center - Land (Terran Buildings) targeting CC Land) (After Existing Orders)
Unit - Order Command Center to (Command Center - Upgrade to Planetary Fortress) (After Existing Orders)
I would try just adding in a wait after the land order, other wise its trying to upgrade while its still landing. Put a wait - 2.0 seconds in game time
I was thinking about it and I'm honestly not really sure how I would go about it. I've never had to work triggers around a morph.
Only way I could really think would be to add this action:
"Unit - Order (Closest unit to Point in (Command Center units in (Entire map) owned by player Any Player matching No Unit Filter, with at most 1)) to (Command Center - Upgrade to Planetary Fortress) (After Existing Orders)"
Of course, if that doesn't work then you need to add a wait so it can finish landing.
I found my issue, it was nothing to do with that trigger
It was because I also had some SCVs being dropped off too close to the point, I moved them away a little bit, and it worked fine
Sorry for all my fail, thanks for being patient with me
I'm trying to get a flying command center to move a certain location, land, then turn into a planetary fortress. I have no issue getting it to move and land but I'm stuck at getting it to morph to a PF. I've already adjusted the price to be free, so that's not the issue. I can click on the command in the command card and it will do it but I need it to change through triggers.
Did you do this?
@Shawn91210: Go
Yep, I have that for the action, but what should be the event?
What exactly happens?
You said you have a trigger that already moves it and whatnot. You should paste that here.
Can't to have the Command Centre perform the commands in succession by changing "Replace Existing Orders" to "After Existing Orders"?
@Klishu: Go
That's why I asked.. If they do all of that in one movement then all he'd have to do is add the action I posted and make it After Existing Orders. U.U
OK, here's what I've got so far:
@Zomon: Go
And that doesn't work? There doesn't seem to be anything wrong with it.
@Shawn91210: Go
It will move and land, but won't start morphing
Did you also take off the requirement that you need an engineering bay? Could that be the problem?
@Shawn91210: Go
That shouldn't be it, cause I can click the button and have it morph
@Zomon: Go
ok, assuming that you have enough resources and the engineering bay isn't a problem, then you should try to set the "Command Center - Upgrade to Planetary Fortress" to the other one (something about morphing coce or something). If that doesn't work then I'd have to look at it to figure it out.
@Shawn91210: Go
I already had it to set the COCE one, tried the other and it didn't work either
Here's a screen shot of the trigger, and I could attach the map if needed
@Zomon: Go
I see your problem. You have the variable Command Center set to the Command Center (Flying) unit. When that CC lands, it's no longer that unit so your orders aren't going anywhere. You would need to set your variable to the landed command center in order for that trigger to work.
@Shawn91210: Go
Oh yeah, that makes sense
So, how would I set a variable to a unit that technically doesn't exist yet?
I would try just adding in a wait after the land order, other wise its trying to upgrade while its still landing. Put a wait - 2.0 seconds in game time
@Zomon: Go
I was thinking about it and I'm honestly not really sure how I would go about it. I've never had to work triggers around a morph.
Only way I could really think would be to add this action:
"Unit - Order (Closest unit to Point in (Command Center units in (Entire map) owned by player Any Player matching No Unit Filter, with at most 1)) to (Command Center - Upgrade to Planetary Fortress) (After Existing Orders)"
Of course, if that doesn't work then you need to add a wait so it can finish landing.
@Shawn91210: Go
Sadly, still not morphing
@Zomon: Go
What?! Now that one I can't believe because I just set up the whole thing in my editor and it's all good.
Take a look. Link Removed: http://www.mediafire.com/?8bl60w34svd69oz
@Shawn91210: Go
I found my issue, it was nothing to do with that trigger
It was because I also had some SCVs being dropped off too close to the point, I moved them away a little bit, and it worked fine
Sorry for all my fail, thanks for being patient with me
Here's the map so far, so you could see what I've been working on:
Link Removed: http://www.mediafire.com/?qq22iqr3jplvmn2