YAN[asian];11170902 nói:
GW đâu rồi trả lời mình đi!
nếu muốn là 1 unit thì bạn phải có đk ji đó để pick unit đó vd
_ nếu là 1 unit duy nhất thì có = 2 cách :
+ nếu cậu đã cho unit đó ra ngoài map , chỉ việc :
Animation - Change Peasant 0000 <gen>'s vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
với Peasant 0000 cậu chọn bằng cái
Select a Unit
+ nếu hok phải , thì cậu phải làm là unit vừa mới tạo :
Actions
Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
Animation - Change (Last created unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
thì nó sẽ đổi cho con Footman vưa tạo
_ tớ chắc cậu muốn cho là cả 1 loại unit đúng hem , vậy thì :
cậu làm 2 trigger
Khoi tao
Events
Time - Elapsed game time is 0.10 seconds
Conditions
Actions
Set UnitGroup = (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Footman))
Unit Group - Pick every unit in UnitGroup and do (Actions)
Loop - Actions
Animation - Change (Picked unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
custom spirt : call DestroyGroup(udg_UnitGroup)
cái nài để pick tất cả unit loại đó
Trong game
Events
Unit - A unit enters (Playable map area)
Conditions
(Unit-type of (Triggering unit)) Equal to Footman
Actions
Animation - Change (Picked unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
khi create 1 unit kỉu đó sẽ cho mờ đi
@ara : Advance/Game play contacts/Hero Maximum Level
tương tự với unit có : Unit Maximum Level
@cool : làm 1 cái nền loading screen import vào
@manh : cậu cũng dùng trigger Unit Enter a region như trên :
Trong game
Events
Unit - A unit enters XXX <~ cái region nơi đến
Conditions
(Unit-type of (Triggering unit)) Equal to MK <~ búa lùn
Actions
For each (Integer A) from 1 to 100, do (Actions)
Loop - Actions
Unit - Create 1 Footman for Player 1 (Red) at (Center of (XXX)) facing Default building facing degrees
Unit - Order (Last created unit) to Attack (Triggering unit)
<~ tạo 100 con Foot man đập thằng MK
còn cậu muốn random vị trí thì chỉ cần đổi (Center of (XXX)) thành Random point in (XXX)