HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

need help with Spell Enhancer

08-25-2004, 06:12 PM#1
hitman_forever
How can i do for when a spell is charging, if the hero moves, the spell is canceled, cuz when i move the hero, the special effects comes too, and i need a tip to makes the special effects canceled... (spell created with trigger editor)
08-25-2004, 07:49 PM#2
sweet5
base it off of a channeling spell
08-25-2004, 07:51 PM#3
hitman_forever
Ok, thanks, i will try, and tomorrow, i will reply... good night ! :8
08-25-2004, 08:08 PM#4
Vexorian
also To detect when it stops on the triggers use A unit stops casting an ability, you can use a system like everytime a unit starts the effect of an ability, its custom value is set to 1. and when it stops its custom value becomes 0 , and that way you can check if it is still channeling
08-26-2004, 10:29 AM#5
hitman_forever
I'm understanding, but can you explain more deep please...

When the hero stop when channeling, the remaining special effects goes on the middle on the map...
What trigger name must i use? can you make a quick :

-event :..
-condition :...
-action :...
09-01-2004, 04:10 PM#6
duckduck
Heres a way to do it

Trigger 1
Code:
Event
  Unit begins casting an abiliy

Condition
  Ability being cast = (ability)

Action:
  Trigger Turn on Trigger 2
  Move Region <gen> to casting unit (put a region here[make it small enough for the hero to fit in])
  (Rest of the actions that will be here)

Trigger 2
Code:
Event:
 Unit leaves region <gen> (put a region here[make it small enough for hte hero to fit in])

Condition:
 Leaveing unit = (casting hero)

Action:
 Trigger Turn off this trigger
 Trigger Clear actions in trigger 1
 Wait 1 second
 Trigger restore Trigger 1
09-01-2004, 05:04 PM#7
Vexorian
Quote:
Originally Posted by duckduck
Heres a way to do it

Trigger 1
Code:
Event
  Unit begins casting an abiliy

Condition
  Ability being cast = (ability)

Action:
  Trigger Turn on Trigger 2
  Move Region <gen> to casting unit (put a region here[make it small enough for the hero to fit in])
  (Rest of the actions that will be here)

Trigger 2
Code:
Event:
 Unit leaves region <gen> (put a region here[make it small enough for hte hero to fit in])

Condition:
 Leaveing unit = (casting hero)

Action:
 Trigger Turn off this trigger
 Trigger Clear actions in trigger 1
 Wait 1 second
 Trigger restore Trigger 1
Err, moving a region won't change the already registered events, and the only thing you need is the A unit stops casting an ability event