XGM Forum
Сайт - Статьи - Проекты - Ресурсы - Блоги

Форуме в режиме ТОЛЬКО ЧТЕНИЕ. Вы можете задать вопросы в Q/A на сайте, либо создать свой проект или ресурс.
Вернуться   XGM Forum > Warcraft> Академия: форум для вопросов> Jass
Ник
Пароль
Войти через VK в один клик
Сайт использует только имя.

Ответ
 
Desert_Claw
The Savior
offline
Опыт: 529
Активность:
Отсутствует название в функции
Отсутствует название в функции!!! - у меня выходит эта натпись и тригер блокируется! что делать?
call UnitDamageTargetBJ( udg_Caster, udg_Target, 250.00, ATTACK_TYPE_MELEE, DAMAGE_TYPE_POISON )
Старый 13.10.2008, 16:28
J
expert
offline
Опыт: 48,447
Активность:
необезательно ошибка именно сдесь, приведи всю функцию целиком
Старый 13.10.2008, 16:37
Desert_Claw
The Savior
offline
Опыт: 529
Активность:
Вот
function Trig_Chidori_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A000' ) ) then
return false
endif
return true
endfunction
function Trig_Chidori_Actions takes nothing returns nothing
call CreateDestructableLoc( 'B000', PolarProjectionBJ(GetUnitLoc(GetSpellTargetUnit()), 500.00, ( I2R(GetForLoopIndexA()) * 6.00 )), GetRandomDirectionDeg(), GetRandomReal(1.00, 2.00), GetRandomInt(1, 10) )
set udg_Caster = GetTriggerUnit()
set udg_Target = GetSpellTargetUnit()
call PauseUnitBJ( true, udg_Caster )
call PauseUnitBJ( true, udg_Target )
call SetUnitInvulnerable( udg_Caster, true )
call SetUnitInvulnerable( udg_Target, true )
call SetUnitPathing( udg_Caster, false )
call AddSpecialEffectTargetUnitBJ( "hand right", udg_Caster, "Abilities\\Weapons\\FarseerMissile\\FarseerMissile.mdl" )
call SetUnitAnimation( udg_Caster, "walk" )
set udg_Orb = GetLastCreatedEffectBJ()
call TerrainDeformationWaveBJ( 0.5, GetUnitLoc(udg_Caster), GetUnitLoc(udg_Target), 256, 96, 0 )
call EnableTrigger( gg_trg_MoveCaster )
call TriggerSleepAction( ( DistanceBetweenPoints(GetUnitLoc(udg_Caster), GetUnitLoc(udg_Target)) / 800.00 ) )
call DisableTrigger( gg_trg_MoveCaster )
call PauseUnitBJ( false, udg_Caster )
call PauseUnitBJ( false, udg_Target )
call SetUnitInvulnerable( udg_Caster, false )
call SetUnitInvulnerable( udg_Target, false )
call SetUnitAnimation( udg_Caster, "spell throw" )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_Target), "Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl" )
call UnitDamageTargetBJ( udg_Caster, udg_Target, 250.00, ATTACK_TYPE_MELEE, DAMAGE_TYPE_NORMAL )
call DestroyEffectBJ( udg_Orb )
call SetUnitPathing( udg_Caster, true )
endfunction
===========================================================================
function InitTrig_Chidori takes nothing returns nothing
set gg_trg_Chidori = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Chidori, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Chidori, Condition( function Trig_Chidori_Conditions ) )
call TriggerAddAction( gg_trg_Chidori, function Trig_Chidori_Actions )
endfunction
Старый 13.10.2008, 18:03
user_jasser

offline
Опыт: 232
Активность:
код вроде без ошибки, толко вот бред какой-то написан....

Отредактировано user_jasser, 13.10.2008 в 18:30.
Старый 13.10.2008, 18:16
Лось

offline
Опыт: 7,223
Активность:
Мб какая нибудь глобалка не объявлена?
Старый 13.10.2008, 18:35
Ответ

Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск

Ваши права в разделе
Вы не можете создавать темы
Вы не можете отвечать на сообщения
Вы не можете прикреплять файлы
Вы можете скачивать файлы

BB-коды Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход



Часовой пояс GMT +3, время: 16:41.