Topic hỏi đáp về cách làm map | version 13

Status
Không mở trả lời sau này.

^ Ko stack đâu a :|
Thử làm theo cách người khác, cho ability dmg + 20/25/30/35 mỗi aiblity là 10 level, mỗi level cộng dần dmg. Tức ability dmg + 35. Level 1 + 35 dmg, level 2 + 70 dmg, tương tự. Rồi trigger như sau mà hoàn toàn ko stack. Đặt 2 hero vẫn cộng có 35 dmg .Ko biết sai chỗ nào...

Mã:
Suc Manh Hoang Gia
    Events
        Time - Every 1.00 seconds of game time
    Conditions
        (Level of Suc Manh Hoang Gia  for Unit_Skill[0]) Greater than 0
    Actions
        Set Point_Map[0] = (Position of Unit_Skill[0])
        Set Group_Skill[0] = (Units within 1300.00 of Point_Skill[0] matching (((Matching unit) is A Hero) Equal to True))
        Set Integer[0] = (Number of units in Group_Skill[0])
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Suc Manh Hoang Gia  for Unit_Skill[0]) Equal to 1
            Then - Actions
                Unit - Add Damage + 20  to Unit_Skill[0]
                Unit - Add Attack Speed + 5%  to Unit_Skill[0]
                For each (Integer A) from 1 to Integer[0], do (Actions)
                    Loop - Actions
                        Unit - Set level of Damage + 20  for Unit_Skill[0] to Integer[0]
                        Unit - Set level of Attack Speed + 5%  for Unit_Skill[0] to Integer[0]
            Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Level of Suc Manh Hoang Gia  for Unit_Skill[0]) Equal to 2
                    Then - Actions
                        Unit - Remove Damage + 20  from Unit_Skill[0]
                        Unit - Remove Attack Speed + 5%  from Unit_Skill[0]
                        Unit - Add Damage + 25  to Unit_Skill[0]
                        Unit - Add Attack Speed + 10%  to Unit_Skill[0]
                        For each (Integer A) from 1 to Integer[0], do (Actions)
                            Loop - Actions
                                Unit - Set level of Damage + 25  for Unit_Skill[0] to Integer[0]
                                Unit - Set level of Attack Speed + 10%  for Unit_Skill[0] to Integer[0]
                    Else - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            If - Conditions
                                (Level of Suc Manh Hoang Gia  for Unit_Skill[0]) Equal to 3
                            Then - Actions
                                Unit - Remove Damage + 25  from Unit_Skill[0]
                                Unit - Remove Attack Speed + 10%  from Unit_Skill[0]
                                Unit - Add Damage + 30  to Unit_Skill[0]
                                Unit - Add Attack Speed + 15%  to Unit_Skill[0]
                                For each (Integer A) from 1 to Integer[0], do (Actions)
                                    Loop - Actions
                                        Unit - Set level of Damage + 30  for Unit_Skill[0] to Integer[0]
                                        Unit - Set level of Attack Speed + 15%  for Unit_Skill[0] to Integer[0]
                            Else - Actions
                                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    If - Conditions
                                        (Level of Suc Manh Hoang Gia  for Unit_Skill[0]) Equal to 4
                                    Then - Actions
                                        Unit - Remove Damage + 30  from Unit_Skill[0]
                                        Unit - Remove Attack Speed + 15%  from Unit_Skill[0]
                                        Unit - Add Damage + 35  to Unit_Skill[0]
                                        Unit - Add Attack Speed + 20%  to Unit_Skill[0]
                                        For each (Integer A) from 1 to Integer[0], do (Actions)
                                            Loop - Actions
                                                Unit - Set level of Damage + 35  for Unit_Skill[0] to Integer[0]
                                                Unit - Set level of Attack Speed + 20%  for Unit_Skill[0] to Integer[0]
                                    Else - Actions
        Custom script:   call RemoveLocation(udg_Point_Skill[0])
        Custom script:   call DestroyGroup(udg_Group_Skill[0])
 
