I am fairly confident I know why this is not working properly but here is the issue and trigger:
I have tried various ways, but no matter what I do, it always casts the spell and it does not properly check to see if I have the required item or creates a whole new problem.
The biggest problem thought, is that it always casts the spell, deducts the mana, and puts it on cool down.
THANK YOU FOR ANY HELP.
I never know what to base custom spells off of and I keep using channel for everything. That usually works but Is/Has created various issues. All the guides I see tell you how to make X, or make X do X etc. They never really tell you what to use as the base spell, or what spell to use for what situation. Any guides that specifically cover this or can anyone offer some answers. Specifically, I need DoT's, item related spells, single tick heals (like in MMO's, cast heal - heal gives 300 health / cast greater heal - heal gives 800 health) and so on.
-
Create Health Potions
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Health Potion
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Triggering unit) has an item of type Empty Vial) Equal to True
-
-
Then - Actions
-
Item - Remove (Item carried by (Triggering unit) of type Empty Vial)
-
Set Temp_Point = (Position of (Triggering unit))
-
Special Effect - Create a special effect at Temp_Point using Abilities\Spells\Human\Invisibility\InvisibilityTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Custom script: call RemoveLocation (udg_Temp_Point)
-
Hero - Create Health Potion and give it to (Triggering unit)
-
-
Else - Actions
-
Game - Display to (All players controlled by a ((Owner of (Triggering unit)) controller) player) the text: I am missing reagen...
-
-
-
-
I have tried various ways, but no matter what I do, it always casts the spell and it does not properly check to see if I have the required item or creates a whole new problem.
The biggest problem thought, is that it always casts the spell, deducts the mana, and puts it on cool down.
THANK YOU FOR ANY HELP.
I never know what to base custom spells off of and I keep using channel for everything. That usually works but Is/Has created various issues. All the guides I see tell you how to make X, or make X do X etc. They never really tell you what to use as the base spell, or what spell to use for what situation. Any guides that specifically cover this or can anyone offer some answers. Specifically, I need DoT's, item related spells, single tick heals (like in MMO's, cast heal - heal gives 300 health / cast greater heal - heal gives 800 health) and so on.