 |
WC3Jass.com "The Jass Vault"
|
Affiliates
|
| Script code |
function DamageUnitOverTime takes unit caster,unit victim,integer damage,integer dur,string attach,string fxpath returns nothing
local integer dscale=damage/dur
local integer seconds=0
local effect Fx=AddSpecialEffectTargetUnitBJ(attach,victim,fxpath)
loop
exitwhen seconds==dur
if(Alive(victim)!=true) then
call DestroyEffect(Fx)
endif
call UnitDamageTargetBJ(caster,victim,dscale,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_ENHANCED)
set seconds=seconds+1
call TriggerSleepAction(1)
endloop
call DestroyEffect(Fx)
set seconds=0
set dscale=0
set victim=null
set caster=null
set attach=""
set fxpath=""
endfunction
|
|
 |
|
| Script info |
| Name: |
Another Damage OverTime(without handler vars) |
| Author: |
Nantuko_Husk |
| Submitted: |
Wed Apr 27, 2005 10:26 am |
| Lines: |
21 |
| Functions: |
|
|
|
| Description |
Damages a unit over time,but doesnt use handling variables. and i think it is MUI,i ve tested it and two heros hit eachother with this and it works okay
|
|
 |
|
 |
|
 |
 |
|
 |
|
|
| Message |
Posted:
Wed Apr 27, 2005 4:18 pm Post subject:
|
|
|
It's normal MUI, but can't be used with pick every unit in group actions...
And I can't see why people think that the handles are a curse. I personally see them as a bless... |
|
|
|
 |
|
|
|
| Message |
Posted:
Wed Apr 27, 2005 4:26 pm Post subject:
|
|
|
| Blade.dk wrote: |
It's normal MUI, but can't be used with pick every unit in group actions...
And I can't see why people think that the handles are a curse. I personally see them as a bless... |
Okay congratulations you see the handlers in that way...but who said you they are a curse!
And this works with pickup if you put as "victim" the GetEnumUnit() |
|
|
|
 |
|
|
|
| Message |
Posted:
Wed Apr 27, 2005 6:14 pm Post subject:
|
|
|
| Nantuko_Husk wrote: |
| Blade.dk wrote: |
It's normal MUI, but can't be used with pick every unit in group actions...
And I can't see why people think that the handles are a curse. I personally see them as a bless... |
Okay congratulations you see the handlers in that way...but who said you they are a curse!
And this works with pickup if you put as "victim" the GetEnumUnit() |
No... Wait blocks for group action.. Try... I'm sure... |
|
|
|
 |
|
 |
|
 |
 |
|
 |
|
|
| Message |
Posted:
Wed Apr 27, 2005 7:10 pm Post subject:
|
|
|
| Blade.dk wrote: |
| Nantuko_Husk wrote: |
| Blade.dk wrote: |
It's normal MUI, but can't be used with pick every unit in group actions...
And I can't see why people think that the handles are a curse. I personally see them as a bless... |
Okay congratulations you see the handlers in that way...but who said you they are a curse!
And this works with pickup if you put as "victim" the GetEnumUnit() |
No... Wait blocks for group action.. Try... I'm sure... |
i think you are right because to inrease the speed i waited 5 seconds and it didnt workd so i created a new func (GAI=Group Actions Increase(speed)) you might be right  |
|
|
|
 |
|
 |
|
 |
 |
|
 |
|
|
| Message |
Posted:
Thu Apr 28, 2005 12:13 pm Post subject:
|
|
|
| Nantuko_Husk wrote: |
| Blade.dk wrote: |
| Nantuko_Husk wrote: |
| Blade.dk wrote: |
It's normal MUI, but can't be used with pick every unit in group actions...
And I can't see why people think that the handles are a curse. I personally see them as a bless... |
Okay congratulations you see the handlers in that way...but who said you they are a curse!
And this works with pickup if you put as "victim" the GetEnumUnit() |
No... Wait blocks for group action.. Try... I'm sure... |
i think you are right because to inrease the speed i waited 5 seconds and it didnt workd so i created a new func (GAI=Group Actions Increase(speed)) you might be right  |
I am right... |
|
|
|
 |
|
|
|
| Message |
Posted:
Thu Dec 31, 2009 9:58 am Post subject:
|
|
|
Thank you, very useful script  |
|
|
|
 |
|
|
You can submit new scripts in this section You can comment on scripts in this section You cannot edit your scripts in this section You cannot delete your scripts in this forum
|
|