Control ability problems

  • Thread starter Thread starter Keiga
  • Start date Start date
K

Keiga

Guest
I am trying to make an ability that takes control of units in an area for a certain amount of seconds and for each one controlled the caster loses 10% of his max life. Here are my triggers.

Code:
Tidal Control
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to Tidal Control 
    Actions
        Set Targetedpoint = (Target point of ability being cast)
        Unit Group - Pick every unit in (Units within 800.00 of Targetedpoint matching ((((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True) and ((((Matching unit) is A Hero) Equal to False) and (((Matching unit) is A structure) Equal to False)))) and do (Actions)
            Loop - Actions
                Unit - Change ownership of (Picked unit) to (Owner of (Casting unit)) and Change color
                Set Unit = (Picked unit)
                Set PLAYER = (Owner of Unit)
                Wait 1.00 seconds
                Unit - Change ownership of Unit to PLAYER and Change color
For this one, I am able to take control, but it doesn't change back to the owner after the wait time.

Code:
Wid
    Events
        Unit - A unit Changes owner
    Conditions
        ((Ownership-changed unit) belongs to an enemy of (Owner of Legendary Tidal Dragon 0000 <gen>)) Equal to True
    Actions
        Unit - Set life of Legendary Tidal Dragon 0000 <gen> to ((Max life of Legendary Tidal Dragon 0000 <gen>) - ((Max life of Legendary Tidal Dragon 0000 <gen>) / 10.00))
        Unit - Set mana of Legendary Tidal Dragon 0000 <gen> to ((Max mana of Legendary Tidal Dragon 0000 <gen>) - ((Max mana of Legendary Tidal Dragon 0000 <gen>) / 10.00))
For this one nothing happens when the unit changes.

Please what are my mistakes? thanks
 
No idea, really.

But
"Unit - Change ownership of (Picked unit)"
followed by
"Set PLAYER = (Owner of Unit)"
makes that "Player" is now the new owner.
 
Keiga said:
For this one, I am able to take control, but it doesn't change back to the owner after the wait time.
That's because waits don't work in Pick actions.

Keiga said:
For this one nothing happens when the unit changes.
All that trigger does is, whenever a unit owned by an enemy of whoever owns the dragon, the dragon jumps to 90% health and mana. I doubt that's what you want.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Real users can't really disable Javascript anymore these days.
  • Ghan Ghan:
    The internet is broken without it.
  • Ghan Ghan:
    Bot readable, not human usable.
  • The Helper The Helper:
    got it
  • The Helper The Helper:
    Happy Thursday!
  • The Helper The Helper:
    Check out the new Featured Content feature we apparently got with the forum software upgrade! https://www.thehelper.net/featured/
  • The Helper The Helper:
    Also on the bottom right side bar we now have a Trending Content Box!
    +1
  • The Helper The Helper:
    Not on the Headline News page just on the Forums page can we get that Featured and Trending on the home page?
  • Ghan Ghan:
    Since the home page is technically a forum, it now shows on all forum views. Still in the sidebar.
    +1
  • The Helper The Helper:
    Happy Friday! Hope everyone has a fantastic day and an even better weekend!
  • The Helper The Helper:
    Happy Sunday!
  • The Helper The Helper:
    I lovc that I can post webp and X links now! :)
  • The Helper The Helper:
    Happy Thursday!
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
    +1
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +3
  • Wizard Wizard:
    lol
    +1

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top