Hey there. I'm designing a map that depends heavily on capturing units from other players.
I have several custom abilities that do this, and I'm slowly getting the hang of the data editor.
My problem is this:
Using the buff behavior, there is an option to change the player ownership.
(Behavior - Player - Value)
Now, it changes control of the unit or structure just fine, but if that unit gives supply, it does not count towards the controlling players supply. It still counts to the original player. If player one has only one supply depot, and player 2 captures it, player 1 will still read 8 supply, and player 2 will read 0.
Is this a bug in the editor, or do I have to set a flag or another option somewhere?
I realize I could rework it so that it works with triggers, but I'd prefer if this could be packed as a mod with as little re tailoring to new maps as possible.
Resolved thanks to Shardfenix!
For future reference:
People will find that transferring unit ownership using the
Buff: Behavior - Player - Value:
Field will result in the unit command being changed, but not true ownership. The units supply will still belong to the original owner.
To change the unit ownership including it's supply cost use:
Welcome to sc2mapster :D Feel free to PM me with any questions you may have.
Unfortunately, I'd totally do this with triggers. It's only 1 trigger and that one trigger could be copied and pasted no problem. But as for data.... Try looking into the Ability of the mind emulator in campagin. It permanently takes control of a unit. Are you doing it the same way?
Rollback Post to RevisionRollBack
Feel free to Send me a PM if you have any questions/concerns!
Thanks, I will do that! I find myself browsing this forum frequently.
Yes, triggers will have to do then. I checked the mind control ability, it's the same.
I'd say that's officially a bug. Where do I report editor bugs to bilzzard? B.net forum?
Some types of effects can actually set ownership. You only need to use a behavior if you want the control to be temporary. Giving a player ownership through an effect should give them the supply from the unit.
Hey there. I'm designing a map that depends heavily on capturing units from other players.
I have several custom abilities that do this, and I'm slowly getting the hang of the data editor.
My problem is this:
Using the buff behavior, there is an option to change the player ownership.
(Behavior - Player - Value)
Now, it changes control of the unit or structure just fine, but if that unit gives supply, it does not count towards the controlling players supply. It still counts to the original player. If player one has only one supply depot, and player 2 captures it, player 1 will still read 8 supply, and player 2 will read 0.
Is this a bug in the editor, or do I have to set a flag or another option somewhere?
I realize I could rework it so that it works with triggers, but I'd prefer if this could be packed as a mod with as little re tailoring to new maps as possible.
Resolved thanks to Shardfenix!
For future reference:
People will find that transferring unit ownership using the
Field will result in the unit command being changed, but not true ownership. The units supply will still belong to the original owner. To change the unit ownership including it's supply cost use:
Welcome to sc2mapster :D Feel free to PM me with any questions you may have.
Unfortunately, I'd totally do this with triggers. It's only 1 trigger and that one trigger could be copied and pasted no problem. But as for data.... Try looking into the Ability of the mind emulator in campagin. It permanently takes control of a unit. Are you doing it the same way?
Thanks, I will do that! I find myself browsing this forum frequently.
Yes, triggers will have to do then. I checked the mind control ability, it's the same. I'd say that's officially a bug. Where do I report editor bugs to bilzzard? B.net forum?
Thanks for the suggestion, Cheers.
Some types of effects can actually set ownership. You only need to use a behavior if you want the control to be temporary. Giving a player ownership through an effect should give them the supply from the unit.
@shardfenix: Go
Thank you sir! That's rockin awesome!