Auto cast ability, Like on Legion TD.

ZeeVampire

New Member
Reaction score
1
How do I make an autocast ability like the one on Legion TD? When you click on the king, you can see that his 1st skill has green dots or whatever, and it says
"autocast on." How do I make that? Because I want to add it to units that enter the map. I want something like...

Trigger:
  • Events
    • Unit - A unit enters (Playable map area)
    • Conditions
    • (Unit-type of (Entering unit)) Equal to (My unit)
    • Actions
    • Add (autocast) to entering unit.
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
do you have something like this in mind:
Trigger:
  • Unit - Order (Triggering unit) to Human-Priest - 'Heal' activate
 

ZeeVampire

New Member
Reaction score
1
No... it's complicated.

Like, in my map, you can play normally and deploy units. But also I can type "-fun." In this fun mode it creates units that can be created in normal mode. So if I did what you just said, then in normal mode, they will autocast when I don't want them to. So I need something else.
 

SayNoToWar

Member
Reaction score
3
Cant you just set a bool-variable when you say -fun? Then if a unit enters the game you check if -fun has been activated and if it has been activated you activate autocast too. If it was not activated the bool is still false and autocast will not be activated.:thup:
 

ZeeVampire

New Member
Reaction score
1
Yeah but I need to know how to make the autocast ability FIRST.

I've found out that SOMETIMES the units cast the spells themselves, mostly when they are 50% hp though.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top