Ayanami
칼리
- Reaction score
- 288
Okay, I'm a beginer at JASS. I tried my first official JASS spell which is very basic (also can be made from GUI). Here is the code. I'm using WE Unlimited as NewGen doesn't work (I do not know why).
After I tried saving my map, this error message popped up.
I don't have any idea what this means. Can anyone help me?
JASS:
function Trig_Spiritual_Blessing_2_Conditions takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped(039;SB00039;, GetAttacker()) > 0 ) ) then
return false
endif
if ( not ( GetRandomInt(1, 100) <= 25 ) ) then
return false
endif
return true
endfunction
function Trig_Spiritual_Blessing_2_Actions takes nothing returns nothing
set udg_CH_Unit = GetAttacker()
set udg_CH_Unit_2 = GetAttackedUnitBJ()
call UnitDamageTargetBJ( udg_CH_Unit, udg_CH_Unit_2, ( ( I2R(GetUnitAbilityLevelSwapped(039;SB00039;, udg_CH_Unit)) * 0.25 ) * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, udg_CH_Unit, true)) ), ATTACK_TYPE_HERO, DAMAGE_TYPE_ENHANCED )
call AddSpecialEffectTargetUnitBJ( "chest", udg_CH_Unit_2, "Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
// Floating Text
call CreateTextTagUnitBJ( "TRIGSTR_1429", udg_CH_Unit, 0, 10, 60.00, 10.00, 60.00, 0 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 3.50 )
call SetTextTagFadepointBJ( GetLastCreatedTextTag(), 0.50 )
call SetTextTagVelocityBJ( GetLastCreatedTextTag(), 64, 90.00 )
endfunction
//===========================================================================
function InitTrig_Spiritual_Blessing_2 takes nothing returns nothing
set gg_trg_Spiritual_Blessing_2 = CreateTrigger( )
call AnyDamageEvent( gg_trg_Spiritual_Blessing_2 )
call TriggerAddCondition( gg_trg_Spiritual_Blessing_2, Condition( function Trig_Spiritual_Blessing_2_Conditions ) )
call TriggerAddAction( gg_trg_Spiritual_Blessing_2, function Trig_Spiritual_Blessing_2_Actions )
endfunction
After I tried saving my map, this error message popped up.
I don't have any idea what this means. Can anyone help me?