globals
unit CasterHS = GetTriggerUnit() //I get this so i can refer to this unit in my other trigger
location LocHS = GetUnitLoc(CasterHS) //I get this so i can use this location in my periodic trigger.
real angleHS = GetUnitFacing(CasterHS) //I get this so i know the...
How can i tell wc3 that its a global variable, and cant be found in this trigger, but in another one? :confused:
Cause it cant find them, if i just write the name of the global variable.:(
local real x = GetLocationX(source) + dist * Cos(angle * bj_DEGTORAD)
What exactly is the (source) part of that trigger?
Does it mean my first location, that i want to make a polar offset from? im not quite sure :P
theese 2 places it gets syntax error
UnitAddAbility(U,'Amrf' )
SetUnitPositionLoc(U,Loc+x * counter)
here it dosent though, so it cant be the U variable i guess
SetUnitAnimation(U,"Attack Slam")
SetUnitFlyHeight(U,4 * h * x * (d - x) / (d * d),0)
function Trig_Ban_Kai_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'AA10' ) ) then
return false
endif
return true
endfunction
globals
set unit U = (GetTriggerUnit) //it says "Undeclared variable GetTrigger Unit on this one. . . Why?
set...
Add variables for each player to make it MPI - - - - Multi Player Instance
(I dont think its important that u have it MUI as u only have 1 of each Hero)
nova123
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Avatar
Actions
For each (Integer A) from 1 to 8, do (Actions)
Loop - Actions
Unit - Create 1 Footman for (Owner of...
Some spells can be used even while ur stunned ;P an example could be (if u know dota) morphlings morph ability.. then u should use that and create a dummy casting purge on you which removes everything including stun.
I do though not know what morph is based on
Edit: oh shit :S it says item...
oh i understand it now :P
u cant do it like that... it will effect other summonings and it when the effect wears off or the unit gets purged the ability dispelled or overridden by another cripple ability it dont work anymore
I would create a unit for each level then make a If Level of Ability...