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.
Cho mình hỏi 2 vấn đề:
1/ Có cách nào chỉnh shop quay mặt theo ý mình ko?
2/ Mình tạo 1 item bình máu, mình muốn hero level 10 mới xài đc thì làm sao? Trong object editor có chỉnh đc ko hay phải dùng trigger?

1. được nếu nó là unit
2.dùng trigger. khi hero mang bình máu, nếu lvl của nó thấp hơn 10 thì drop ngay
=============================================
cho em hỏi có ai có dạng system summon unit ra, k điều khiển đc nó như nó sẽ đi theo caster k?
tựa như follower từ diablo 3 á![]()
@^: Cậu có thể thêm 1 trigger nhỏ như
Event: Player Unit Selected
Cond: Unit Type of Trigger Unit == '__'
Act: Deselect TriggerUnit
Còn move mỗi mốc thời gian xác định thì diablo 3 cũng vậy

1/ Có cách nào chỉnh shop quay mặt theo ý mình ko?
Cách đổi hướng mặt cho building? Làm thế nào để nhà quay mặt về hướng mình muốn?
http://gamevn.com/showpost.php?p=19246417
private static integer ins = 0
private static integer array insAR
static method alloc takes nothing returns thistype
local thistype this = insAR[0]
if this==0 then
set ins = ins + 1
set this = ins
else
set insAR[0] = insAR[this]
endif
return this
endmethod
method dealloc takes nothing returns thistype
call this.remove()
set insAR[this] = insAR[0]
set insAR[0] = this
return this.next
endmethod
private static thistype array recycled
private static integer recycledMax = 0
private static integer lastAlloc = 0
static method alloc takes nothing returns thistype
if .recycledMax==0 then
set .lastAlloc = .lastAlloc + 1
return .lastAlloc
endif
set .recycledMax = .recycledMax - 1
return .recycled[.recycledMax]
endmethod
method dealloc takes nothing returns thistype
call this.remove()
set .recycled[.recycledMax] = this
set .recycledMax = .recycledMax + 1
return this.next
endmethod
tặng cục gạch vì ta ko ưa mi 

Trigger 1
Events
Unit - A unit Learns a skill
Conditions
(Learned Hero Skill) Equal to XXX
Actions
Set unit[2] = (Learning Hero)
Trigger 2
Events
Unit - A unit Dies
Conditions
(Owner of (Killing unit)) Equal to (Owner of unit[2])
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
killed Equal to 1
Then - Actions
Else - Actions
Unit - Reset ability cooldowns for unit[2]
là reset all abilityUnit - Reset ability cooldowns for unit[2]
B1: Set level skill zô 1 biến
B2: Remove Skill
B3: Add skill
B4: Set lại Level
vậy rốt cuộc làm nhu thế nào hả bạn set thành code text dùm mình dc ko^
chú bị ảo à
là reset all ability
=> Thay dòng này bằng :