Chỉnh sửa cuối:
cho mình xin cái system multiboard như dota ! mình tìm trên hivework thì board hoạt dc đc vài kill rùi đơ
 

^ Ko stack đâu a :|
Thử làm theo cách người khác, cho ability dmg + 20/25/30/35 mỗi aiblity là 10 level, mỗi level cộng dần dmg. Tức ability dmg + 35. Level 1 + 35 dmg, level 2 + 70 dmg, tương tự. Rồi trigger như sau mà hoàn toàn ko stack. Đặt 2 hero vẫn cộng có 35 dmg .Ko biết sai chỗ nào...

Mã:
Suc Manh Hoang Gia
    Events
        Time - Every 1.00 seconds of game time
    Conditions
        (Level of Suc Manh Hoang Gia  for [COLOR="#FF0000"]Unit_Skill[0][/COLOR]) Greater than 0
    Actions
        Set [COLOR="#0000CD"]Point_Map[0][/COLOR] = (Position of Unit_Skill[0])
        Set Group_Skill[0] = (Units within 1300.00 of [COLOR="#FF0000"][U]Point_Skill[0][/U][/COLOR] matching (((Matching unit) is A Hero) Equal to True))
        Set Integer[0] = (Number of units in Group_Skill[0])
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Suc Manh Hoang Gia  for Unit_Skill[0]) Equal to 1
            Then - Actions
                Unit - Add Damage + 20  to Unit_Skill[0]
                Unit - Add Attack Speed + 5%  to Unit_Skill[0]
                [COLOR="#FF0000"]For each (Integer A) from 1 to Integer[0], do (Actions)
                    Loop - Actions[/COLOR]
                        Unit - Set level of Damage + 20  for Unit_Skill[0] to Integer[0]
                        Unit - Set level of Attack Speed + 5%  for Unit_Skill[0] to Integer[0]
            Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Level of Suc Manh Hoang Gia  for Unit_Skill[0]) Equal to 2
                    Then - Actions
                        Unit - Remove Damage + 20  from Unit_Skill[0]
                        Unit - Remove Attack Speed + 5%  from Unit_Skill[0]
                        Unit - Add Damage + 25  to Unit_Skill[0]
                        Unit - Add Attack Speed + 10%  to Unit_Skill[0]
                        [COLOR="#FF0000"]For each (Integer A) from 1 to Integer[0], do (Actions)
                            Loop - Actions[/COLOR]
                                Unit - Set level of Damage + 25  for Unit_Skill[0] to Integer[0]
                                Unit - Set level of Attack Speed + 10%  for Unit_Skill[0] to Integer[0]
                    Else - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            If - Conditions
                                (Level of Suc Manh Hoang Gia  for Unit_Skill[0]) Equal to 3
                            Then - Actions
                                Unit - Remove Damage + 25  from Unit_Skill[0]
                                Unit - Remove Attack Speed + 10%  from Unit_Skill[0]
                                Unit - Add Damage + 30  to Unit_Skill[0]
                                Unit - Add Attack Speed + 15%  to Unit_Skill[0]
                                [COLOR="#FF0000"]For each (Integer A) from 1 to Integer[0], do (Actions)
                                    Loop - Actions[/COLOR]
                                        Unit - Set level of Damage + 30  for Unit_Skill[0] to Integer[0]
                                        Unit - Set level of Attack Speed + 15%  for Unit_Skill[0] to Integer[0]
                            Else - Actions
                                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    If - Conditions
                                        (Level of Suc Manh Hoang Gia  for Unit_Skill[0]) Equal to 4
                                    Then - Actions
                                        Unit - Remove Damage + 30  from Unit_Skill[0]
                                        Unit - Remove Attack Speed + 15%  from Unit_Skill[0]
                                        Unit - Add Damage + 35  to Unit_Skill[0]
                                        Unit - Add Attack Speed + 20%  to Unit_Skill[0]
                                        [COLOR="#FF0000"]For each (Integer A) from 1 to Integer[0], do (Actions)
                                            Loop - Actions[/COLOR]
                                                Unit - Set level of Damage + 35  for Unit_Skill[0] to Integer[0]
                                                Unit - Set level of Attack Speed + 20%  for Unit_Skill[0] to Integer[0]
                                    Else - Actions
        Custom script:   call RemoveLocation(udg_Point_Skill[0])
        Custom script:   call DestroyGroup(udg_Group_Skill[0])

