Locking a Trigger Ability to a Unit.

Husky

Local Lurker
Reaction score
119
Hi,
Ok, I have an ability which is used via triggers. It increases a units Line of Sight for like 10 seconds. This is the trigger:
Code:
Keen Eye
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to Keen Eyes 
    Actions
        Visibility - Create an initially Enabled visibility modifier for (Owner of (Triggering unit)) emitting Visibility from (Position of (Triggering unit)) to a radius of 2100.00
        Wait 8.00 seconds
        Visibility - Disable (Last created visibility modifier)

The problem is this casts over the unit but if the unit moves the reveal doesn't follow him.
So pretty much, is there anyway to lock this onto the unit?
Thanks,
-Husky
 
imo edit far sight ability and give it to your unit will be more easier
 
Far sight is not an auto-cast ability (as in when you click it, it just automatically engages). So that won't work, i've tried it...
 
then create a new trigger call it as someting like "keen eye loop" but it must be initially off.

create a variable that holds your unit which is casting this ability

and
Code:
Keen Eye
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to Keen Eyes 
    Actions
        set variable = triggering unit
        run your new trigger keen eye loop

then in keen eye loop

Code:
   Events
       each bla bla time
   Conditions
       -none-
   Actions
        Visibility - Create an initially Enabled visibility modifier for (unit in variable) emitting Visibility from (Position of (unit in variable)) to a radius of 2100.00
        Wait 0.5 seconds
        Visibility - Disable (Last created visibility modifier)
        loop that about 8 seconds

you can also create nice lightining effects or a kinda flashing screen this will not lock and will not what you want but can be a smilation which enables nice customising

hope that helps
 
I need more details on what Variable you are using, is it Visiblilty Modifier?

And where you said: Every bla bla bla time, how many is this?

Thanks,
-Husky
 
Hmm hold on I might not need an Variable for this if I just loop it...
 
