Em cần mấy bác giúp em 1 chuyện. Bác nào giỏi về "Trigger" xin hướng dẫn cho em làm 1 trigger ghép đồ (Tức là lấy item này + item kia thì ra 1 item mới.) một cách cụ thể. Em đã xem nhiều hướng dẫn về cái này mà em ko hiểu gì, mấy người post bài không nói cụ thể là tạo 1 event rồi chọn cái gì mà họ chỉ nói các thông số trong event là gì thôi.
Ví dụ:
Events
Unit - A unit Acquires an item
Họ chỉ nói vậy và bắt em mò tới tận sáng.
Đây là bài hướng dẫn cách ghép đồ:
) Events
Unit - A unit Acquires an item
) Conditions
) Actions
- *If (All Conditions are True) then do (Then Actions) else do (Else Actions)
*If - Conditions
((Hero manipulating item) has an item of type Orb of Frost) Equal to True
((Hero manipulating item) has an item of type Orb of Fire) Equal to True
((Hero manipulating item) has an item of type Orb of Lightning) Equal to True
*Then - Actions
Item - Remove (Item carried by (Hero manipulating item) of type Orb of Frost)
Item - Remove (Item carried by (Hero manipulating item) of type Orb of Fire)
Item - Remove (Item carried by (Hero manipulating item) of type Orb of Lightning)
Item - Create Claws of Attack +15 at (Center of (Playable map area))
Special Effect - Create a special effect at (Position of (Hero manipulating item)) using Abilities\Spells\Items\AIam\AIamTarget.mdl
Special Effect - Destroy (Last created special effect)
Hero - Give (Last created item) to (Hero manipulating item)
*Else - Actions
Bác nào giỏi làm ơn chỉ em nhanh nhanh 1 chut tai. vì em đang làm 1 map cần ghép đồ. Cảm ơn !!
Ví dụ:
Events
Unit - A unit Acquires an item
Họ chỉ nói vậy và bắt em mò tới tận sáng.
Đây là bài hướng dẫn cách ghép đồ:
) Events
Unit - A unit Acquires an item
) Conditions
) Actions
- *If (All Conditions are True) then do (Then Actions) else do (Else Actions)
*If - Conditions
((Hero manipulating item) has an item of type Orb of Frost) Equal to True
((Hero manipulating item) has an item of type Orb of Fire) Equal to True
((Hero manipulating item) has an item of type Orb of Lightning) Equal to True
*Then - Actions
Item - Remove (Item carried by (Hero manipulating item) of type Orb of Frost)
Item - Remove (Item carried by (Hero manipulating item) of type Orb of Fire)
Item - Remove (Item carried by (Hero manipulating item) of type Orb of Lightning)
Item - Create Claws of Attack +15 at (Center of (Playable map area))
Special Effect - Create a special effect at (Position of (Hero manipulating item)) using Abilities\Spells\Items\AIam\AIamTarget.mdl
Special Effect - Destroy (Last created special effect)
Hero - Give (Last created item) to (Hero manipulating item)
*Else - Actions
Bác nào giỏi làm ơn chỉ em nhanh nhanh 1 chut tai. vì em đang làm 1 map cần ghép đồ. Cảm ơn !!
)
.