HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Vexorian bugged spells....

07-18-2005, 04:21 PM#1
hellzfire74
hey Lord Vexorian. Something happened with your spells. They have been working fine for like 2 weeks now but when i changed :
constant function FreezingBolt_Duration takes integer level returns integer
return 0.5+level
endfunction

constant function FreezingBolt_Damage takes integer level returns integer
return 100+10*level
endfunction

I got like 3000 complie errors.... It worked before i changed it so i don't get it?? is it that im not allowed to use decimals???
07-18-2005, 04:23 PM#2
hellzfire74
Also i changed the damage type to normal, like vile said but it still does not use my normal damage... I think it just changed the damage from cold to the Normal damage ( normal as in the melee). How do I make it the heros damage???? so that i can do critical strike and stuff......

function ColdSlash_DamageOptions takes integer level returns integer
return DamageTypes(ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL) + DamageException(UNIT_TYPE_STRUCTURE,0) + DamageOnlyTo(UNIT_TYPE_GROUND)
// Will Do Cold spell damage, won't affect buildings nor Flying units
// See the caster system readme for more info.
endfunction
07-18-2005, 08:43 PM#3
Vexorian
Integers are integers, if the function returns integer you can't use real values as in 0.5 . Hero damage has nothing to do with damagetypes, but with attack types , I think it is ATTACK_TYPE_HERO