Hello SC2Mapster. I have made a modified vulture that leeches energy for dealing damage. What I want to happen is when the vulture gets 700 energy, it instantly builds a spider mine, and plants the spider mine at the current location. I thought this would be easy enough to achieve, but the "spider mine build" ability doesnt have any options for autocast in its flags. Am I missing something? (And, one other thing. if there are no flags for autocast for the ability, why does it let you autocast it in the campaign?)
I hope this was clear enough. Tell me if you need clarification.
I haven't looked much into the new AI system in SC2, but if one where to do this in a previous editor such as WCII, you would create a trigger to cast the ability. Something like:
Event- Every 1 second
Condition - if <unit> in <area> controlled by <player> has X amount of energy
Action- Cast <spell> in <area Z> (where area Z is the units current location)
Thats a very rough draft of what the trigger should look like. You might want to change the event pending on how your map functions and how your unit gains energy.
Make an ability effect-instant called "build spider mine at current lactation". Make an effect- create unit to go along with it. Have the ability auto cast.
Thank you silvermage! It worked like a charm. I only was thinking about the data editor and I didn't even consider a trigger to do what I wanted. Thank you again!
Grenegg, thanks for your time, but there are 2 things I just don't understand about the editor: actors and effects. Silver's was much easier for me.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hello SC2Mapster. I have made a modified vulture that leeches energy for dealing damage. What I want to happen is when the vulture gets 700 energy, it instantly builds a spider mine, and plants the spider mine at the current location. I thought this would be easy enough to achieve, but the "spider mine build" ability doesnt have any options for autocast in its flags. Am I missing something? (And, one other thing. if there are no flags for autocast for the ability, why does it let you autocast it in the campaign?)
I hope this was clear enough. Tell me if you need clarification.
Please??? By the end of the day??? :P D:
bump
@yopeasants: Go
I haven't looked much into the new AI system in SC2, but if one where to do this in a previous editor such as WCII, you would create a trigger to cast the ability. Something like:
Event- Every 1 second
Condition - if <unit> in <area> controlled by <player> has X amount of energy
Action- Cast <spell> in <area Z> (where area Z is the units current location)
Thats a very rough draft of what the trigger should look like. You might want to change the event pending on how your map functions and how your unit gains energy.
Make an ability effect-instant called "build spider mine at current lactation". Make an effect- create unit to go along with it. Have the ability auto cast.
Thank you silvermage! It worked like a charm. I only was thinking about the data editor and I didn't even consider a trigger to do what I wanted. Thank you again!
Grenegg, thanks for your time, but there are 2 things I just don't understand about the editor: actors and effects. Silver's was much easier for me.