Thedevilxn nói:
2-Nói rõ ra ông muốn làm gì đi coi cái trigger xàm wé xài item slot1 thì mất item slot2 còn xài item slot2 thì lại mất item slot1 >_<
4-Gì mà cám ơn mọi người đã chỉ bảo và trả lời khách sáo thế nếu ông là con gái thì dỡ wá tui bóp 2 cái thôi khỏi cám ơn
2. He he, đại khái là tui có làm một hero kinh khí cầu chạy vào viện binh ở map tui, sau đó hero này sẽ thả 1 trong 2 unit cho mình lựa chọn. Nên tui mới add hero kinh khí cầu 2 item summon unit, sử dụng item nào thì sẽ mất item kia :wink: thế thôi. Tui đã làm xong cái trigger này rồi, nhưng không làm bằng item nữa mà làm bằng ability, nhưng cái ability thì cấu trúc cũng hơi giống một phần nào đó với item thì ok, còn cái item thì lại không ổn nên bực mình và không biết lỗi do đâu.
4. Còn vấn đề cảm ơn thì đương nhiên phải cám ơn chứ, không cám ơn thì lần sau vào hỏi chả có ma nào giả lời nữa à. Còn ngực tôi ông yên tâm, tuy không phải con gái nhưng vòng ngực to gần gấp đôi đấy, cỡ 120cm, Thedevilxn thấy sao

.
Về vụ trùng item ổn rồi, thankyou. Tui sửa lại là tất cả item đều có thể mua trùng được, nhưng trừ một số món đặc biệt thôi. Nhưng tui không hiểu, khi tui ra 3 điều kiện thì trigger này không hoạt động:
Conditions
....And - All (Conditions) are true
........Conditions
............(Item-type of (Item being manipulated)) Equal to A
............(Item-type of (Item being manipulated)) Equal to B
............(Item-type of (Item being manipulated)) Equal to C
Nhưng tương tự vậy, khi tui gom nhóm nó lại như sau thì nó lại hoạt động tốt, sao thế nhỉ?
Conditions
....And - All (Conditions) are true
........Conditions
...........((Item-type of (Item being manipulated)) Equal to A) or (((Item-type of (Item being manipulated)) Equal to B) or ((Item-type of (Item being manipulated)) Equal to C))
Còn origin của Thedevilxn thì như thế này
No same item
Events
Unit - A unit Acquires an item
Conditions
And - All (Conditions) are true
Conditions
(Item-class of (Item being manipulated)) Equal to Permanent
Actions
Set Interger_Sameitemcount = 0
For each (Integer A) from 1 to 6, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Item being manipulated)) Equal to (Item-type of (Item carried by (Triggering unit) in slot (Integer A)))
Then - Actions
Set Interger_Sameitemcount = (Interger_Sameitemcount + 1)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Interger_Sameitemcount Greater than or equal to 2
Then - Actions
Hero - Drop (Item being manipulated) from (Triggering unit)
Else - Actions
Do nothing
Tui có làm một trigger hợp nhất đồ chơi, bắt chước của một tên, nhưng thấy chuối quá. Có một số lỗi: 1. Lúc hợp nhất thì item Super Healing thấp thoáng hiện ra ở inventory trong giây lát, trông rất vô duyên; 2. Lúc mua mà chưa có item đầy đủ để hợp nhất thì player sẽ bị mất tiền vô lý 3. Nếu mà có một món Super Healing rồi lúc hợp nhất tiếp món cũ sẽ bị biến mất, cái này thì rất...rất gì nữa chả biết

. Trong khi đó chơi map Xstream Xday gì đó của bọn ddayworld thì item hợp nhất của tụi nó rất chuẩn, Thedevilxn hay ai đó có thể giúp tui được không? Nó thế này này:
Combine Item
Events
Unit - A unit Sells an item (from shop)
Conditions
(Item-type of (Sold Item)) Equal to Potion Super Healing
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(((Buying unit) has an item of type Potion of Healing) Equal to False) or (((Triggering unit) has an item of type Potion of Greater Healing) Equal to False)
Then - Actions
Wait 0.01 seconds
Item - Remove (Item carried by (Buying unit) of type Potion of Super Healing)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(((Buying unit) has an item of type Potion of Healing) Equal to True) and (((Buying unit) has an item of type Potion of Greater Healing) Equal to True)
Then - Actions
Wait 0.01 seconds
Item - Remove (Item carried by (Buying unit) of type Potion of Super Healing)
Item - Create Potion of Super Healing at (Position of (Buying unit))
Special Effect - Create a special effect attached to the overhead of (Buying unit) using Abilities\Spells\Human\MarkOfChaos\MarkOfChaosTarget.mdl
Special Effect - Destroy (Last created special effect)
Item - Remove (Item carried by (Buying unit) of type Potion of Healing)
Item - Remove (Item carried by (Buying unit) of type Potion of Greater Healing)
Unit - Order (Buying unit) to Right-Click (Last created item)
Else - Actions
Do nothing