Unit Autocast Every Few Seconds In Certain Area?

brodygs9630

TH.net Regular
Reaction score
6
I want to make an area for my maze where you are in a narrow hallway and you want to get to the end. But to make it hard, you have to avoid the shockwave spell that is casted down the middle every few seconds. How do I make it so that a unit casts the shockwave spell every few second down a certain point?
 

hgkjfhfdsj

Active Member
Reaction score
55
- a unit
is the unit preplaced or does it spawn during an event
- a certain point
so the map is divided in regions?
- maze
assumes that this trigger is only needed when a unit is around >> (A Unit Enters <Region>)

Sample Template +leak etc
Trigger:
  • trig
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Unit - Create 1 Dummy for Neutral Passive at &lt;Position of (preplaced unit)&gt; facing Default building facing degrees
      • Unit - Add Shockwave to (Last created unit)
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave (&lt;Region&gt;)
 

brodygs9630

TH.net Regular
Reaction score
6
- a unit
is the unit preplaced or does it spawn during an event
- a certain point
so the map is divided in regions?
- maze
assumes that this trigger is only needed when a unit is around >> (A Unit Enters <Region>)

Sample Template +leak etc
Trigger:
  • trig
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Unit - Create 1 Dummy for Neutral Passive at &lt;Position of (preplaced unit)&gt; facing Default building facing degrees
      • Unit - Add Shockwave to (Last created unit)
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave (Picked unit)
I've decided that a region will cast the shockwave targeting another region, how would I do this? I don't get the above example >.< And yes, it's when a unit enters a region. :D I'm making it so that the players will have to hide in holes on the side of the hallway, so if they don't move in time, the shockwave will hit them.
 

hgkjfhfdsj

Active Member
Reaction score
55
- a region will cast the shockwave targeting another region
dummy can be invisible and can act as the region

the trigger> every 1s create/order an invisible unit in a region to cast shockwave to another region
 

brodygs9630

TH.net Regular
Reaction score
6
How exactly do I create a dummy? Also, I can't find Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave (Picked unit)
 

hgkjfhfdsj

Active Member
Reaction score
55
Unit - Add Spell Name to (Last created unit)
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Order String of Spell <Region>

Daelin's tutorial should cover what is needed to make basic GUI triggered spells, esp dummy section and trigger-by-trigger & explanation/reasons
 

brodygs9630

TH.net Regular
Reaction score
6
How do I do the last event? It only gives me certain options for only some of the unit spells such as far seer- chain lightning and summons. :( Does it have to be a hero ability?
 

Chaos_Knight

New Member
Reaction score
39
How do I do the last event? It only gives me certain options for only some of the unit spells such as far seer- chain lightning and summons. :( Does it have to be a hero ability?

The Order unit to Orc Far Seer - Chain Lightning is a very Generic thing.
If your Custom Ability you want to be casted, and its based on, in this time "ShockWave".
Then you have to use Tauren Chieftain - SHockwave <Region input Here>
 

Chaos_Knight

New Member
Reaction score
39
Ok, thanks everyone, gonna go test right now! :D

EDIT: Not working =(

What doesnt work?

I make the code.

Trigger:
  • SFXS
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Unit - Create 1 &quot;YourUnit&quot; for Player 1 (Red) at (Your Position) facing Default building facing degrees
      • Unit - Add &quot;YourSpell-Shockwave&quot; to (Last created unit)
      • Unit - Order (Last created unit) to Undead Dreadlord - Shockwave (YourPosition)


Simple. Leaks but what the hell..
 

brodygs9630

TH.net Regular
Reaction score
6
What doesnt work?

I make the code.

Trigger:
  • SFXS
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Unit - Create 1 &quot;YourUnit&quot; for Player 1 (Red) at (Your Position) facing Default building facing degrees
      • Unit - Add &quot;YourSpell-Shockwave&quot; to (Last created unit)
      • Unit - Order (Last created unit) to Undead Dreadlord - Shockwave (YourPosition)


Simple. Leaks but what the hell..
Still not working for some reason, shockwave isn't being casted. :banghead:
 

hgkjfhfdsj

Active Member
Reaction score
55
check mana cost/casting range/requirements etc
this is covered in daelin's tutorial under dummy> i suggest you read it, its really helpful :)
 

brodygs9630

TH.net Regular
Reaction score
6
check mana cost/casting range/requirements etc
this is covered in daelin's tutorial under dummy> i suggest you read it, its really helpful :)

Ok, I'll go check out and try to fix. :thup:

EDIT: YEA! I got it! :D Thanks for all your help! :) Now if only I could get the angle right lol.
 
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