sữ dụng newgen + jasshelper chưa
patch 1.24
jasshelper cái đây là cái nào thế
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
sữ dụng newgen + jasshelper chưa
patch 1.24
,vừa chơi Green TD Mega 8.1 xong, đến vòng 15/40 là ko thể điều khiển đc nữa
acd hay pts hay paint.net"Format đúng" là dùng trình gì vậy bạn ?
xác chết nhìuGreen TD Mega 8.1
có map chất lượng tốt mà ko bị protect kCòn nữa :có ai bít làm Ai ko ? cho Tower Defends càng tốt


viết công thức rút gọn của jass như thế nàoMã:Melee Initialization Events Unit - A unit enters Region 000 <gen> Conditions ((Triggering unit) is A Hero) Equal to True (Owner of (Entering unit)) Equal to Player 1 (Red) Actions Hero - Create Crown of Kings +5 and give it to (Entering unit)![]()
scope A initializer On
globals
private trigger Trig = CreateTrigger()
private constant integer id = 'ckng'
endglobals
private function Act takes nothing returns nothing
local unit u = GetTriggerUnit()
call UnitAddItem(u, CreateItem(id,GetUnitX(u),GetUnitY(u)))
set u = null
endfunction
private function Cond takes nothing returns boolean
local unit u = GetTriggerUnit()
local boolean cond1 = IsUnitType(u,UNIT_TYPE_HERO)
local boolean cond2 = GetOwningPlayer(u) == Player(0)
set u = null
return cond1 and cond2
endfunction
private function On takes nothing returns nothing
call TriggerRegisterEnterRectSimple( Trig, gg_rct_Region_000 )
call TriggerAddAction(Trig, function Act)
call TriggerAddCondition(Trig, Condition(function Cond))
endfunction
endscope
set u = null
--
nghĩa là gì, cái này k hỉu

làm sao để cái ability item cộng cao hơn 4 vậy anh , tới 4 nó hết add được nữa
có thả thi k vậytheo Tutorial-Memory-Leaks-and-Custom-Script của TOM thì
có thể làm 1 cái trigger xóa leak khi unit die dc ko
ý là ko cần chèn cái "Custom script:" vào mỗi trigger

Ý em rõ ràng zậy mà ko ai trả lời nhỉ ? Tức là Tower Defends và Maul ấy , chứ ko phải Green TDcó ai có thể phân tích nguyên nhân và cách giảm lag cho thể loại này ko ?
Cho em hỏi muốn làm cho unit đi theo 1 lộ trình nhất định thì phải làm sao?
mô tả thử xemcung 1 nguyên nhân lính die -> leakÝ em rõ ràng zậy mà ko ai trả lời nhỉ ? Tức là Tower Defends và Maul ấy , chứ ko phải Green TD
Đây, Jass
Mã:scope A initializer On globals private trigger Trig = CreateTrigger() private constant integer id = 'ckng' endglobals private function Act takes nothing returns nothing local unit u = GetTriggerUnit() call UnitAddItem(u, CreateItem(id,GetUnitX(u),GetUnitY(u))) set u = null endfunction private function Cond takes nothing returns boolean local unit u = GetTriggerUnit() local boolean cond1 = IsUnitType(u,UNIT_TYPE_HERO) local boolean cond2 = GetOwningPlayer(u) == Player(0) set u = null return cond1 and cond2 endfunction private function On takes nothing returns nothing call TriggerRegisterEnterRectSimple( Trig, gg_rct_Region_000 ) call TriggerAddAction(Trig, function Act) call TriggerAddCondition(Trig, Condition(function Cond)) endfunction endscope

Là thế này, mình tạo 1 con đường, có 2 điểm A và B, create 1 unit cho nó đi từ A qua B theo con đường đó, nhưng nếu action - unit walk bình thường thì nó lại đi theo đường tắt. Cách trị sao đâynói rõ hơn dc komô tả thử xem

hao dung lượng lắm. Map mình size lớn, tạo từng cái có mà 