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

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

Ответ
 
sleepw

offline
Опыт: 8,449
Активность:
Группа
Хелп вод доделать както..мну надо чтобы в течении полед вейта после call ForGroup(g,function colorR_dmg),дамаг наносился не 1 раз а именно на протяжении 3 сек кадые 1 сек к примеру.. добавился эффект а по истечению времени удалалялсо.. я вот просто немогу понять как туда правильно запихнуть таймер=\

» code

Код:
function colorG takes nothing returns nothing
call SetUnitVertexColor(GetEnumUnit(),110,200,110,255)
endfunction

function colorY takes nothing returns nothing
call SetUnitVertexColor(GetEnumUnit(),180,200,0,255)
endfunction

function colorR_dmg takes nothing returns nothing
call SetUnitVertexColor(GetEnumUnit(),255,90,100,255)
call AddSpecialEffectLoc("Abilities\\Spells\\Other\\BreathOfFire\\BreathOfFireDamage.mdl",Location(GetUnitX(GetEnumUnit()),GetUnitY(GetEnumUnit())))
call UnitDamagePoint(GetEnumUnit(),0,55,GetUnitX(GetEnumUnit()),GetUnitY(GetEnumUnit(  )),50,true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL,WEAPON_TYPE_WHOKNOWS)
endfunction

function ntsystact takes nothing returns nothing
local group g=CreateGroup()
local unit u
set g=GetRandomSubGroup(100,udg_ntgroup)
call ForGroup(g,function colorY)
call PolledWait(1.2)
call ForGroup(g,function colorR_dmg)
call PolledWait(3)
call ForGroup(g,function colorG)
call StartTimerBJ(udg_nttimer,false,3)
call DestroyGroup(g)
endfunction
//===========================================================================
function InitTrig_NtSystem2 takes nothing returns nothing
    set gg_trg_NtSystem2 = CreateTrigger(  )
    call TriggerRegisterTimerExpireEvent(gg_trg_NtSystem2,udg_nttimer)
    call TriggerAddAction( gg_trg_NtSystem2, function ntsystact )
endfunction

Отредактировано sleepw, 26.03.2008 в 07:31.
Старый 26.03.2008, 06:18
Лось

offline
Опыт: 7,223
Активность:
Если ты используеш вэйты то можна вот так без таймера:
Код:
function colorG takes nothing returns nothing
call SetUnitVertexColor(GetEnumUnit(),110,200,110,255)
call DestroyEffect(I2E(GetStoredInteger(udg_cache,I2S(H2I(GetEnumUnit())),"FX")))
call FlushStoredMission(udg_cache,I2S(H2I(GetEnumUnit())))
endfunction

function colorY takes nothing returns nothing
call SetUnitVertexColor(GetEnumUnit(),180,200,0,255)
endfunction

function colorR_dmg takes nothing returns nothing
local effect e=AddSpecialEffect("Abilities\\Spells\\Other\\BreathOfFire\\BreathOfFireDamage.mdl",GetUnitX(GetEnumUnit()),GetUnitY(GetEnumUnit()))
call SetUnitVertexColor(GetEnumUnit(),255,90,100,255)
call StoreInteger(udg_cache,I2S(H2I(e)),"FX",H2I(e))
call UnitDamagePoint(GetEnumUnit(),0,55,GetUnitX(GetEnumUnit()),GetUnitY(GetEnumUnit(    )),50,true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL,WEAPON_TYPE_WHOKNOWS)
set e=null
endfunction

function ntsystact takes nothing returns nothing
local group g=CreateGroup()
local unit u
local integer i=3
set g=GetRandomSubGroup(100,udg_ntgroup)
call ForGroup(g,function colorY)
call PolledWait(1.2)
loop 
exitwhen i==0
call ForGroup(g,function colorR_dmg)
call PolledWait(1)
set i=i-1
endloop
call ForGroup(g,function colorG)
call StartTimerBJ(udg_nttimer,false,3)
call DestroyGroup(g)
set g=null
set u=null
endfunction
//===========================================================================
function InitTrig_NtSystem2 takes nothing returns nothing
    set gg_trg_NtSystem2 = CreateTrigger(  )
    call TriggerRegisterTimerExpireEvent(gg_trg_NtSystem2,udg_nttimer)
    call TriggerAddAction( gg_trg_NtSystem2, function ntsystact )
endfunction
Старый 26.03.2008, 07:51
sleepw

offline
Опыт: 8,449
Активность:
в лупе юзать вейт? окок

sleepw добавил:
Лось
+ты там немного намудрил)
Старый 26.03.2008, 18:53
Ответ

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

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

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

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



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