I want to trigger a unit to cast an ability when it's created

B

blackpride3

Guest
Is this possible? If so, how?

The only way I've found is 'Unit - Issue Order'

but I can only choose from a very limited amount of presets. Thanks in advance!!<3<3
 

Sooda

Diversity enchants
Reaction score
318
Create unit, order 'Last Created Unit' to cast <whatever ability here> to <your target>. All your custom abilities use order strings from what they where based off of first place. It is different story with item abilities. Use forum search ?
 
D

DemonSlayeR\

Guest
but if you do create unit it will create one for you. is there a way to make it so when a specific unit is created the ability is cast.?(without creating it with the trigger?)
 

neckface

terrain contest winner! :) dance contest loser. :(
Reaction score
34
Create unit, order 'Last Created Unit' to cast <whatever ability here> to <your target>. All your custom abilities use order strings from what they where based off of first place. It is different story with item abilities. Use forum search ?

for example, if you've based the custom abil off of starfall, the command would be

Code:
order <unit> to <nightelfpriestessofthemoon starfall>
 

Malice-

Endlessly Known
Reaction score
34
for example, if you've based the custom abil off of starfall, the command would be

Code:
order <unit> to <nightelfpriestessofthemoon starfall>

Neither of these explanations are very clear to someone who is new to triggering. Not saying they are bad, but, are these 'order' commands found in GUI? Or are they custom JASS scripts? Can you be a bit more specific?
 
B

blackpride3

Guest
for example, if you've based the custom abil off of starfall, the command would be

Code:
order <unit> to <nightelfpriestessofthemoon starfall>



What is breath of fire based off of then? It's not there as itself. Impale? lol
 

Estel3

New Member
Reaction score
6
Breath of Fire...

You are most likely looking at Issue Order with No Target. Look for targeting a point.
 

Malice-

Endlessly Known
Reaction score
34
Might as well tack this question to this thread:

Is it possible to issue a created unit the order to cast a custom ability?
 
B

blackpride3

Guest
Ah figured it out. Thanks all!!

Malice: Let's say a unit has a custom ability based off of Breath of Fire. You just have your last created unit use breath of fire and world editor will tag it with your custom ability for your last created unit.
 

N2o)

Retired.
Reaction score
51
I have a way of doing it with a unit that is trained via a building:
Code:
Trigger
    Events
        Unit - A unit Finishes training a unit
    Conditions
        (Unit-type of (Trained unit)) Equal to *YourUnitType*
    Actions
        Unit - Order (Trained unit) to etc. etc. etc.
This would make it cast the spell as soon as it was created, but the only way you can make a unit use a spell without triggering in battle would be to have it be controlled by an AI.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top