- Joined
- Sep 14, 2012
- Messages
- 3,413
Daffa can you please send me the list of the vJASS spells to make ?
I'll start this week end
I'll start this week end
If you want cool effects add them in your request because i'm not good at eye-candy \o/
Anyway I will start to do request in vJASS when i'll a list from to top to end in the order i have to make them because there's request undone, many requests per guy...
function DUMMY_ID takes nothing returns integer
return 'd000' //Change the rawcode to make this feet
endfunction
function ARMOR_CONSTANT takes nothing returns real
return 0.06 //Change this if you change the gameplay constant
endfunction
function GetUnitArmor takes unit u returns real
local real life = GetWidgetLife( u )
local real life2
local real x = GetUnitX( u )
local real y = GetUnitY( u )
local unit v = CreateUnit( Player(15), DUMMY_ID, x, y, 0 )
local real test = 10
if GetWidgetLife(u) > 200 then
set test = 100
endif
call UnitDamageTarget( v, u, test, true, false, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_NORMAL, null )
set life2 = life - GetWidgetLife( u )
call RemoveUnit( v )
set v = null
if ( life2 > test ) then
return (-1*(test - life2 ) ) / ( life2 * ARMOR_CONSTANT )
else
call SetWidgetLife( u, GetWidgetLife( u ) + life2 )
return ( test - life2 ) / ( life2 * ARMOR_CONSTANT )
endif
endfunction
@NightStalker06698
we can't make him turn around except he has spin animation like blademaster
@Malhorne
it seems this workshop get pretty dead huh? and everyone are busy