Ability Help - Sovereign Howl

wc3shady

You can change this now in User CP.
I'm making an ability called Sovereign Howl for a unit who is permanently invisible except when attacking. Anyways, the ability effects enemy units within 600 range, and forces them to move to wherever the casting unit is in 10 seconds. Here's my trigger, but whenever I try to use it it doesn't work:


Trigger:
  • Sovereign Howl
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Sovereign Howl
    • Actions
      • Set SovereignHowlUnit = (Casting unit)
      • Unit Group - Pick every unit in (Units within 600.00 of (Position of SovereignHowlUnit)) and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Stop
          • Trigger - Run Sovereign Howl Variables <gen> (checking conditions)
          • Wait 10.00 seconds
          • Unit - Order (Picked unit) to Move To SovereignHowlLocation
          • Do nothing



and also:


Trigger:
  • Sovereign Howl Variables
    • Events
    • Conditions
    • Actions
      • Wait 9.90 seconds
      • Set SovereignHowlLocation = (Rally-Point of SovereignHowlUnit as a point)


EDIT

Also, MUI is hard for me - is this MUI? If not, how could it become MUI?
 

perkeyone

something clever
i dont think it is mui

use [noparse]
Trigger:
[/noparse] tags instead of [noparse]
PHP:
[/noparse] tags

to make it mui you might have to change most of your variables to arrays
ill edit this with more info in a second

Trigger:
  • Sovereign Howl
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Sovereign Howl
    • Actions
      • Set mui = mui + 1
      • If mui > 50
        • Set mui = 1
      • Set SovereignHowlUnit[mui] = (Casting unit)
      • Set castpoint[mui] = position of SovereignHowlUnit
      • Set targets[mui] = units within 600.00 of castpoint
      • Wait 10.00 seconds
      • For every integer A from 1 to 50
        • If SovereignHolwUnit[integer A] equal to (casting unit)
          • set temp_int = integer A
      • Unit Group - Pick every unit in targets[temp_int] and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Stop
          • Unit - Order (Picked unit) to Move To SovereignHowlLocation[integer A]


i think that should work
i did it free hand though
 

wc3shady

You can change this now in User CP.
Hey thanks, yeah about the PHP thing I couldn't remember what the trigger tags were so I figured PHP would work.

I'll go try your trigger out - thanks again!

+rep
 

wc3shady

You can change this now in User CP.
OK I tried your trigger, it didn't work. I messed around with the trigger some more, but it didn't work.

