I didn't know any other way to describe what I was trying to do in the title.. so heres a better explanation. I'm trying to get it so when a specific unit right clicks a specific structure the unit will go up to that said unit and then proceed to the center of that structure. Once the unit has stopped in the center of the structure it sort of becomes the structure and opens it's command card to a different command card. When ever you just left mouse click the building your unit pops up with that command card.
Can this be done? Any clue on how this could be done? I've tried a few things.. with abilities and stuff.. but im not quite sure how to even start this. I will give credit on my map if u help me.
It might work with behaviors, effects, etc. But triggering it will be easier.
Well, I'd say once the unit "enters" the building you just hide the unit (there's an action for it).
And then you can either change the whole command card of the building or replace the building with a modified version of it.
That would be the way to go.
Wouldnt that require model editing and stuff like that? Theres no way i could just.. combine the two? and make the unit in the middle of said structure? Maybe turn collide off once right mouse clicked im not sure..
Most of the time you wouldn't even be able to see a unit inside a structure. The building would overlap the unit and that's it. And you couldn't even select it because of that reason. And there's no way to just combine two things.
Even the Templar -> Archon merge turns the two templar into a fully new unit.
You have to use a work-a-round. There are different ways to approach this. Instead of what I wrote before you could also move the unit into the middle, change it's command card to whatever you want and make a trigger that select the unit everytime the player clicks on the building. But I've heard that this is a bit buggy.
Well for this structure you can definitely see the unit and the unit must be seen. I am currently fooling around with it trying to find a solution.. :(
Alright.. for now i just want to figure out how to make it so when you right mouse click the building your unit goes to middle.. any idea on how i can just do that..? There has to be some way..
I mean cmon.. when an scv is building a building its inside the building and stuff like that.. there has to be a way so when i right mouse click a certain building unit goes to middle of building.. D:
Try making a trigger where when the unit gets near the building, it is ordered to move to the centre of the building (not overwriting the current command though, so you can move out). I`m not sure, but that sounds like it works..
one thing you could do is make it so the unit has an ability that targets this building. the unit disappears and a dummy unit is created at that spot that has a mover which makes it walk to the center of the building. then apply a behavior to the building that gives it the abilities that would be on the new command card (these would already be on the command card and their buttons would be higher on the list than the original buttons, but the abilities would be disabled up until this point so they wouldnt show). this can all be done with effects. most of this would be done using effects like modify unit (to hide the original unit) and then create unit to make the animation unit that walks into the center of the building. in the end i guess you could kill the hidden unit with a damage effect. i dont know of another way to kill a unit with an effect. im just throwing out some ideas, im not sure if this would work.
Idea: give your building an autocast ability that goes off when a unit gets near and triggers a set with a lot of options and a lot of validators (one for each hero unit you expect to have) so it can distinguish between them. The effect of this ability would be to morph (as in the tank) the building into a building that is the same, but with a different command card and a model that looks like your hero attached (as in attachment) to the center or more likely the roof so you can see it.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I didn't know any other way to describe what I was trying to do in the title.. so heres a better explanation. I'm trying to get it so when a specific unit right clicks a specific structure the unit will go up to that said unit and then proceed to the center of that structure. Once the unit has stopped in the center of the structure it sort of becomes the structure and opens it's command card to a different command card. When ever you just left mouse click the building your unit pops up with that command card.
Can this be done? Any clue on how this could be done? I've tried a few things.. with abilities and stuff.. but im not quite sure how to even start this. I will give credit on my map if u help me.
It might work with behaviors, effects, etc. But triggering it will be easier.
Well, I'd say once the unit "enters" the building you just hide the unit (there's an action for it).
And then you can either change the whole command card of the building or replace the building with a modified version of it.
That would be the way to go.
Wouldnt that require model editing and stuff like that? Theres no way i could just.. combine the two? and make the unit in the middle of said structure? Maybe turn collide off once right mouse clicked im not sure..
Most of the time you wouldn't even be able to see a unit inside a structure. The building would overlap the unit and that's it. And you couldn't even select it because of that reason. And there's no way to just combine two things.
Even the Templar -> Archon merge turns the two templar into a fully new unit.
You have to use a work-a-round. There are different ways to approach this. Instead of what I wrote before you could also move the unit into the middle, change it's command card to whatever you want and make a trigger that select the unit everytime the player clicks on the building. But I've heard that this is a bit buggy.
PS: And it wouldn't require model editing.
Well for this structure you can definitely see the unit and the unit must be seen. I am currently fooling around with it trying to find a solution.. :(
Well, I've given you two ideas. If you don't like them.... 8)
Alright.. for now i just want to figure out how to make it so when you right mouse click the building your unit goes to middle.. any idea on how i can just do that..? There has to be some way..
I mean cmon.. when an scv is building a building its inside the building and stuff like that.. there has to be a way so when i right mouse click a certain building unit goes to middle of building.. D:
Try making a trigger where when the unit gets near the building, it is ordered to move to the centre of the building (not overwriting the current command though, so you can move out). I`m not sure, but that sounds like it works..
I'm more into making it strictly data.. if possible.
Duh, well have fun with that.
I'm no expert of the data editor by any means, but I know that this idea is, at the very least, hard to realize.
one thing you could do is make it so the unit has an ability that targets this building. the unit disappears and a dummy unit is created at that spot that has a mover which makes it walk to the center of the building. then apply a behavior to the building that gives it the abilities that would be on the new command card (these would already be on the command card and their buttons would be higher on the list than the original buttons, but the abilities would be disabled up until this point so they wouldnt show). this can all be done with effects. most of this would be done using effects like modify unit (to hide the original unit) and then create unit to make the animation unit that walks into the center of the building. in the end i guess you could kill the hidden unit with a damage effect. i dont know of another way to kill a unit with an effect. im just throwing out some ideas, im not sure if this would work.
Idea: give your building an autocast ability that goes off when a unit gets near and triggers a set with a lot of options and a lot of validators (one for each hero unit you expect to have) so it can distinguish between them. The effect of this ability would be to morph (as in the tank) the building into a building that is the same, but with a different command card and a model that looks like your hero attached (as in attachment) to the center or more likely the roof so you can see it.