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

Status
Không mở trả lời sau này.
^
^ Thanks cậu nhiều, mình sửa được rồi, nhưng không phải lỗi UMSWE hay JNGP mà lỗi file trong thư mục UI


Có cách nào điều khiển ánh sáng của map ko, mình muốn khi vào dungeon thì ánh sáng sẽ tối lại như ban đêm nhưng ko thay đổi giờ trong game.
Thanks

Có thể dùng fog màu đen để tạo hiệu ứng cũng được.

Cho em xin lệnh defend của Footman, Captain (và con j màu đỏ ở phần Campaigns của Human ấy em quên tên rùi).
Thì dùng defend thôi 8-|
Mã:
Unit - Order [COLOR="#FF0000"]unit[/COLOR] to defend
 
Chỉnh sửa cuối:

Thì dùng defend thôi 8-|
Mã:
Unit - Order [COLOR="#FF0000"]unit[/COLOR] to defend

Em muốn dùng khi nó ko có skill defend cơ.

---------- Post added at 16:28 ---------- Previous post was at 16:25 ----------

Ý em là dùng Custom Spirit ấy.
 
Moị người cho hỏi: Sao hôm nay khi mở map làm mọi ngày bằng jassnewgen ( bt cũng jassnewgen) thì load xong nó dis vậy? Map khác vẫn bt
 
ae giúp mình cái này với:
Mình làm cái spell nhưng khi tạo ra dummy xung quanh theo vòng tròn thì con dummy đó không tự xuất spell chain lighting ra :(
Mã:
Untitled Trigger 002
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to LOLOLOLOLOLOL 
    Actions
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                Unit - Create 1 dummy for (Owner of (Triggering unit)) at ((Position of (Casting unit)) offset by 400.00 towards ((Real((Integer A))) x 40.00) degrees) facing Default building facing degrees
                Unit - Set level of Chain Lightning for (Last created unit) to (Level of LOLOLOLOLOLOL  for (Triggering unit))
                Unit - Order (Last created unit) to Orc Far Seer - Chain Lightning (Attacked unit)
                Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
 
ae giúp mình cái này với:
Mình làm cái spell nhưng khi tạo ra dummy xung quanh theo vòng tròn thì con dummy đó không tự xuất spell chain lighting ra :(
Mã:
Untitled Trigger 002
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to LOLOLOLOLOLOL 
    Actions
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                Unit - Create 1 dummy for (Owner of (Triggering unit)) at ((Position of (Casting unit)) offset by 400.00 towards ((Real((Integer A))) x 40.00) degrees) facing Default building facing degrees
                Unit - Set level of Chain Lightning for (Last created unit) to (Level of LOLOLOLOLOLOL  for (Triggering unit))
                Unit - Order (Last created unit) to Orc Far Seer - Chain Lightning [B](Attacked unit)[/B]
                Unit - Add a 10.00 second Generic expiration timer to (Last created unit)

Attacked unit ở đâu ra vậy :-/.
 
Cho hỏi :|
Map mình đặt những region ở 2 team, làm trigger khi team khác bươc vào thì trừ 3 điểm mỗi chỉ số (Str,Agi,Intel, base từ Attribute Bonus chỉnh số âm) thì đc. Nhưng khi làm abilily đó nhiều level để khi phá một trụ sẽ set + 1 rồi set level của ability này cũng + 1 thì ko đc. Vẫn -3. Đây là trigger
Region bên team 2
Mã:
Region 1
    Events
        Unit - A unit enters Invunerable Team 2 <gen>
        Unit - A unit enters Region 037 <gen>
        Unit - A unit enters Region 038 <gen>
        Unit - A unit enters Region 039 <gen>
        Unit - A unit enters Region 040 <gen>
        Unit - A unit enters Region 041 <gen>
        Unit - A unit enters Region 042 <gen>
        Unit - A unit enters Region 043 <gen>
        Unit - A unit enters Region 044 <gen>
        Unit - A unit enters Region 045 <gen>
        Unit - A unit enters Region 046 <gen>
        Unit - A unit enters Region 047 <gen>
        Unit - A unit enters Region 048 <gen>
        Unit - A unit enters Region 049 <gen>
        Unit - A unit enters Region 050 <gen>
        Unit - A unit enters Region 051 <gen>
    Conditions
        ((Entering unit) is A Hero) Equal to True
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Entering unit) belongs to an ally of Player 1 (Red)) Equal to True
            Then - Actions
                Unit - Add Tru Chi So  to (Entering unit)
                Unit - Set level of Tru Chi So  for (Entering unit) to Level_Truchiso[1]
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Entering unit) belongs to an enemy of Player 1 (Red)) Equal to True
            Then - Actions
                Unit - Remove Tru Chi So  from (Entering unit)
            Else - Actions
