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

Status
Không mở trả lời sau này.
CÓ ai biết cái effect khi lycan hóa sói với LVL? Death của Doom trong dota ko?
 
thank bạn nhiều nhé.
Ý mình là mình đã add sẵn 4skill rồi chỉ đc add thêm 1 cái nữa là full trong khi đó m muốn add thêm 3 cái AB mỗi cái 1 loại ấy nữa cơ
Có thể nào tạo dummy có Attribute Bonus đi theo m hễ m cộng Attribute cho nó thì m cũng đc cộng atribute
Có vài cách gợi ý cho bạn:
1) Add 4 spell vào spell book, vậy là tiết kiệm 3 slot ability, nhưng lượng spell phải làm gấp lên nhiều lần.
2) Làm giống CAT's Def, Attribute bonus nằm trong hệ thống Item.
3) Tạo thêm 1 dummy cho học spell như Fate/Stay night, khi dummy phụ học skill thì add skill vào cho unit chính.
....balh ...blah...

ak mình cũng nghĩ ra nhưng đang hỏi là có auto cast nào dành cho melee ko để đỡ phải chỉnh thành missle.
Xin spell để học tập cách MUI mà :)
Còn cái khổ hơn nhưng vẫn melee, tạo dummy có skill đó và khi attack thì tạo dummy cho nó cast spell auto vào :)). Mình mới chơi Dota nhưng thấy con bò cạp trong đó là dạng attack missle đó, có gì đâu :-"

Ai chỉ mình cách làm spell dựa vào số lần một Hero tấn công một unit, VD như là Mountain King đánh Footman 4 lần thì được tăng 50% dam. Thanks trước :)
Với skill đó là Attack Bonus, base từ Evasion hay aura nào đó.
Tạo chiêu Roar cho Dummy với target allowed là: Air, Ground, Player Units, Hero.
[spoil]
Mã:
Trigger 1
    Events
        Unit - A unit Learns a skill
    Conditions
        (Learned Hero Skill) Equal to [B]Bonus Attack[/B]
    Actions
        Set D_Hero = (Learning Hero)
        Trigger - Turn on Trigger 2 <gen>
[/spoil]
[spoil]
Mã:
Trigger 2 [COLOR="Blue"]// cái này để off sẵn[/COLOR]
    Events
        Unit - A unit Is attacked
    Conditions
        (Attacking unit) Equal to D_Hero
    Actions
        Trigger - Turn off (This trigger)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Attacked unit) Equal to D_Unit
            Then - Actions
                Set D_Count = (D_Count + 1)
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        D_Count Equal to 4
                    Then - Actions
                        Unit - Create 1 Dummy for (Owner of D_Hero) at (Position of D_Hero) facing Default building facing degrees
                        Unit - Add Roar to (Last created unit)
                        Unit - Order (Last created unit) to Night Elf Druid Of The Claw - Roar
                        Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
                    Else - Actions
            Else - Actions
                Set D_Unit = (Attacked unit)
                Set D_Count = 1
        Trigger - Turn on (This trigger)
[/spoil]
 
Mình muốn làm trigger khi mới vào game thì kiểm tra xem player nào có người chơi thì tạo 1 Hero cho player đấy, ko có người chơi thì ko tạo thì làm thế nào?
 
em là newbie muốn hỏi câu này :D : Sau khi đổi Number of charges của Potion of Greater Healing thành 10 , lúc test map mua được 10 bình máu , nhưng khi click uống thì lại uống hết luôn 10 bình 1 lần click , vậy muốn uống từng bình 1 thì phải làm thế nào :-s
 
Cho hỏi làm sao để giãn kích cớ của camera trong game
dang như trong Dota là 1k6 còn map mình làm cư bị ỡ 800 hoài
 
YAN[asian];17840674 nói:
Mình muốn làm trigger khi mới vào game thì kiểm tra xem player nào có người chơi thì tạo 1 Hero cho player đấy, ko có người chơi thì ko tạo thì làm thế nào?