I was to lazy to fo your way, here's mine...
Code:
Keen Eye
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to Keen Eyes 
    Actions
        Visibility - Create an initially Enabled visibility modifier for (Owner of (Triggering unit)) emitting Visibility from (Position of (Triggering unit)) to a radius of 2100.00
        Wait 0.50 seconds
        Visibility - Disable (Last created visibility modifier)
        Wait 0.01 seconds
        Visibility - Create an initially Enabled visibility modifier for (Owner of (Triggering unit)) emitting Visibility from (Position of (Triggering unit)) to a radius of 2100.00
        Wait 0.50 seconds
        Visibility - Disable (Last created visibility modifier)
        Wait 0.01 seconds
        Visibility - Create an initially Enabled visibility modifier for (Owner of (Triggering unit)) emitting Visibility from (Position of (Triggering unit)) to a radius of 2100.00
        Wait 0.50 seconds
        Visibility - Disable (Last created visibility modifier)
        Wait 0.01 seconds
        Visibility - Create an initially Enabled visibility modifier for (Owner of (Triggering unit)) emitting Visibility from (Position of (Triggering unit)) to a radius of 2100.00
        Wait 0.50 seconds
        Visibility - Disable (Last created visibility modifier)
        Wait 0.01 seconds
        Visibility - Create an initially Enabled visibility modifier for (Owner of (Triggering unit)) emitting Visibility from (Position of (Triggering unit)) to a radius of 2100.00
        Wait 0.50 seconds
        Visibility - Disable (Last created visibility modifier)
        Wait 0.01 seconds
        Visibility - Create an initially Enabled visibility modifier for (Owner of (Triggering unit)) emitting Visibility from (Position of (Triggering unit)) to a radius of 2100.00
        Wait 0.50 seconds
        Visibility - Disable (Last created visibility modifier)
        Wait 0.01 seconds
        Visibility - Create an initially Enabled visibility modifier for (Owner of (Triggering unit)) emitting Visibility from (Position of (Triggering unit)) to a radius of 2100.00
        Wait 0.50 seconds
        Visibility - Disable (Last created visibility modifier)
        Wait 0.01 seconds
        Visibility - Create an initially Enabled visibility modifier for (Owner of (Triggering unit)) emitting Visibility from (Position of (Triggering unit)) to a radius of 2100.00
        Wait 0.50 seconds
        Visibility - Disable (Last created visibility modifier)
        Wait 0.01 seconds
        Visibility - Create an initially Enabled visibility modifier for (Owner of (Triggering unit)) emitting Visibility from (Position of (Triggering unit)) to a radius of 2100.00
        Wait 0.50 seconds
        Visibility - Disable (Last created visibility modifier)
        Wait 0.01 seconds
        Visibility - Create an initially Enabled visibility modifier for (Owner of (Triggering unit)) emitting Visibility from (Position of (Triggering unit)) to a radius of 2100.00
        Wait 0.50 seconds
        Visibility - Disable (Last created visibility modifier)
        Wait 0.01 seconds
        Visibility - Create an initially Enabled visibility modifier for (Owner of (Triggering unit)) emitting Visibility from (Position of (Triggering unit)) to a radius of 2100.00
        Wait 0.50 seconds
        Visibility - Disable (Last created visibility modifier)
        Wait 0.01 seconds
        Visibility - Create an initially Enabled visibility modifier for (Owner of (Triggering unit)) emitting Visibility from (Position of (Triggering unit)) to a radius of 2100.00
        Wait 0.50 seconds
        Visibility - Disable (Last created visibility modifier)
        Wait 0.01 seconds
        Visibility - Create an initially Enabled visibility modifier for (Owner of (Triggering unit)) emitting Visibility from (Position of (Triggering unit)) to a radius of 2100.00
        Wait 0.50 seconds
        Visibility - Disable (Last created visibility modifier)
        Wait 0.01 seconds
        Visibility - Create an initially Enabled visibility modifier for (Owner of (Triggering unit)) emitting Visibility from (Position of (Triggering unit)) to a radius of 2100.00
        Wait 0.50 seconds
        Visibility - Disable (Last created visibility modifier)
        Wait 0.01 seconds
        Visibility - Create an initially Enabled visibility modifier for (Owner of (Triggering unit)) emitting Visibility from (Position of (Triggering unit)) to a radius of 2100.00
        Wait 0.50 seconds
        Visibility - Disable (Last created visibility modifier)
        Wait 0.01 seconds
        Visibility - Create an initially Enabled visibility modifier for (Owner of (Triggering unit)) emitting Visibility from (Position of (Triggering unit)) to a radius of 2100.00
        Wait 0.50 seconds
        Visibility - Disable (Last created visibility modifier)
        Wait 0.01 seconds
        Visibility - Create an initially Enabled visibility modifier for (Owner of (Triggering unit)) emitting Visibility from (Position of (Triggering unit)) to a radius of 2100.00
        Wait 0.50 seconds
        Visibility - Disable (Last created visibility modifier)
        Wait 0.01 seconds
        Visibility - Disable (Last created visibility modifier)

Hey, it works :D :p.
Thanks anyway,
-Husky
 
Disable? Don't you want to destroy it?

Also, why not just some:
For Integer A 1 to 8
create ...
wait 1s
destroy

Much shorter :)


Although there must be a better way of doing this than visibility modifiers... hm.
 
Wait command does not works in loops

so it must be done like that

you can give a condition to your trigger like, if integer variable less then some number
you again need to have 2 triggers and you must set a variable to 0 on your main trigger which will be used on loop triggers condition

than make it like that:
Code:
Keen Eye loop
    Events
    Conditions
        (integer variable) less or equal to (some number) 
    Actions
        Visibility - Create an initially Enabled visibility modifier for (Owner of (Triggering unit)) emitting Visibility from (Position of (Triggering unit)) to a radius of 2100.00
        Wait 0.50 seconds
        Set (integer variable)= (integer variable) + 1
        trigger run (this trigger) with cehecking conditions
 
It does work I've tried it the only noticable error is a blink from when it disables then enables again.
 
husky_003 said:
It does work I've tried it the only noticable error is a blink from when it disables then enables again.

