[Hỏi đáp] Trigger Editor

boywitch

Youtube Master Race
Tham gia ngày
25/11/12
Bài viết
22
Reaction score
1
Ai biết làm cái trigger giống legend of the dragon thì chỉ giáo em với. VD : Em có 1 items tên là beam thì khi đi vào cái vòng tròn đã đặt region ở đó thì em sẽ biến thành con beam đó luôn và sau khi biến em sẽ di chuyển đến một region khác đã đặt ở đâu đấy. Anh chị nào hoặc anh Tom có bik thì chỉ giúp em với.:2cool_burn_joss_sti
 
Mã:
Untitled Trigger 001
    Events
        Unit - A unit enters Region 000 <gen>
    Conditions
        ((Entering unit) has an item of type Tome of Experience) Equal to True
    Actions
        Set point = (Center of (Playable map area))
        Unit - Replace (Entering unit) with a Footman using The old unit's relative life and mana
        Unit - Move (Entering unit) instantly to point
        Custom script:   call RemoveLocation(udg_point)

Tham khảo và điều chỉnh
Sự kiện là một unit đi vào 1 region, đk là unit đó có item gì đấy
=> Thay unit đó = unit mới và move nó tới point kia
À thiếu lệnh item - remove nữa..
 
Cam? on ban. nhieu` nha. ( ko hiu? sao cai' unikey hoi` nay~ viet' dc bay gio` viet' ko dc )
 
Ai biết làm cái trigger giống legend of the dragon thì chỉ giáo em với. VD : Em có 1 items tên là beam thì khi đi vào cái vòng tròn đã đặt region ở đó thì em sẽ biến thành con beam đó luôn và sau khi biến em sẽ di chuyển đến một region khác đã đặt ở đâu đấy. Anh chị nào hoặc anh Tom có bik thì chỉ giúp em với.:2cool_burn_joss_sti
Đầy đủ :
Mã:
Evt- A unit enter [ khuvực đi vào]
Conditions - Entering Unit has an item of type [Songoku] Equal to True
Actions - Item Remove Item carried by Entering unit of type [Songoku]
Unit - Remove Entering unit from the game
Unit - Create Songoku for Owner ò Entering Unit at Center of Playable Arena facing Default building facing degrees
Hero - Give (Item carried by Entering Unit in slot 1) to ( Last created Unit)
Hero - Give (Item carried by Entering Unit in slot 2) to ( Last created Unit)
Hero - Give (Item carried by Entering Unit in slot 3) to ( Last created Unit)
Hero - Give (Item carried by Entering Unit in slot 4) to ( Last created Unit)
Hero - Give (Item carried by Entering Unit in slot 5) to ( Last created Unit)
Hero - Give (Item carried by Entering Unit in slot 6) to ( Last created Unit)
Lần sau có post thì post vào topic hỏi đáp,không là ăn point đấy :8cool_tire:
 
Back
Top