Make units Cast a spell

mariopoop

New Member
Reaction score
1
Hi, i was wondering how to make a unit (mabye autocast if it works) cast the spell taunt itself, without the player having to click on it or select it. The unit i made also doesnt deal damage for some reason. i made it have the ability "goblin mine (bigmine)" or something like that.:banghead:


i have tried soooo hard and it does not work!:mad:

Anyway heres how the spell works in case anyone wants to know.:rolleyes:
:p
Description: the goblin trickster summons a moving landmine that is disguised as a chicken. it automatically wanders and induces nearby enemies to attack it (here is the auto taunt part).:D

level 1 stats:
400 radius
100 full damage (chaos)

level 2:
500 radius
200 full damage (chaos)

Level 3:
600 radius
300 full damage (chaos)



Thanks to anyone who can help me!



:confused:
 

Murre

New Member
Reaction score
14
Make a periodic time trigger, which triggers ~each 0.5 seconds. Then either change the "Activate/Turn On ID" to something like "stormbolt" or whatever, then use "Order unit to 'Mountain King - Storm Bolt', if that doesn't work: (still periodic time trigger)
set <unit group variable> units within range of chicken)
pick every unit in <unit group variable> and do actions
loop
Order unit to attack chicken


I hope you understood, had to rush it a bit since I have to finish a book report for tomorrow :p
 

werasd

New Member
Reaction score
14
Create two triggers. The one that will make the auto taunt is initially off. Make also a Unit Variable.

Trigger:
  • Untitled Trigger 001
    • Events
      • Time - Every 0.05 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Blizzard for taunthero) Equal to 1
        • Then - Actions
          • Unit Group - Pick every unit in (Units within 400.00 of (Position of taunthero)) and do (Actions)
            • Loop - Actions
              • Unit - Order (Picked unit) to Attack taunthero
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Blizzard for taunthero) Equal to 2
            • Then - Actions
              • Unit Group - Pick every unit in (Units within 500.00 of (Position of taunthero)) and do (Actions)
                • Loop - Actions
                  • Unit - Order (Picked unit) to Attack taunthero
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Level of Blizzard for taunthero) Equal to 3
                • Then - Actions
                  • Unit Group - Pick every unit in (Units within 600.00 of (Position of taunthero)) and do (Actions)
                    • Loop - Actions
                      • Unit - Order (Picked unit) to Attack taunthero
                • Else - Actions
                  • Do nothing

Trigger:
  • Untitled Trigger 002
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Human Archmage - Blizzard
    • Actions
      • Set taunthero = (Triggering unit)
      • Trigger - Turn on Untitled Trigger 001 &lt;gen&gt;
 
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