• 0

    posted a message on Best way to handle units dying and giving a hero energy

    I got it!!! If anyone is interested this is what I came up with!

    THIS IS IT

    What a pain man! Its really hard to find what you want, even when its so simple.

    Thanks for the help!

    Posted in: Triggers
  • 0

    posted a message on Best way to handle units dying and giving a hero energy

    So i'm still having one last issue I need the event to go off when player 2's unit dies. The event I wrote above works when any unit dies. Any ideas?

    Posted in: Triggers
  • 0

    posted a message on Best way to handle units dying and giving a hero energy

    O WOW NVM

    you have to change the variable to real first, before you can see it..... SIGH

    I'm sorry, but that's really stupid unless you know that functions don't show unless they are being returned properly

    Posted in: Triggers
  • 0

    posted a message on Best way to handle units dying and giving a hero energy

    Where is this function?

    What I see

    This is all I see

    Posted in: Triggers
  • 0

    posted a message on Best way to handle units dying and giving a hero energy

    Hi everyone, I'm currently working on a map where I want a certain hero to gain energy when player 2 units die. What is the best way to handle this? So far I've come up with this:

    mine

    (in case link doesn't work: http:prntscr.com/7fupp5)

    So in the picture above I'm trying to grab the old energy level, and add to it, then set the hero's current energy. The only thing I'm lacking, is getting the current energy level on a unit, in this case Kerrigan. How do I get the current energy level of a unit? Does anyone have any ideas?

    Posted in: Triggers
  • 0

    posted a message on Making a unit attack with trigger

    Thanks guys! I'm happy that this forum is still active!

    I ended up fixing it up, as mentioned there were no triggers but I had been told that adding "Trigger - Run Units Attack (Ignore Conditions, Don't Wait until it finishes)" would make this run... Which it didn't so anyway, I just used a timer and came up with this:

    fix

    (in case that didn't work link http:prntscr.com/7fuicb)

    and its working like a charm.

    Thank you very much for the quick answers.

    Its for an application to a programming course, and I've decided to use the sc2 map editor a go. I've got one more question to ask the forum, I'll probably have to make a new thread.

    Posted in: Triggers
  • 0

    posted a message on Making a unit attack with trigger

    Can someone please help me with my problem, I have no idea why its not working. All I 'd like to do, is tell all the units belonging to a player to attack one thing or "A-move" towards a point. I used the following:

    http://prntscr.com/2gpe9m

    and added a trigger

    Trigger - Run Units Attack (Ignore Conditions, Don't Wait until it finishes)

    AND NOTHING HAPPENS. Not only that, but I can't select the point I've created. When I try to select the unit way point the list is blank. I'm super frustrated. I even tried to trigger an event on an object (since I can't use my point), all the units just stay still.

    I've even tried the following:

    WTF

    Events

    Timer - Every 1.0 seconds of Game Time

    Local Variables

    Conditions

    Actions

    Unit - Order Zealot [47.80, 73.29] to ( Attack targeting Rocks - 2x6 Vertical [38.00, 84.00]) (Replace Existing Orders)

    but I get the following error when I load up the map:

    Scri: Trigger Error in 'gt_WTF_Func': The ability command 'attack(0)' is missing a target? Near line 68 in gt_WTF_Func() in MapScript.Galaxy

    Why doesn't any of this work?

    Can anybody, please help me, I'm super desperate to get this done, it's for a school assignment, I'm really hoping this forum isn't dead.

    Thank you

    Posted in: Triggers
  • To post a comment, please or register a new account.