wah, trigger yg singkatnya sih gw kagak tau >.<
wah, trigger yg singkatnya sih gw kagak tau >.<
KK minta tolong dong...
Trigger bwat spwan pohon yg udah tumbang dong....
klo ga salah
klo GUI-nyafunction RegrowTrees_Actions takes nothing returns nothing
local destructable d = GetDyingDestructable()
call TriggerSleepAction( 45.00 )//waktu respwan
call DestructableRestoreLife( d, GetDestructableMaxLife(d), true )
set d = null
endfunction
function Trees_Setup takes nothing returns nothing
local trigger trig = CreateTrigger()
call TriggerRegisterDeathEvent( trig, GetEnumDestructable() )
call TriggerAddAction( trig, function RegrowTrees_Actions )
set trig = null
endfunction
function Trig_Initialization_Actions takes nothing returns nothing
call EnumDestructablesInRectAll( GetEntireMapRect(), function Trees_Setup )
endfunction
//=============================================
function InitTrig_Initialization takes nothing returns nothing
set gg_trg_Initialization = CreateTrigger( )
call TriggerAddAction( gg_trg_Initialization, function Trig_Initialization_Actions )
endfunction
Regrow Trees Setup
Events
Time - Elapsed game time is 5.00 seconds
Conditions
Actions
Destructible - Pick every destructible in (Entire map) and do (Actions)
Loop - Actions
Trigger - Add to RegrowTrees <gen> the event (Destructible - (Picked destructible) dies)RegrowTrees
Events
Conditions
Actions
Custom script: local destructable BADTREE = GetDyingDestructable()
Wait 150.00 seconds//waktu respwan
Custom script: call DestructableRestoreLife( BADTREE, GetDestructableMaxLife(BADTREE), true )
Last edited by ranzi; 15-09-08 at 17:24.
logitec.. ak uda ktmu singkatnya..Code:function Trig_Combine_Items_Conditions takes nothing returns boolean if ( not ( GetItemCharges(GetManipulatedItem()) > 0 ) ) then return false endif return true endfunction function Trig_Combine_Items_Actions takes nothing returns nothing local integer ITEMCOUNT local integer ITEMLOOP local integer CHARGES local integer MAXIMUM local item NEWITEM local unit OURUNIT set MAXIMUM = 5000 set ITEMCOUNT = 0 set ITEMLOOP = 0 set CHARGES = 0 set NEWITEM = GetManipulatedItem() set OURUNIT = GetManipulatingUnit() loop exitwhen ITEMLOOP > 6 if ((GetItemTypeId(NEWITEM)) == (GetItemTypeId(UnitItemInSlotBJ(OURUNIT, ITEMLOOP)))) then if ((GetItemCharges(UnitItemInSlotBJ(OURUNIT, ITEMLOOP)) + GetItemCharges(NEWITEM)) <= MAXIMUM) then if not ( (UnitItemInSlotBJ(OURUNIT, ITEMLOOP)) == (NEWITEM)) then set CHARGES = (GetItemCharges(UnitItemInSlotBJ(OURUNIT, ITEMLOOP))) + GetItemCharges(NEWITEM) call SetItemCharges( UnitItemInSlotBJ(OURUNIT, ITEMLOOP), CHARGES ) call RemoveItem( NEWITEM ) set ITEMLOOP=7 endif endif endif if ( ITEMLOOP < 7 ) then set ITEMLOOP = ITEMLOOP + 1 endif endloop endfunction //=========================================================================== function InitTrig_Combine_Items takes nothing returns nothing set gg_trg_Combine_Items = CreateTrigger( ) call TriggerRegisterAnyUnitEventBJ( gg_trg_Combine_Items, EVENT_PLAYER_UNIT_PICKUP_ITEM ) call TriggerAddCondition( gg_trg_Combine_Items, Condition( function Trig_Combine_Items_Conditions ) ) call TriggerAddAction( gg_trg_Combine_Items, function Trig_Combine_Items_Actions ) endfunction
gak jadi kk logitec, aku udah ketemu caranya ^^
tapi scriptnya jadi panjang, kk bisa pendekin nggak? terus pengen nambahin effect thunder clap dan ministun di skillnya, base spellnya blinknya warden... owalah codenya blum bisa wa post skrg, tunggu 2-3 hari lagi ya kk ^^
eh...gw kok kagak WEnya aneh y
kan mo import2 icon nih, eh pas lg replace2/import2 icon, tiba2 WEnya ke close sendiri....gw coba lagi berulang2, ke close lg.....duh need help![]()
Corrupt atau semacamnya. Apakah WE situ bajakan? Coba pake yang asli.
oh, gara2 gw replace icon yg masih gw pake di game ternyata....
Gak jadi kk, dah ktemu lgi, hehe...
Nah yg ini beneran nih minta tolong, cara bikin skil magic reduction ke hero gimana sih kk? Kyk skill 3 magina itu..., pliss help..., kalo bisa pake GUI ya kk...,
uda ada kan di spell default warcraft
eh, cara buat spell yg auto casting gmn si? gw baca tutorialnya ralle kagak ngerti
http://www.hiveworkshop.com/forums/f...ocasting-6255/
ada trigger bwat ngewait sampe kita ngetik sesuatu? yaaa semacam trigger klo kita dikasih riddle. Gui ato jass juga terserah
pake event
Player 1 - Entered chat message
Nge lock team supaya nggak brubah ubah gimana ya kk? Sama slot di isi computer gak bsa di ubh, udh w atur di scrollbar yg ada pilihan allies, yg ada pilihan force dsb, msh gk bsa kk....
Share This Thread