PurgeandFire
zxcvmkgdfg
- Reaction score
- 509
Units are widgets.
But when I put in a unit it says Cannot convert units to widgets in JASSCraft.
Widgets aren't units btw. Search widget in JASSCraft, and a comment says a good description.
function poo takes nothing returns nothing
call GetWidgetLife(GetTriggerUnit())
call GetWidgetX(GetTriggerUnit())
call GetWidgetY(GetTriggerUnit())
call SetWidgetLife(GetTriggerUnit(),500)
endfunction
I don't think that was an error, I made it so if your strike kills them it shows DEADLY BLOW!! instead of the damage dealt. It looks cooler. It's the same message as getting to the 15th strike, but the 15th strike kills no matter what. If your normal strike just so happens to kill, it says deadly blow.but after a while I kept getting DEADLY BLOW!! and killing the enemies instantly
constant function MultiSlash_Damage_FirstStrike takes integer level returns nothing
10 + 0 * level
endfunction
constant function MultiSlash_DamageIncrement_EveryStrike takes integer level returns nothing
10 + 0 * level // Damage increase every succeeding hit. In your case it increases by 10. (10, 20, 30, 40, 50, 60, etc.)
endfunction
constant function MultiSlash_NumberOfStrikes takes integer level returns nothing
5 + 0 * level
endfunction
constant function MultiSlash_Whatever takes integer level returns nothing
1 + 0 * level
// Basically how this formula works is that you add a constant value, such as 1, and add another value based on the level.
// I input 0 * level in the above functions but it can be anything, such as 4 * level, 2 + (1 / (level *3) ), etc.
endfunction
if((GetUnitState(Target,UNIT_STATE_LIFE))== 0) then
set blood[l] = AddSpecialEffect("Objects\\Spawnmodels\\Orc\\OrcLargeDeathExplode\\OrcLargeDeathExplode.mdl",GetUnitX(Target),GetUnitY(Target))
set t[l] = CreateTextTag()
call TextTagMessage(t[l],1.50,255,20,20,255,(1.00-(0.05*l)),GetUnitX(Caster),GetUnitY(Caster),0.00,0.00,0.030,"DEADLY BLOW!",0.03,true)
call PauseUnit(Caster,false)
call PauseUnit(Target,false)
set t[l] = null
set Caster = null
set Target = null
set blood[l] = null
set mirroreffect[l] = null
return