Region bên team 1
Mã:
Region 2
    Events
        Unit - A unit enters Invunerable Team 1 <gen>
        Unit - A unit enters Region 052 <gen>
        Unit - A unit enters Region 053 <gen>
        Unit - A unit enters Region 054 <gen>
        Unit - A unit enters Region 055 <gen>
        Unit - A unit enters Region 065 <gen>
        Unit - A unit enters Region 056 <gen>
        Unit - A unit enters Region 057 <gen>
        Unit - A unit enters Region 058 <gen>
        Unit - A unit enters Region 059 <gen>
        Unit - A unit enters Region 060 <gen>
        Unit - A unit enters Region 061 <gen>
        Unit - A unit enters Region 062 <gen>
        Unit - A unit enters Region 063 <gen>
        Unit - A unit enters Region 064 <gen>
        Unit - A unit enters Region 065 <gen>
        Unit - A unit enters Region 066 <gen>
        Unit - A unit enters Region 067 <gen>
    Conditions
        ((Entering unit) is A Hero) Equal to True
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Entering unit) belongs to an enemy of Player 1 (Red)) Equal to True
            Then - Actions
                Unit - Add Tru Chi So  to (Entering unit)
                Unit - Set level of Tru Chi So  for (Entering unit) to Level_Truchiso[2]
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Entering unit) belongs to an ally of Player 1 (Red)) Equal to True
            Then - Actions
                Unit - Remove Tru Chi So  from (Entering unit)
            Else - Actions
Region đây là ở giữa, tức vào ko trừ
Mã:
Region 3
    Events
        Unit - A unit enters Region 068 <gen>
        Unit - A unit enters Region 069 <gen>
        Unit - A unit enters Region 070 <gen>
        Unit - A unit enters Region 071 <gen>
        Unit - A unit enters Region 072 <gen>
        Unit - A unit enters Region 073 <gen>
        Unit - A unit enters Region 074 <gen>
        Unit - A unit enters Region 075 <gen>
        Unit - A unit enters Region 076 <gen>
        Unit - A unit enters Region 077 <gen>
        Unit - A unit enters Region 078 <gen>
        Unit - A unit enters Region 079 <gen>
        Unit - A unit enters Region 080 <gen>
        Unit - A unit enters Region 081 <gen>
        Unit - A unit enters Region 082 <gen>
        Unit - A unit enters Region 083 <gen>
        Unit - A unit enters Region 084 <gen>
        Unit - A unit enters Region 085 <gen>
        Unit - A unit enters Region 086 <gen>
        Unit - A unit enters Region 087 <gen>
        Unit - A unit enters Region 088 <gen>
        Unit - A unit enters Region 089 <gen>
        Unit - A unit enters Region 090 <gen>
        Unit - A unit enters Region 091 <gen>
        Unit - A unit enters Region 092 <gen>
        Unit - A unit enters Region 093 <gen>
        Unit - A unit enters Region 094 <gen>
        Unit - A unit enters Region 095 <gen>
        Unit - A unit enters Region 096 <gen>
        Unit - A unit enters Region 097 <gen>
        Unit - A unit enters Region 098 <gen>
    Conditions
        ((Entering unit) is A Hero) Equal to True
    Actions
        Unit - Remove Tru Chi So  from (Entering unit)
Và trigger khi nhà team nào bể thì set biến để tăng level của ability đó lên
Mã:
Vulnerable 2
    Events
        Unit - A unit Dies
    Conditions
        (Unit-type of (Dying unit)) Equal to |cff008000Cæ thô cÊp 1|r
    Actions
        Set Level_Truchiso[2] = (Level_Truchiso[2] + 1)
Mã:
Vulnerable 6
    Events
        Unit - A unit Dies
    Conditions
        (Unit-type of (Dying unit)) Equal to |cff8A2BE2Vßi quû cÊp 1|r
    Actions
        Set Level_Truchiso[1] = (Level_Truchiso[1] + 1)
^ Tượng trưng chứ có nhiều trigger với level của tower khác nhau.
 