đưa trigger cũng đưa thiếu?
- Unit_Skill[0] đặt ở đâu?
- sao lại phải lặp?

ở trên đặt Point_Map ở dưới lại dùng Point_Skill?
-----
tham khảo: item attack damage bonus và item attack speed nhiều level
http://forums.gamevn.com/showthread...tap-3-ve-cach-lam-map&p=11677633#post11677633
http://forums.gamevn.com/showthread.php?587286-Topic-Post-Spell&p=11677308#post11677308

cho mình hỏi làm thế nào để Hero Abilities List có thể chứa hơn 5 abi?

không nhiều hơn 5 được, hardcode rồi
 
Chỉnh sửa cuối:
Tks a, đúng là nhầm chỗ đó :-ss
Unit_Skill[0] trong trigger này, sr quên đưa @@
Mã:
Suc Manh Hoang Gia Learn
    Events
        Unit - A unit Learns a skill
    Conditions
        (Learned Hero Skill) Equal to Suc Manh Hoang Gia 
    Actions
        Set Unit_Skill[0] = (Learning Hero)
Lặp để set level của ability đó tới số hero trong khu vực ấy, tức 2 hero thì set lên 2 => 70 dmg khi level 4 :-?

Mọi người cho hỏi tiếp câu nữa :)
Chọn một mục tiêu, create 3 Illusion đồng thời move casting hero tới và xếp 4 hero này xung quanh target, tấn công liên tục mục tiêu. Chủ yếu là mình ko biết tạo và xếp Illusion sao cho thích hợp. Mong mọi người giúp :)
 
Làm cách nào để canh dc unit này đang đứng đằng sau Unit kia v ai chỉ em , cách anh Tom em xài không được @@
Em xài Hàm If này mà lúc đc lúc không
If - Conditions
(Facing of (Attacked unit)) Less than (((Angle from ((Position of (Attacking unit)) offset by 5.00 towards (Facing of (Attacking unit)) degrees) to ((Position of (Attacked unit)) offset by 5.00 towards (Facing of (Attacked unit)) degrees)) + 0.00) + 100.00)
(Facing of (Attacked unit)) Greater than (((Angle from ((Position of (Attacking unit)) offset by 5.00 towards (Facing of (Attacking unit)) degrees) to ((Position of (Attacked unit)) offset by 5.00 towards (Facing of (Attacked unit)) degrees)) + 0.00) - 100.00)
 
Làm cách nào để canh dc unit này đang đứng đằng sau Unit kia v ai chỉ em , cách anh Tom em xài không được @@
Em xài Hàm If này mà lúc đc lúc không
If - Conditions
(Facing of (Attacked unit)) Less than (((Angle from ((Position of (Attacking unit)) offset by 5.00 towards (Facing of (Attacking unit)) degrees) to ((Position of (Attacked unit)) offset by 5.00 towards (Facing of (Attacked unit)) degrees)) + 0.00) + 100.00)
(Facing of (Attacked unit)) Greater than (((Angle from ((Position of (Attacking unit)) offset by 5.00 towards (Facing of (Attacking unit)) degrees) to ((Position of (Attacked unit)) offset by 5.00 towards (Facing of (Attacked unit)) degrees)) + 0.00) - 100.00)

