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

How to do : like in DotA ?

Status
Not open for further replies.
The simpliest way to do it is to take an ability like Immolation and register when a unit is issued the order to activate/desactivate it.
However, you can only do that whith non targeting spells.

In DotA, there are 2 spells, the normal one (Spell 1) which you learn as an hero spell, and an other (spell 2) which replaces the first one when you launch the blast. You can make spells replace each other with something like this :

  • Init
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Player - Desactivate Spell 2 for *Every player who can use the spell*
  • Launch spell
    • Events
      • Unit - A unit starts the effect of an ability
    • Conditions
      • (Ability being cast) equal to Spell 1
    • Actions
      • Player - Desactivate Spell 1 for Owner of (triggering unit)
      • Player - Activate Spell 2 for Owner of (triggering unit)
      • -------- Do what you want in the first step --------
  • End spell
    • Events
      • Unit - A unit starts the effect of an ability
    • Conditions
      • (Ability being cast) equal to Spell 2
    • Actions
      • Player - Desactivate Spell 2 for Owner of (triggering unit)
      • Player - Activate Spell 1 for Owner of (triggering unit)
      • -------- What happens with the second click --------
The hero is assumed to have both spells.
 
Last edited:
Status
Not open for further replies.
Top