vậy sao không sửa đi :6cool_surrender:
Mà Tiện mình hỏi thêm vài câu :D :
làm sao để làm đi như kiểu goku trượt băng.

Sửa kiểu gì, trong trigger chỉ có triggering unit với last created unit là dùng được.
Hỏi thế thì chỉ biết nói chỗ nào sai thôi, còn sửa như nào thì chịu.

Câu dưới, dùng Slide.
Gợi ý tí là nó dùng region, khi vào region thì unit sẽ bị slide đi, góc là hướng mặt của unit, khi nào rời khỏi region thì không slide nữa, hoặc có thể ngược lại.
 
ai cho xin link down các map, model bên china,lâu quá ko vào quên hết rùi :5cool_beat_plaster:
 
Sửa kiểu gì, trong trigger chỉ có triggering unit với last created unit là dùng được.
Hỏi thế thì chỉ biết nói chỗ nào sai thôi, còn sửa như nào thì chịu.

Câu dưới, dùng Slide.
Gợi ý tí là nó dùng region, khi vào region thì unit sẽ bị slide đi, góc là hướng mặt của unit, khi nào rời khỏi region thì không slide nữa, hoặc có thể ngược lại.
Mình chỉnh thành ntn nhưng không được
Mã:
Storm Hammer
    Events
        Unit - A unit enters Region 000 <gen>
    Conditions
        (Random integer number between 1 and 100) Equal to 100
    Actions
        Set TempUnit = (Entering unit)
        Set SlideIndex = (SlideIndex + 1)
        Set SlideUnit[SlideIndex] = (Entering unit)
        Set TempLoc = (Position of TempUnit)
        Set TempLoc2 = (Position of SlideUnit[SlideIndex])
        Set SlideAngle[SlideIndex] = (Angle from TempLoc to TempLoc2)
        Set SlideTick[SlideIndex] = 20
        Set SlideDistance[SlideIndex] = ((90.00 + (30.00 x (Real(TempInt)))) / (Real(SlideTick[SlideIndex])))
        Custom script:   call RemoveLocation( udg_TempLoc )
        Custom script:   call RemoveLocation( udg_TempLoc2 )
        -------- -------------------- --------
        Animation - Play TempUnit's attack slam animation
        Animation - Queue TempUnit's ready animation
Có gì nếu mà sai thì làm giúp mình cái trigger luôn nhé :) Newbie Gà Nên cần mọi người chỉ rõ không thì không biết được
 
Mình chỉnh thành ntn nhưng không được
Mã:
Storm Hammer
    Events
        Unit - A unit enters Region 000 <gen>
    Conditions
        (Random integer number between 1 and 100) Equal to 100
    Actions
        Set TempUnit = (Entering unit)
        Set SlideIndex = (SlideIndex + 1)
        Set SlideUnit[SlideIndex] = (Entering unit)
        Set TempLoc = (Position of TempUnit)
        Set TempLoc2 = (Position of SlideUnit[SlideIndex])
        Set SlideAngle[SlideIndex] = (Angle from TempLoc to TempLoc2)
        Set SlideTick[SlideIndex] = 20
        Set SlideDistance[SlideIndex] = ((90.00 + (30.00 x (Real(TempInt)))) / (Real(SlideTick[SlideIndex])))
        Custom script:   call RemoveLocation( udg_TempLoc )
        Custom script:   call RemoveLocation( udg_TempLoc2 )
        -------- -------------------- --------
        Animation - Play TempUnit's attack slam animation
        Animation - Queue TempUnit's ready animation
Có gì nếu mà sai thì làm giúp mình cái trigger luôn nhé :) Newbie Gà Nên cần mọi người chỉ rõ không thì không biết được

Mã:
Storm Hammer
    Events
        Unit - A unit enters Region 000 <gen>
    Conditions
    Actions
        Set TempUnit = (Entering unit)
        Set SlideIndex = (SlideIndex + 1)
        Set SlideUnit[SlideIndex] = (Entering unit)
        Set TempLoc = (Position of TempUnit)
        Set TempLoc2 = (Position of SlideUnit[SlideIndex])
        Set SlideAngle[SlideIndex] = (Facing of TempUnit)
        Set SlideDistance[SlideIndex] = 20
        Custom script:   call RemoveLocation( udg_TempLoc )
        Custom script:   call RemoveLocation( udg_TempLoc2 )

