Ok so in my map I made an ability for a unit to make 3 copies of himself that attack and move with him and what not, pretty much exactly like the 'mirror image' ability in World of WarCraft. The problem I am having with this is that I can't figure out how to make the images mirror the actions of the player's unit. It seems simple but yet nothing I try seems to work... Right now I have the created mirror image units put into an array and I copied my original movement trigger and replaced the player's character with the imaged units.
Here's an example from the ORIGINAL character movement trigger:
If
And
Conditions
W_On == true
S_On == false
D_On == false
A_On == false
Then
Unit - Order CharSelect:SelectedCharacter to ( Move targeting ((Position of CharSelect:SelectedCharacter) offset by 0.5 towards (Run Angle + 0.0001) degrees)) (Replace Existing Orders)
General - Skip remaining actions
Else
Here's an example from the IMAGED unit's movement trigger:
General - If (Conditions) then do (Actions) else do (Actions)
If
And
Conditions
W_On == true
S_On == false
D_On == false
A_On == false
Then
Unit - Order MirrorImageUnits[All] to ( Move targeting ((Position of MirrorImageUnits[All]) offset by 0.5 towards (Run Angle + 0.0001) degrees)) (Replace Existing Orders)
None of the units respond when I try to move them, so if this script should work, I think there may be a problem with how I set the created units to the MirrorImageUnits array.
Anyone have any ideas of what I did wrong or what I could do instead? Any feedback/suggestions are appreciated, thank you!
this seems like an over the top way to mirror the actions. even in WoW they didnt mirror EXACTLY. short cut; make them escorts?? or just make them 'smart click' the unit, and make the mirror images unselectable. so when youre out of range they should follow you, but when youre still and they are they will auto acquire targets. to get mroe specific than this would take a lot of stuff to not acomplish much more other than making them 'snipe' targets that you pick out, and i dont think WoW even did that. though its very doable...
Making them escorts would probably get the desired effect I suppose... I hadn't really thought about that. But what do you mean about the 'smart click' thing? Just not sure exactly what you mean. At the moment I have it so that when the player attacks a target they also attack, even tho for some reason it is somewhat buggy and not completely precise... I just can't get the movement down. So I'll check out how making them escorts works. Thanks for the tip.
'smart click' is when you right click. you can issue it as a command though to units without actually clicking yourself. when you right click on of your own units, they follow them. and when theyre still they attack/acquire surrounding targets i believe. so it would be an option for you i think.
Hmm ok, maybe I'll try that if I can't figure out how to do it exactly how I want it. It's something to think about I suppose. Thanks for the suggestions!
You want to Issue Order Targeting Unit - Attack Move, with the targeted unit being the controllable one. They won't use abilities, but they will follow and engage enemies.
i dont think youd want to do attack move on the mirror images, they will engage anything then, and seemingly be left behind if say you want to run past one enemy to target another. if you did attack move they would be left behind attacking the first enemy they came across. with smart slick, they will attack when you do, and move / follow you when you move on or through other enemies.
Yeah I don't think I want to use attack move for that reason. Plus that wouldn't do anything for me when I am just walking around without attacking anything.
@ezbeats: Go
Where is this "Smart Click" in the Editor? It's not in the list of abilities targeting units.
@RileyStarcraft: Go
Using the hangar does sound like a good solution, similar to the party mode spell. It just depends on how you want the mirror units to behave.
I'm not sure how to make an ability like this, is there a tutorial or something where I can read about it? Or should I just look at the Carrier and copy that? That does use a hangar ability right?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Ok so in my map I made an ability for a unit to make 3 copies of himself that attack and move with him and what not, pretty much exactly like the 'mirror image' ability in World of WarCraft. The problem I am having with this is that I can't figure out how to make the images mirror the actions of the player's unit. It seems simple but yet nothing I try seems to work... Right now I have the created mirror image units put into an array and I copied my original movement trigger and replaced the player's character with the imaged units.
Here's an example from the ORIGINAL character movement trigger:
If
And
Conditions
W_On == true
S_On == false
D_On == false
A_On == false
Then
Unit - Order CharSelect:SelectedCharacter to ( Move targeting ((Position of CharSelect:SelectedCharacter) offset by 0.5 towards (Run Angle + 0.0001) degrees)) (Replace Existing Orders)
General - Skip remaining actions
Else
Here's an example from the IMAGED unit's movement trigger:
General - If (Conditions) then do (Actions) else do (Actions)
If
And
Conditions
W_On == true
S_On == false
D_On == false
A_On == false
Then
Unit - Order MirrorImageUnits[All] to ( Move targeting ((Position of MirrorImageUnits[All]) offset by 0.5 towards (Run Angle + 0.0001) degrees)) (Replace Existing Orders)
None of the units respond when I try to move them, so if this script should work, I think there may be a problem with how I set the created units to the MirrorImageUnits array.
Anyone have any ideas of what I did wrong or what I could do instead? Any feedback/suggestions are appreciated, thank you!
bumpin it... would really like to get an answer if anyone knows
this seems like an over the top way to mirror the actions. even in WoW they didnt mirror EXACTLY. short cut; make them escorts?? or just make them 'smart click' the unit, and make the mirror images unselectable. so when youre out of range they should follow you, but when youre still and they are they will auto acquire targets. to get mroe specific than this would take a lot of stuff to not acomplish much more other than making them 'snipe' targets that you pick out, and i dont think WoW even did that. though its very doable...
@ezbeats: Go
Making them escorts would probably get the desired effect I suppose... I hadn't really thought about that. But what do you mean about the 'smart click' thing? Just not sure exactly what you mean. At the moment I have it so that when the player attacks a target they also attack, even tho for some reason it is somewhat buggy and not completely precise... I just can't get the movement down. So I'll check out how making them escorts works. Thanks for the tip.
'smart click' is when you right click. you can issue it as a command though to units without actually clicking yourself. when you right click on of your own units, they follow them. and when theyre still they attack/acquire surrounding targets i believe. so it would be an option for you i think.
@ezbeats: Go
Hmm ok, maybe I'll try that if I can't figure out how to do it exactly how I want it. It's something to think about I suppose. Thanks for the suggestions!
You want to Issue Order Targeting Unit - Attack Move, with the targeted unit being the controllable one. They won't use abilities, but they will follow and engage enemies.
i dont think youd want to do attack move on the mirror images, they will engage anything then, and seemingly be left behind if say you want to run past one enemy to target another. if you did attack move they would be left behind attacking the first enemy they came across. with smart slick, they will attack when you do, and move / follow you when you move on or through other enemies.
@ezbeats: Go
Yeah I don't think I want to use attack move for that reason. Plus that wouldn't do anything for me when I am just walking around without attacking anything.
The cleanest way to implement this is going to be via a hangar ability.
@ezbeats: Go Where is this "Smart Click" in the Editor? It's not in the list of abilities targeting units.
@RileyStarcraft: Go Using the hangar does sound like a good solution, similar to the party mode spell. It just depends on how you want the mirror units to behave.
@RileyStarcraft: Go
I'm not sure how to make an ability like this, is there a tutorial or something where I can read about it? Or should I just look at the Carrier and copy that? That does use a hangar ability right?