For each integer A from 1 to 12
If, then, else
If: (Player(IntegerA)) equal to user(hinh như là player status;)))
Then: Creat 1 <unit> for Player(IntegerA)
Dốt tiếng Anh=)) và ko có WE ở đây nên bạn thông cảm.

---------- Post added at 08:42 ---------- Previous post was at 08:36 ----------

Cho hỏi làm sao để giãn kích cớ của camera trong game
dang như trong Dota là 1k6 còn map mình làm cư bị ỡ 800 hoài
Layer -> Camera
Vô trigger:
Event: Every 1second of game time
Act: For each integer A from 1 to 12...
Camera - Apply <camera mới tạo> for Player(integerA)
Hoăc: Kiếm Camera -> Camera Filed, chỉnh Distance theo ý bạn
Sở dĩ mình đặt event nhw trên bởi vì chỉ cần lắc nút giwuax chuột là camera đã trở về bt rồi, cho nên phải lên tục apply camera
 
Cho e hỏi cái này trigger này lỗi chỗ nào và leak mà sao khi e dùng skill thì hok có dame ( Skill base từ Cluster Rocket)
Mã:
Tornadoes
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Tornadoes 
    Actions
        -------- Variable --------
        Set Caster[35] = (Casting unit)
        Set Caster[34] = (Target unit of ability being cast)
        Set Points[35] = (Position of Caster[34])
        Set Dame = ((Real((Level of Tornadoes  for Caster[35]))) x ((Real((Agility of Caster[35] (Include bonuses)))) x 9.00))
        -------- Effect --------
        Unit - Create 1 Dummy for (Owner of Caster[35]) at Points[35] facing Default building facing degrees
        Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
        -------- Dame --------
        Set UnitGroups[35] = (Units within (300.00 x (Real((Level of (Ability being cast) for Caster[35])))) of Points[35] matching (((((Matching unit) is alive) Equal to True) and (((Matching unit) is in K_Group[2]) Equal to False)) and (((Owner of (Matching unit)) is an enemy of (Owner
        Unit Group - Pick every unit in UnitGroups[35] and do (Actions)
            Loop - Actions
                If ((Level of Tornadoes  for Caster[35]) Equal to 1) then do (Unit - Cause Caster[35] to damage (Picked unit), dealing Dame damage of attack type Spells and damage type Normal) else do (Do nothing)
                If ((Level of Tornadoes  for Caster[35]) Equal to 2) then do (Unit - Cause Caster[35] to damage (Picked unit), dealing Dame damage of attack type Spells and damage type Normal) else do (Do nothing)
                If ((Level of Tornadoes  for Caster[35]) Equal to 3) then do (Unit - Cause Caster[35] to damage (Picked unit), dealing Dame damage of attack type Spells and damage type Normal) else do (Do nothing)
                If ((Level of Tornadoes  for Caster[35]) Equal to 4) then do (Unit - Cause Caster[35] to damage (Picked unit), dealing Dame damage of attack type Spells and damage type Normal) else do (Do nothing)
                If ((Level of Tornadoes  for Caster[35]) Equal to 5) then do (Unit - Cause Caster[35] to damage (Picked unit), dealing Dame damage of attack type Spells and damage type Normal) else do (Do nothing)
        -------- Leak --------
        Unit Group - Remove all units from UnitGroups[35]
 
Cho e hỏi cái này trigger này lỗi chỗ nào và leak mà sao khi e dùng skill thì hok có dame ( Skill base từ Cluster Rocket)
Mã:
Tornadoes
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Tornadoes 
    Actions
        -------- Variable --------
        Set Caster[35] = (Casting unit)
        Set Caster[34] = (Target unit of ability being cast)
        Set Points[35] = (Position of Caster[34])
        Set Dame = ((Real((Level of Tornadoes  for Caster[35]))) x ((Real((Agility of Caster[35] (Include bonuses)))) x 9.00))
        -------- Effect --------
        Unit - Create 1 Dummy for (Owner of Caster[35]) at Points[35] facing Default building facing degrees
        Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
        -------- Dame --------
        Set UnitGroups[35] = (Units within (300.00 x (Real((Level of (Ability being cast) for Caster[35])))) of Points[35] matching (((((Matching unit) is alive) Equal to True) and (((Matching unit) is in K_Group[2]) Equal to False)) and (((Owner of (Matching unit)) is an enemy of (Owner
        Unit Group - Pick every unit in UnitGroups[35] and do (Actions)
            Loop - Actions
                If ((Level of Tornadoes  for Caster[35]) Equal to 1) then do (Unit - Cause Caster[35] to damage (Picked unit), dealing Dame damage of attack type Spells and damage type Normal) else do (Do nothing)
                If ((Level of Tornadoes  for Caster[35]) Equal to 2) then do (Unit - Cause Caster[35] to damage (Picked unit), dealing Dame damage of attack type Spells and damage type Normal) else do (Do nothing)
                If ((Level of Tornadoes  for Caster[35]) Equal to 3) then do (Unit - Cause Caster[35] to damage (Picked unit), dealing Dame damage of attack type Spells and damage type Normal) else do (Do nothing)
                If ((Level of Tornadoes  for Caster[35]) Equal to 4) then do (Unit - Cause Caster[35] to damage (Picked unit), dealing Dame damage of attack type Spells and damage type Normal) else do (Do nothing)
                If ((Level of Tornadoes  for Caster[35]) Equal to 5) then do (Unit - Cause Caster[35] to damage (Picked unit), dealing Dame damage of attack type Spells and damage type Normal) else do (Do nothing)
        -------- Leak --------
        Unit Group - Remove all units from UnitGroups[35]

dùng array làm gì hả bạn? thừa thãi và 5 cái dòng if là thừa ko cần thiết. và base từ cluster thì lỗi nghiêm trọng này
Set Caster[34] = (Target unit of ability being cast)
mà đáng ra phải là
Set TargetPoint = (Target point of ability being cast)
 
Cho em hỏi cách làm mấy Item Active như kiểu Armlet với Blink Dagger trong Dota
(Armlet: Active là nó đổi Icon + 1 vài effect này nọ
Blink Dagger: Khi con cầm cái Blink Dagger bị nhận damage thì item sẽ đổi icon, description đồng thời không sử dụng được)
Em nghĩ đến vụ đặt Action là cho Hero Drop item đó, đồng thời Hide nó đi, rồi give hero item khác, nhưng như thế hình như sẽ bị đổi vị trí item khi inventory còn slot trống.
 
thế này nhá, lúc nhận damage -> lắp hết các slot trống (item fade) -> drop and give item khác -> Remove các item fade -> đơi 1 chút -> lắp hết các slot trống (item fade) -> drop item khác và give lại item cũ -> Remove các item fade, như thế sẽ không bị chạy chỗ item, mẹo thôi, không thì dùng system ItemUlti nhé
 
Ai cho hỏi làm sao để tạo lightning effect giống soul steal trong dota vậy?
 
Ai cho hỏi skill nào lên + như màu vàng mà + máu/mana

---------- Post added at 17:10 ---------- Previous post was at 16:40 ----------

Cho hỏi làm sao sắp xếp vi trí item trong shop
 
vẫn k có dame bạn ạk, chỉnh chỗ Dame như thế nào?
Tưởng phải là Damage chứ bạn hihi
thế này nhá, lúc nhận damage -> lắp hết các slot trống (item fade) -> drop and give item khác -> Remove các item fade -> đơi 1 chút -> lắp hết các slot trống (item fade) -> drop item khác và give lại item cũ -> Remove các item fade, như thế sẽ không bị chạy chỗ item, mẹo thôi, không thì dùng system ItemUlti nhé
Cám ơn KulKan xD. Anw, muốn làm thêm 2 cái nữa là khi Item Cooldown thì không drop được với anti pump như nào nhỉ :'> (mute item như Dota :D)
 
Sorry, cho mình hỏi thêm, chẳng hạn là con búa lùn đánh Footman 1 xong rồi đánh con Footman 2 vân vân,.. Sau 4 lần đánh thì dam nó tăng 50% thì phải làm sao. Cám ơn đoạn code của bạn lonewolf020291. Nhưng đoạn code đó chỉ có tác dụng khi Hero tấn công "duy nhất" 1 unit đủ 4 lần, còn trường hơp 1 Hero đánh nhiều unit nhưng sau khi đánh đủ 4 lần thì phải làm ntn ?? Xin lỗi vì đã làm phiền nhưng mình kô giỏi (hay kô đủ thông minh) để viết code. Cám ơn các bạn. Đây là 2 triggers của lonewolf020291.

Trigger 1
Events
Unit - A unit Learns a skill
Conditions
(Learned Hero Skill) Equal to Bonus Attack
Actions
Set D_Hero = (Learning Hero)
Trigger - Turn on Trigger 2 <gen>

Trigger 2 // cái này để off sẵn
Events
Unit - A unit Is attacked
Conditions
(Attacking unit) Equal to D_Hero
Actions
Trigger - Turn off (This trigger)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Attacked unit) Equal to D_Unit
Then - Actions
Set D_Count = (D_Count + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
D_Count Equal to 4
Then - Actions
Unit - Create 1 Dummy for (Owner of D_Hero) at (Position of D_Hero) facing Default building facing degrees
Unit - Add Roar to (Last created unit)
Unit - Order (Last created unit) to Night Elf Druid Of The Claw - Roar
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Else - Actions
Else - Actions
Set D_Unit = (Attacked unit)
Set D_Count = 1
Trigger - Turn on (This trigger)
 
Sorry, cho mình hỏi thêm, chẳng hạn là con búa lùn đánh Footman 1 xong rồi đánh con Footman 2 vân vân,.. Sau 4 lần đánh thì dam nó tăng 50% thì phải làm sao. Cám ơn đoạn code của bạn lonewolf020291. Nhưng đoạn code đó chỉ có tác dụng khi Hero tấn công "duy nhất" 1 unit đủ 4 lần, còn trường hơp 1 Hero đánh nhiều unit nhưng sau khi đánh đủ 4 lần thì phải làm ntn ?? Xin lỗi vì đã làm phiền nhưng mình kô giỏi (hay kô đủ thông minh) để viết code. Cám ơn các bạn. Đây là 2 triggers của lonewolf020291.

thì bạn chỉnh thành greater than 4
 
Mã:
Trigger 2 // cái này để off sẵn
Events
Unit - A unit Is attacked
Conditions
(Attacking unit) Equal to D_Hero
Actions
Trigger - Turn off (This trigger)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
[U][B](Attacked unit) Equal to D_Unit[/B][/U]
Then - Actions
Set D_Count = (D_Count + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
D_Count Equal to 4
Then - Actions
Unit - Create 1 Dummy for (Owner of D_Hero) at (Position of D_Hero) facing Default building facing degrees
Unit - Add Roar to (Last created unit)
Unit - Order (Last created unit) to Night Elf Druid Of The Claw - Roar
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Else - Actions
Else - Actions
Set D_Unit = (Attacked unit)
Set D_Count = 1
Trigger - Turn on (This trigger)
Bỏ dòng in đậm đi là được


Post thứ 2: Mình vào JassNewGen ko đc, khi nhấn enter vào file JNG.exe thì ko có hiện tượng gì xảy ra, và có bạn chỉ mình mở WE.bat lên, khi mở lên thì bị lỗi như hình. Bạn nào biết cách khắc phục thì chỉ giúp mình. Cám ơn
untitled3-1.jpg
 
Chỉnh sửa cuối:
Status
Không mở trả lời sau này.
Back
Top