Добавлен SсRealm
Плохо разбираюсь в jass попытался сделать текстаг, чтобы показалось название способности, но выдает ошибку синтаксиса, где я не правильно написал?
function Trig_Spell_____________________u_Actions takes nothing returns nothing
set udg_casting_unit = GetSpellAbilityUnit()
call CreateTextTag()( ( "|c0F0099FF" + GetObjectName(GetSpellAbilityId(), GetUnitLoc(udg_casting_unit) 0, 10.00, 100, 50.00, 100, 0 )
set udg_text = bj_lastCreatedTextTag
call SetTextTagVelocity( udg_text, 64, GetUnitFacing(udg_casting_unit) )
call SetTextTagPermanent( udg_text, true )
call SetTextTagPermanent(udg_text,false)
call SetTextTagLifespan(udg_text,2)
call SetTextTagLifespan(udg_text,0.0)
endfunction
set udg_casting_unit = GetSpellAbilityUnit()
call CreateTextTag()( ( "|c0F0099FF" + GetObjectName(GetSpellAbilityId(), GetUnitLoc(udg_casting_unit) 0, 10.00, 100, 50.00, 100, 0 )
set udg_text = bj_lastCreatedTextTag
call SetTextTagVelocity( udg_text, 64, GetUnitFacing(udg_casting_unit) )
call SetTextTagPermanent( udg_text, true )
call SetTextTagPermanent(udg_text,false)
call SetTextTagLifespan(udg_text,2)
call SetTextTagLifespan(udg_text,0.0)
endfunction
===========================================================================
function InitTrig_Spell_____________________u takes nothing returns nothing
set gg_trg_Spell_____________________u = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Spell_____________________u, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddAction( gg_trg_Spell_____________________u, function Trig_Spell_____________________u_Actions )
endfunction
function InitTrig_Spell_____________________u takes nothing returns nothing
set gg_trg_Spell_____________________u = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Spell_____________________u, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddAction( gg_trg_Spell_____________________u, function Trig_Spell_____________________u_Actions )
endfunction
`
ОЖИДАНИЕ РЕКЛАМЫ...
Чтобы оставить комментарий, пожалуйста, войдите на сайт.
))
пытаюсь написать на джасс. Я не знаю, что не правильно. Вроде все верно
Спасибо, исправил))
set udg_casting_unit = GetSpellAbilityUnit()
call CreateTextTag( "|c0F0099FF" + GetObjectName(GetSpellAbilityId), GetUnitLoc(udg_casting_unit) 0, 10.00, 100, 50.00, 100, 0 )
set udg_text = bj_lastCreatedTextTag
call SetTextTagVelocity( udg_text, 64, GetUnitFacing(udg_casting_unit) )
call SetTextTagPermanent( udg_text, true )
call SetTextTagPermanent(udg_text,false)
call SetTextTagLifespan(udg_text,2)
call SetTextTagLifespan(udg_text,0.0)
endfunction
function InitTrig_Spell_____________________u takes nothing returns nothing
set gg_trg_Spell_____________________u = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Spell_____________________u, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddAction( gg_trg_Spell_____________________u, function Trig_Spell_____________________u_Actions )
endfunction
все равно выдает ошибку!