Trường hợp này không dùng SlideTick nhé.
Trong bài có nói slide tức là move unit nhiều lần
SlideDistance là khoảng cách move mỗi lần, SlideDistance càng lớn thì unit "trượt" càng nhanh.
Thực ra Slide quan trọng nhất là 2 hàm này:

Mã:
Set TempLoc2 = (TempLoc offset by SlideDistance[(Integer A)] towards SlideAngle[(Integer A)] degrees)
Unit - Move SlideUnit[(Integer A)] instantly to TempLoc2
Chỉ cần hiểu slide là như thế nào thì việc sử dụng slide không khó. Cái này thì cố gắng tự tư duy mà hiểu chứ giải thích thì khó lắm.
 
Mã:
Storm Hammer
    Events
        Unit - A unit enters Region 000 <gen>
    Conditions
    Actions
        Set TempUnit = (Entering unit)
        Set SlideIndex = (SlideIndex + 1)
        Set SlideUnit[SlideIndex] = (Entering unit)
        Set TempLoc = (Position of TempUnit)
        Set TempLoc2 = (Position of SlideUnit[SlideIndex])
        Set SlideAngle[SlideIndex] = (Facing of TempUnit)
        Set SlideDistance[SlideIndex] = 20
        Custom script:   call RemoveLocation( udg_TempLoc )
        Custom script:   call RemoveLocation( udg_TempLoc2 )


Trường hợp này không dùng SlideTick nhé.
Trong bài có nói slide tức là move unit nhiều lần
SlideDistance là khoảng cách move mỗi lần, SlideDistance càng lớn thì unit "trượt" càng nhanh.
Thực ra Slide quan trọng nhất là 2 hàm này:

Mã:
Set TempLoc2 = (TempLoc offset by SlideDistance[(Integer A)] towards SlideAngle[(Integer A)] degrees)
Unit - Move SlideUnit[(Integer A)] instantly to TempLoc2
Chỉ cần hiểu slide là như thế nào thì việc sử dụng slide không khó. Cái này thì cố gắng tự tư duy mà hiểu chứ giải thích thì khó lắm.
làm như thế này rồi nhưng khi vào region đó thì vẫn không được bạn ak :(
Mà không phải theo kiểu region mà là theo kiểu terrain thì chắc là khó lắm nhỉ :3cool_nosebleed:
 
làm như thế này rồi nhưng khi vào region đó thì vẫn không được bạn ak :(
Mà không phải theo kiểu region mà là theo kiểu terrain thì chắc là khó lắm nhỉ :3cool_nosebleed:

Mã:
SlideMove  // ko cần OFF sẵn, cứ ON luôn
    Events
        Time - Every 0.04 seconds of game time
    Conditions
    Actions
        For each (Integer A) from 1 to SlideIndex, do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        SlideTick[(Integer A)] Equal to 0
                    Then - Actions
                        For each (Integer B) from (Integer A) to (SlideIndex - 1), do (Actions)
                            Loop - Actions
                                Set SlideAngle[(Integer B)] = SlideAngle[((Integer B) + 1)]
                                Set SlideDistance[(Integer B)] = SlideDistance[((Integer B) + 1)]
                                Set SlideTick[(Integer B)] = SlideTick[((Integer B) + 1)]
                                Set SlideUnit[(Integer B)] = SlideUnit[((Integer B) + 1)]
                        Set SlideIndex = (SlideIndex - 1)
                    Else - Actions
                -------- ---------------- --------
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        SlideTick[(Integer A)] Greater than 0
                    Then - Actions
                        Set SlideTick[(Integer A)] = (SlideTick[(Integer A)] - 1)
                        Set TempLoc = (Position of SlideUnit[(Integer A)])
                        Set TempLoc2 = (TempLoc offset by SlideDistance[(Integer A)] towards SlideAngle[(Integer A)] degrees)
                        Unit - Move SlideUnit[(Integer A)] instantly to TempLoc2
                        Special Effect - Create a special effect at TempLoc2 using Abilities\Spells\Human\FlakCannons\FlakTarget.mdl
                        Destructible - Pick every destructible within 200.00 of TempLoc2 and do (Actions)
                            Loop - Actions
                                Destructible - Kill (Picked destructible)
                        Custom script:   call RemoveLocation( udg_TempLoc )
                        Custom script:   call RemoveLocation( udg_TempLoc2 )
                    Else - Actions

Làm cái này chưa ?
 
Status
Không mở trả lời sau này.
Back
Top