• 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.

Casting abilities

Status
Not open for further replies.
Level 17
Joined
Feb 11, 2011
Messages
1,860
It depends on what casting method the spell has (e.g. unit or point target). Here are basic examples:

Unit Target:
  • Unit Target
    • Events
      • Time - Every 5.00 seconds of game time
    • Conditions
      • (Enemy_Unit is alive) Equal to True
      • (Target_Unit is alive) Equal to True
    • Actions
      • -------- Casts Chain Lightning on the target. --------
      • Unit - Order Enemy_Unit to Orc Far Seer - Chain Lightning Target_Unit
      • -------- ---------- ---------- --------
Point Target:
  • Point Target
    • Events
      • Time - Every 5.00 seconds of game time
    • Conditions
      • (Enemy_Unit is alive) Equal to True
    • Actions
      • -------- Set Temp_Point variable. --------
      • Set Temp_Point = (some point)
      • -------- Casts Blizzard at some point. --------
      • Unit - Order Enemy_Unit to Human Archmage - Blizzard Temp_Point
      • -------- Remove memory leak --------
      • Custom script: call RemoveLocation(udg_Temp_Point)
      • -------- ---------- ---------- --------
No Target:
  • No Target
    • Events
      • Time - Every 5.00 seconds of game time
    • Conditions
      • (Enemy_Unit is alive) Equal to True
    • Actions
      • -------- Casts War Stomp --------
      • Unit - Order Enemy_Unit to Orc Tauren Chieftain - War Stomp
      • -------- ---------- ---------- --------
Enemy_Unit is the unit that is casting the spell.
Target_Unit is the target unit of the unit target spell.
Temp_Point is a point variable used to prevent memory leaks.

Need any more explanations?
 
Status
Not open for further replies.
Top