| 02-10-2005, 03:49 PM | #1 |
Hey, I've been trying to trigger an int based ability but I didn't manage to. After a few days I was told that I have to do it in JASS but I don't know how to. Can anyone post a JASS script that makes an ability damage equal to 10 times int of casting hero. I've tried to do something but when I try to activate it it said the trigger is missing an initialization called InitTrig_FEB_2 (_ equals space). function Trig_FEB_2_Actions takes nothing returns nothing local unit caster = GetTriggerUnit() local unit target = GetSpellTargetUnit() local integer level = GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetTriggerUnit()) local integer int = GetHeroStatBJ(bj_HEROSTAT_INT, caster, true) call UnitDamageTargetBJ( caster, target, ((I2R(level) * .75) * int), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL ) endfunction Please help |
| 02-12-2005, 05:04 AM | #2 |
No, you dont need to use jass. Code:
Untitled Trigger 001
Unit - Order (Casting unit) to damage (Target unit of ability being cast) for (10.00 * (Real((Intelligence of (Casting unit) (Include bonuses))))) using attack type Spells and damage type Normal.you just had to convert real to interger, through the proper gui method. |
