Jass Vault WC3Jass.com
"The Jass Vault"
 
 FAQ   Search   Memberlist   Usergroups   Register 
 Profile   Log in to check your private messages   Log in  
 Forum   Scripts   Files   Chat   Pastebin   Function finder  
Affiliates
The HIVE Workshop Games Modding
The Hubb Wc3Campaigns
WC3-Mapping.net

Another Damage OverTime(without handler vars)

 
Post new topic   Reply to topic    Jass Vault -> The Void
View previous script :: View next script  

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
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 Confused

Author
Blade.dk


Joined: 20 Apr 2005
Comments: 608
Back to top
Message
CommentPosted: Wed Apr 27, 2005 4:18 pm    Post subject: Reply with quote

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...
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger

Author
Nantuko_Husk


Joined: 24 Apr 2005
Comments: 159
Back to top
Message
CommentPosted: Wed Apr 27, 2005 4:26 pm    Post subject: Reply with quote

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! Question

And this works with pickup if you put as "victim" the GetEnumUnit()
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

Author
Blade.dk


Joined: 20 Apr 2005
Comments: 608
Back to top
Message
CommentPosted: Wed Apr 27, 2005 6:14 pm    Post subject: Reply with quote

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! Question

And this works with pickup if you put as "victim" the GetEnumUnit()


No... Wait blocks for group action.. Try... I'm sure...
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger

Author
Nantuko_Husk


Joined: 24 Apr 2005
Comments: 159
Back to top
Message
CommentPosted: Wed Apr 27, 2005 7:10 pm    Post subject: Reply with quote

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! Question

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 Rolling Eyes
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

Author
Blade.dk


Joined: 20 Apr 2005
Comments: 608
Back to top
Message
CommentPosted: Thu Apr 28, 2005 12:13 pm    Post subject: Reply with quote

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! Question

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 Rolling Eyes


I am right...
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger

Author
Ice Snake


Joined: 14 Oct 2009
Comments: 2
Back to top
Message
CommentPosted: Thu Dec 31, 2009 9:58 am    Post subject: Reply with quote

Thank you, very useful script Exclamation
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number

Display posts from previous:   
Post new topic   Reply to topic    Jass Vault -> The Void All times are GMT
Page 1 of 1

 
Jump to:  
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



FSDark by SkaidonDesigns
Powered by phpBB © 2001, 2002 phpBB Group