Cậu dùng cách này xem, nếu muốn giảm góc để tính là sau lưng thì tăng giá trị cos(góc) lên, cậu có hiểu đồ thị cos thế nào chứ?
Mã:
Actions
    Set TempLoc = (Position of Caster)
    Set TempLoc2 = (Position of Target)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        If - Conditions
            (Cos(((Angle from TempLoc to TempLoc2) - (Facing of Target)))) Greater than 0.00
        Then - Actions
            -------- Actions --------
        Else - Actions
 
Cho em hỏi cái multibroad này :http://www.hiveworkshop.com/forums/...-gui-185807/?prev=search=advanced&r=20&d=list
Cái đoạn Plee See This :
PUT THE FOLLOWING ACTIONS INTO YOUR HERO CHOOSETRIGGER
AND ENABLE THE CURENTLY DISABLED ACION AFTER PLACING IT IN THE TRIGGER
GO TO AMCREATION AND DELETE THE ACTION//PART 1 HERO ICON

đọc thì em hiểu dc chút ! nhưng cái đoạn following action thì em copy hết tất cả các action còn lại post ở hero chooser là ở đâu
ai hướng dẫn chi tiết e import dc cái system này dùm gấp :D
 
cho em hỏi cách làm skill MUI, ví dụ làm 1 skill tạo ra 10 dummy unit, set 1 biến array cho 10 unit đó rồi thì làm sao để MUI??(hay là tạo 10 biến khác nhau=))
 
Mọi người cho hỏi tiếp câu nữa :)
Chọn một mục tiêu, create 3 Illusion đồng thời move casting hero tới và xếp 4 hero này xung quanh target, tấn công liên tục mục tiêu. Chủ yếu là mình ko biết tạo và xếp Illusion sao cho thích hợp. Mong mọi người giúp :)
Quote .......
...................................
 
ai giúp e viết trigger khi host bấm ar thì random hero cho tất cả các player
và player bấm -random thì random hero cho riêng mình
 
ai giúp e viết trigger khi host bấm ar thì random hero cho tất cả các player
và player bấm -random thì random hero cho riêng mình

Câu này đã có người hỏi và đã được trả lời.
Trước khi hỏi thì chịu khó search bằng tính năng tìm kiếm của forum, không thì google cũng ra cả đống.
Còn đây là bài viết hướng dẫn làm hero taverns kiểu dota, có cả mode random trong đấy.
 
Mọi người có thể giúp mình làm skill như sau đc ko :-s?

Soul Harvest
Mỗi khi giết 1 kẻ địch, hero sẽ tăng 1.5/2/2.5/3 max HP (vĩnh viên)

Mình ko muốn thử cho 100 lv mỗi loại vì sợ lag X_X ai có thể bày cách khác cho mình được ko?
 
cậu có thể dùng Item: 'Manual of Health' để add cho hero

Mọi người cho tớ hỏi, làm sao để tạo ra special efect chỉ có quân mình nhìn thấy và địch thì không (như của sniper, gyrocopter, alchemist)
 
Chỉnh sửa cuối:
Mình có câu hỏi về làm 1 sight system: Thay đổi sight của unit thành dạng hình nón trước mặt và giảm sight sau lưng. Dành cho các map có dạng stealth.
Thanks
 
^
bạn nên đọc những topic như thế này trước khi gửi câu hỏi lên đây. ko chịu mò mà hỏi có ngày bị chọi đá rơi đau lắm đấy.
câu trả lời cho bạn:http://forum.gamevn.com/showpost.php?p=13342301&postcount=1,http://forum.gamevn.com/showpost.php?p=15559526
lần sau bạn này còn hỏi những câu vốn dĩ có sẵn trong Topic tổng hợp các bác cứ quăng đại cái pic đó cho em nó tự mò lấy. Không thì không khá lên được
 
Status
Không mở trả lời sau này.
Back
Top