SC2Mapster Forums

Development > Data

How do you join two units in data?

  • 7 posts
    #1 Jan 23, 2013 at 23:04 UTC - 0 likes

    For purposes of say sending effects from the first unit to the second. The join would take be created when the first unit spawns the second unit. I tried to make the effects target the "My Create Unit Effect: Target" unit but that doesn't work.

    Cyber Jorts

    #2 Jan 24, 2013 at 01:39 UTC - 0 likes

    Could you elaborate maybe? You're a bit too vague in what you want. If you want to just apply an effect to the created unit on creation just put your effect in the Effect - Effect - Spawn field of your Create Unit effect.

    Assistant Team Leader of "Generic Code" and User of the All-Mighty Data Editor.

    My Amazing Cutscenes

    #3 Jan 24, 2013 at 07:25 UTC - 0 likes

    Well, more like relaying orders. I want the first unit to be able to run Issue Order effects that target the spawned unit, and the spawned unit only.

    I saw the Effect - Spawn field but I don't know how it can help me, I need to run effects after that functionality has run.

    Maybe I should put a dummy effect in that field and see if the effect scope or however it's called will remember the "dummy effect - target unit" unit, worth a shot.

    #4 Jan 24, 2013 at 19:41 UTC - 0 likes

    Get the created unit to apply a buff back to the caster and then use a periodic effect on that buff to relay the stuff.

    #5 Jan 24, 2013 at 20:19 UTC - 0 likes

    How does the periodic effect target the created unit? All of the 'target unit of effect' stuff I've tried has failed miserably.

    I could also use a reasonable trigger solution if the Unit Tag actually worked, it's always 5258259 or something.

    Last edited Jan 24, 2013 by zorbotron
    #6 Jan 24, 2013 at 20:23 UTC - 0 likes

    I think he means the other way around. Have the created unit communicate with the creating unit instead of the other way around. You can use "caster" to refer back to the creating unit

    When I want your opinion...I'll give it to you!

    http://www.sc2pod.com/achievement.php?id=13361

    #7 Jan 24, 2013 at 22:16 UTC - 0 likes

    You can then use the effect field above the value field to specify the created unit. You can then apply a buff to the caster unit that a vlaidator uses to issue the order. Well depends on what orders you want there to be.

  • 7 posts

You must login to post a comment. Don't have an account? Register to get one!