This is what I got:
Trigger:
  • Sovereign Howl
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Sovereign Howl
    • Actions
      • Set mui = (mui + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • mui Greater than 50
        • Then - Actions
          • Set mui = 1
        • Else - Actions
      • Set SovereignHowlUnit[mui] = (Casting unit)
      • Set SovereignHowlCastPoint[mui] = (Position of SovereignHowlUnit[mui])
      • Set SovereignHowlTargets[mui] = (Units within 600.00 of SovereignHowlCastPoint[mui])
      • Wait 10.00 seconds
      • For each (Integer A) from 1 to 50, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • SovereignHowlUnit[(Integer A)] Equal to (Casting unit)
            • Then - Actions
              • Set temp_int = (Integer A)
            • Else - Actions
      • Unit Group - Pick every unit in SovereignHowlTargets[temp_int] and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Stop
          • Unit - Order (Picked unit) to Move To SovereignHowlLocation[(Integer A)]


Thanks
 

CaptDeath

New Member
why wait why not change
Unit - A unit Starts the effect of an ability
to
Unit - A unit Finishes casting an ability
and have cast time 10 secs
 

Emu.Man00

New Member
Why don't you replace (casting unit) with SovereignHowlUnit[mui] if its the same thing?

ALSO:

Trigger:
  • Unit - Order (Picked unit) to Move To SovereignHowlLocation[(Integer A)]


Integer A is null. You want temp_int or you need to make a new loop.
 

wc3shady

You can change this now in User CP.
Tried it. Didn't work. I'll repost trigger:
Trigger:
  • Sovereign Howl
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Sovereign Howl
    • Actions
      • Set mui = (mui + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • mui Greater than 50
        • Then - Actions
          • Set mui = 1
        • Else - Actions
      • Set SovereignHowlUnit[mui] = (Casting unit)
      • Set SovereignHowlCastPoint[mui] = (Position of SovereignHowlUnit[mui])
      • Set SovereignHowlTargets[mui] = (Units within 600.00 of SovereignHowlCastPoint[mui])
      • Wait 10.00 seconds
      • For each (Integer A) from 1 to 50, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • SovereignHowlUnit[(Integer A)] Equal to SovereignHowlUnit[mui]
            • Then - Actions
              • Set temp_int = (Integer A)
            • Else - Actions
      • Unit Group - Pick every unit in SovereignHowlTargets[temp_int] and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Stop
          • Unit - Order (Picked unit) to Move To SovereignHowlLocation[temp_int]
 

perkeyone

something clever
Trigger:
  • Sovereign Howl
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Sovereign Howl
    • Actions
      • Set mui = (mui + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • mui Greater than 50
        • Then - Actions
          • Set mui = 1
        • Else - Actions
      • Set SovereignHowlUnit[mui] = (Casting unit)
      • Set SovereignHowlCastPoint[mui] = (Position of SovereignHowlUnit[mui])
      • Set SovereignHowlTargets[mui] = (Units within 600.00 of SovereignHowlCastPoint[mui])
      • Wait 10.00 seconds
      • For each (Integer A) from 1 to 50, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • SovereignHowlUnit[(Integer A)] Equal to <span style="color: Lime">triggering unit</span>
            • Then - Actions
              • Set temp_int = (Integer A)
            • Else - Actions
      • Unit Group - Pick every unit in SovereignHowlTargets[temp_int] and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Stop
          • Unit - Order (Picked unit) to Move To SovereignHowlLocation[temp_int]

this should work...
just make little display messages to double check.
[freehand]
game - display string(unit type of (picked unit)) to all players

if you add this into the last loop you will see that it does in fact correctly pick units
i think the problem is something else
if your spell does damage then the units will try to attack you.
also ordering the units to stop does not make them stay still.
maybe you should consider "hold position" or "pause"
i dont know what effect you are looking to achieve so all i can do is guess
 

wc3shady

You can change this now in User CP.
Well this trigger hasn't been working, so I'm trying a new approach.

But, alas, it still no luck:
Trigger:
  • Sovereign Howl
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Sovereign Howl
    • Actions
      • Set mui = (Number of units in (Units within 600.00 of (Position of (Casting unit))))
      • Set SovereignHowlUnit[mui] = (Casting unit)
      • Unit Group - Pick every unit in (Units within 600.00 of (Position of SovereignHowlUnit[mui])) and do (Unit Group - Add (Picked unit) to SovereignGroup[mui])
      • Unit - Create 1 InfiniteDummy [Sovereign Howl] for (Owner of (Casting unit)) at (Position of SovereignHowlUnit[mui]) facing Default building facing degrees
      • Set SovereignDummy[mui] = (Last created unit)
      • Unit Group - Pick every unit in SovereignGroup[mui] and do (Unit - Order (Picked unit) to Hold Position)
      • Wait 10.00 seconds
      • Set SovereignHowlLocation[mui] = (Position of SovereignHowlUnit[mui])
      • Unit - Order SovereignDummy[mui] to Night Elf Mountain Giant - Taunt
      • Unit - Order SovereignDummy[mui] to Night Elf Warden - Blink SovereignHowlLocation[mui]
      • Unit - Add a 20.00 second Generic expiration timer to SovereignDummy[mui]


Maybe I'm missing something?
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    but yeah man you should come to Houston there is so much more opportunity here than San Antonio. Just look at all the homeless people on the Riverwalk and downtown there you cannot even walk down the street without getting mobbed them
  • The Helper The Helper:
    check out this place apparently it is the best roommate site out there roommates.com lol
  • Varine Varine:
    The homeless people reminded me of New York
  • Varine Varine:
    I'll check it out, my lease expires in like a few months so I need to figure something out.
  • Varine Varine:
    I tried to open a food truck in Sandpoint a few years ago but the city said no, then like two years later they passed new laws to encourage it and gave them all fucking tax breaks and shit. And at that point I didn't have enough money to go buy one so I was way too late to the game once other cities realized they could just bring their existing truck there, or sell their brick and mortar.
  • Varine Varine:
    I do like food trucks though, they're way more fun than restaurants and usually I also get some of that tip money there.
  • Varine Varine:
    Restaurants are really hard if you don't have a back up source of income to fund them sometimes, in my experience most owners either got really really lucky, had existing money that allowed them to buy an already successful one, or they have family money to fall back on for loans. It's few and far between to see very inspiring success stories where the person actually got it through hard work and perseverance. I thought about opening one lots and I always just end up not thinking it'll work. I would much rather just find someone that has that money and go work for them
  • The Helper The Helper:
    i am not talking about opening a brick and mortar I am talking about food trucks though I have seen some brick and mortar mexican places open up during covid that are doing good because there food is awesome!
  • The Helper The Helper:
    Food trucks are killing out here because Bars cannot open unless they sell food and the governor ok'd the use of a food truck in front as serving food
  • The Helper The Helper:
    Just not enough food trucks
  • The Helper The Helper:
    a buddy of mine just opened up a food truck and he is killing it but he is a great cook and has awesome food right in the middle of the pandemic too food trucks are immune to pandemic because they are take out in Texas you will always be able to get take out or delivery
  • The Helper The Helper:
    He is in the different food facebook groups in houston and posts videos of him making his food
  • The Helper The Helper:
    he is killing it
  • jonas jonas:
    @Varine with the restaurants, there surely is a lot of luck and hard work but most restaurants fail because they suck. Flair isn't right, economics not well thought through, food is mediocre or sucks, location is bad, etc. If you're thinking about opening one, make sure you're looking at the stories of those that would be playing at your level, don't let your hopes be dragged down by all the subpar restaurants out there.
  • jonas jonas:
    I'm a bit worried about the future of data science, there's an influx of incompetent people hired by incompetent managers, that can't last. But I'm sure smart data scientists will always be useful and hireable. Same as smart security people.
  • jonas jonas:
    My sister in law worked in a vegan food truck, the owners were also making a killing, added several trucks and opened two restaurants over 5 years
  • Ghan Ghan:
    The CompTIA stuff is pretty much crap unfortunately. The places that ask for those low-level certs aren't likely places you want to work. For IT you really want a degree, but in the meantime you need to figure out some way to learn the skills. Cybersecurity is really hot right now so competition is fierce.
  • tom_mai78101 tom_mai78101:
    I realized I don't have anything much to say, other than "Good luck!". Compared to other places, I'm just very lucky we didn't have a lot of surges of cases coming in.
  • The Helper The Helper:
    My daughter just got back from school at Georgetown TX, outside of Austin and said there were 100 cases in the last week but she also said nobody was wearing a mask anywhere so people mask up and stay safe!
    +2
  • thewrongvine thewrongvine:
    happy thanksgiving folks!
    +1
  • Ralle Ralle:
    PLOOB
  • Varine Varine:
    @Gyah Yeah I figured they aren't particularly valuable, but they'll at the least act as a baseline for some entry level work somewhere.
  • Varine Varine:
    I now see how horribly I spelled @Ghan
  • Varine Varine:
    I had a rough morning
  • The Helper The Helper:
    that field is going to explode and though there is competition there is going to be room for all levels in the coming years imho.

    Members online

    No members online now.

    Affiliates

    Hive Workshop
    Top