In my opinion this will be a nice effect if you compare it with spetial effects this will have a sense that the ability is more than a simple sight ability
 
AceHart said:
> Wait command does not works in loops

They don't inside "pick every ...".
There's no problem with "for ...".

:eek:
OMG
TY very much idid not know that
oh god i did too much work becouse of this :(
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Varine Varine:
    It's an unnecessarily long and just not that good of a cord. Falls out of the little clip I put it in.
  • Varine Varine:
    And yeah I was working. It was a suprisingly good weekend, I didn't run out of anything until today and had most of resolved. I think the only thing I didn't have some solution for was halibut, but in my defense I got 45 pounds or something last Thursday. It took me like an hour and a half at the end of the night.
  • Varine Varine:
    Today I had to scramble, I didn't work most of dinner service and no one told me shit. They had a rough few hours lol
  • Varine Varine:
    I have two salmon, Sockeye and Atlantic. Atlantic is used for the kids salmon and the salmon and beet salad, and can also be added onto any dish or just as a side. Atlantic salmon will almost exclusively ever be FARMED, as it is endangered in the wild, and we ALWAYS cut them to 4 ounces.
  • Varine Varine:
    SOCKEYE salmon, very different and this IS wild caught. We have an ENTREE version, and an add on version. The entree is 7 ounces, the add on is 4. Why? Because that is how someone that wasn't me set up the computer.
  • Varine Varine:
    I had to have this conversation like ten fucking times tonight
  • Varine Varine:
    The issue being, I came into work and had none of this whatsoever
  • Varine Varine:
    No one told me shit
  • Varine Varine:
    So, taking into consideration that what I typed out up there is kind of some fucking nonsense that under normal circumstances no one really needs to fucking be able to explain in any rational way
  • Varine Varine:
    Let alone trying to figure it out from a wildly stressed out me that is also on a phone call trying to get something to show up from Seattle tomorrow while trying to explain this salmon situation, that also is barely solved in maybe a few hours and and but I am bulking it with a few steelhead filets I have and that is a WHOLE fucking different thing to the 19 year old server that got put on day shift C crew that doesn't know who I am.
  • Varine Varine:
    I did however really want days. I like getting off at 4 half the time, and that makes it worth it!
  • Varine Varine:
    Also I hate my job right now but I think that was the hard part. Now it's just work
  • Varine Varine:
    @jonas I'm sorry? I don't know what you're referring to.
  • Varine Varine:
    Once we hit winter I feel like I get to back to having a pretty cool job. Like I bitch about it all the time, but it's work. I'm still gonna bitch
  • Varine Varine:
    All in all though I think this summer is going really well. Some complicated things, but at the end of the day it isn't THAT big of a deal. Not all of our servers have quite realized they are technically sales
  • Varine Varine:
    Like yeah it is a substitute, but FOMO. Chef isn't getting this again this year, he has to figure it out, so it's slightly off on the menu, but that is more or less the LOWEST quality and price. Right now, steelhead is a real stealhear, right?
  • Varine Varine:
    Like fuck off even I can do it
  • Varine Varine:
    I am going to get one of my servers to do that in her server voice and you'll see my point
  • Varine Varine:
    Maybe the bartender. Idk, it's one of my favorite things to hear them go from calm to customer service voice. They will translate it to like "The chef is trying to change that a bit right now so he does have a Alaskan river steelhead. Yeah like the one you might fish probably!" And then the girls can bat their eyes and do pretty girl server shit
  • Varine Varine:
    At least that's how imagine some of them. Did you know mayonnaise is dairy free? A suprisingly amount of people don't\
  • The Helper The Helper:
    mayo is eggs right?
  • The Helper The Helper:
    Seems I never watched the Witcher - looks like i have a lot of content
  • The Helper The Helper:
    Season 1 Episode 8 the marathon continues...
  • jonas jonas:
    mayo is eggs & oil
    +1
  • The Helper The Helper:
    I got halfway season 2 on The Witcher and it lost me. I am going to have to pick this one up again later.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials
      Top