• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Help with a spell

Status
Not open for further replies.
Level 7
Joined
Jul 12, 2008
Messages
295
I need help with a spell so when i cast it treants to circle the targeted unit so the targeted unit cannot escape from its location
 
äm i think you must create 1 more variable with an interger and 1 variable with an destruktibel and then do like this

  • Aktionen
    • Set temploc = (Target point of ability being cast)
    • For each Integer A from 1 to 10 do
      • Destructible - Create 1 *Destructible* at temploc offset by x towards ((x + 36) degrees) degrees
      • Set x = x + 36
      • Set tree_counter = (tree_counter + 1)
      • Set tree[tree_counter] = (Last created destructible)
 
Last edited:
äm and at a experation timer to the units sorry that i dont post it in a trigger field because i dont know how i can post it in a trigger field^^
it's simple; just use the 'trigger'-tags (
folder.gif
) on your actual trigger (advanced replay)
 
ok thx now i can post it
  • Aktionen
    • Set temploc = (Target point of ability being cast)
    • For each Integer A from 1 to 10 do
      • Set x = x + 36
      • Unit - Create 1 treant for (Owner of (Casting unit)) at temploc offset by x towards ((x + 36) degrees) degrees facing (Target point of ability being cast)
      • Unit - Add a 10.00 second Standard expiration timer to (Last created unit)
 
Last edited:
Status
Not open for further replies.
Back
Top