P
polymorph
Guest
does anyone know how to make it so that you can only use an ability when you're not in combat
thanks~
POLYMORPH ROCKSSSS SHEEP
thanks~
POLYMORPH ROCKSSSS SHEEP
NonCombat Ability
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to (Your Ability)
(Number of units in (Units within (Your Distance) of (Position of (Casting unit)) matching (((Owner of (Matching unit)) is an enemy of (Owner of (Casting unit))) Equal to True))) Equal to 0
Actions
Unit - Order (Casting unit) to Stop
(Number of units in (Units within (Your Distance) of (Position of (Casting unit)) matching (((Matching player) is an enemy of (Owner of (Casting unit))) Equal to True))) Equal to 0
out of combat
events
unit - a unit begins casting an ability
conditions
(ability being cast) equal to stealth
number of units in (units within 500.00 of (position of (casting unit)) matching (((matching player) is an enemy of owner of (casting unit))) equal to true ))) equal to 0
actions
unit - order (casting unit) to stop
polymorph said:(((matching player)
Owner of matching unit
out of combat
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Wind Walk
(Number of units in (Units within 500.00 of (Position of (Casting unit)) matching (((Owner of (Matching unit)) is an enemy of (Owner of (Casting unit))) Equal to True))) Not equal to 0
Actions
Wait 0.60 seconds
Unit - Remove Wind Walk buff from (Casting unit)
Unit - Set mana of (Casting unit) to ((Mana of (Casting unit)) + 75.00)
You can't "un-upgrade" upgrades, that's why.Duwenbasden said:Why not make the ability controled by an upgrade? If the upgrade isn't available, the ability can't be casted.
Events
A unit is attacked
Conditions
(Level of (Your ability) from (Event response - Attacked unit)) greater than 0
Actions
Custom script - (local unit udg_Caster)
Custom script - (local integer udg_Level)
Set (Caster) = (Event response - Attacked unit)
Set (Level) = (Level of (Your ability) from (Caster))
Remove (Your ability) from (Caster)
Wait <Whatever> playing time
Add (Your ability) to (Caster)
Set level of (Your ability) from (Caster) to (Level)