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

Status
Không mở trả lời sau này.
Mình mới tập làm MUI bắt chước 1 cái spell MUI khác,mà sao chỉ xài được 1 lần,xài lần thứ 2 là không có gì,ai xem giúp mình trigger dưới


Mã:
Events
    Unit - A unit Begins casting an ability

Conditions
    (Ability being cast) Equal to Quyen Dieu Phi Khong 

Actions
    Set Int_QuyenDieu = (Int_QuyenDieu + 1)
    Set Unt_QuyenDieu[Int_QuyenDieu] = (Triggering unit)
    Set Deg_QuyenDieu[Int_QuyenDieu] = (Facing of Unt_QuyenDieu[Int_QuyenDieu])
    Set Loc_QuyenDieu1[1] = (Position of Unt_QuyenDieu[Int_QuyenDieu])
    Set Tik_QuyenDieu[Int_QuyenDieu] = (25 + (5 x (Level of Quyen Dieu Phi Khong  for Unt_QuyenDieu[Int_QuyenDieu])))
    Unit - Turn collision for Unt_QuyenDieu[Int_QuyenDieu] Off
    Special Effect - Create a special effect attached to the (hand + left) of Unt_QuyenDieu[Int_QuyenDieu] using Abilities\Weapons\IllidanMissile\IllidanMissile.mdl
    Set q1 = (Last created special effect)
    Special Effect - Create a special effect attached to the (hand + right) of Unt_QuyenDieu[Int_QuyenDieu] using Abilities\Weapons\IllidanMissile\IllidanMissile.mdl
    Set q2 = (Last created special effect)
    Special Effect - Create a special effect attached to the foot of Unt_QuyenDieu[Int_QuyenDieu] using Abilities\Weapons\IllidanMissile\IllidanMissile.mdl
    Set q3 = (Last created special effect)
    Special Effect - Create a special effect attached to the chest of Unt_QuyenDieu[Int_QuyenDieu] using Abilities\Spells\NightElf\TargetArtLumber\TargetArtLumber.mdl
    Set q4 = (Last created special effect)
    Special Effect - Create a special effect attached to the origin of Unt_QuyenDieu[Int_QuyenDieu] using Abilities\Spells\NightElf\TargetArtLumber\TargetArtLumber.mdl
    Set q5 = (Last created special effect)
    Animation - Change Unt_QuyenDieu[Int_QuyenDieu]'s vertex coloring to (0.00%, 100.00%, 0.00%) with 40.00% transparency
    Custom script:   call RemoveLocation(udg_Loc_QuyenDieu1[1])
    Trigger - Turn on Quyen Dieu Slide <gen>
    Wait (0.01 x (Real(Tik_QuyenDieu[Int_QuyenDieu]))) seconds
    Unit - Turn collision for Unt_QuyenDieu[Int_QuyenDieu] On
    Animation - Change Unt_QuyenDieu[Int_QuyenDieu]'s vertex coloring to (0.00%, 100.00%, 0.00%) with 0.00% transparency
    Special Effect - Destroy q1
    Special Effect - Destroy q2
    Special Effect - Destroy q3
    Special Effect - Destroy q4
    Special Effect - Destroy q5

Mã:
Events
    Time - Every 0.01 seconds of game time

Actions
    For each (Integer QD) from 1 to Int_QuyenDieu, do (Actions)
        Loop - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                If - Conditions
                    Tik_QuyenDieu[QD] Less than or equal to 0
                Then - Actions
                    Trigger - Turn off (This trigger)
                    Skip remaining actions
                    Set Unt_QuyenDieu[QD] = No unit
                    Set Int_QuyenDieu = 0
                Else - Actions
                    Set Tik_QuyenDieu[QD] = (Tik_QuyenDieu[QD] - 1)
                    Set Loc_QuyenDieu1[1] = (Position of Unt_QuyenDieu[QD])
                    Set Loc_QuyenDieu2[1] = (Loc_QuyenDieu1[1] offset by 20.00 towards Deg_QuyenDieu[QD] degrees)
                    Unit - Move Unt_QuyenDieu[QD] instantly to Loc_QuyenDieu2[1], facing Deg_QuyenDieu[QD] degrees
                    Set UnitGroupArray[53] = (Units within 170.00 of Loc_QuyenDieu2[1] matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) belongs to an enemy of (Owner of Unt_QuyenDieu[QD])) Equal to True) and ((((Matching unit) is alive) Equal to True) and (((Matching un
                    Unit Group - Pick every unit in UnitGroupArray[53] and do (Actions)
                        Loop - Actions
                            Unit - Cause Unt_QuyenDieu[QD] to damage (Picked unit), dealing (5.00 x (Real((Level of Quyen Dieu Phi Khong  for Unt_QuyenDieu[QD])))) damage of attack type Chaos and damage type Divine
                            Special Effect - Create a special effect attached to the head of (Picked unit) using Abilities\Spells\Other\Cleave\CleaveDamageTarget.mdl
                            Special Effect - Destroy (Last created special effect)
                    Custom script:   call RemoveLocation(udg_Loc_QuyenDieu1[1])
                    Custom script:   call RemoveLocation(udg_Loc_QuyenDieu2[2])
                    Custom script:   call DestroyGroup (udg_UnitGroupArray[53])

Và mình làm 2slot ob ở map HD nhưng dẫn đến tình trạng ob có visibility thành ra 2 team vẫn có thể nhìn thấy bên kia khi đang invi mà ko cần tới dust,khắc phục sự cố này như nào hở mọi ng ?

huhu,không ai xem giúp với à :-ss gần 2 ngày rồi.
 
Mình định làm mội map singer player là "con lai" của 2 thể loại campain và " thể loại dạng như dota là gì vậy" defense hay Offense. Đến đoạn làm động đất toàn màn hình (ai chơi warIII-FS ở chế độ campain đến khi chơi hero gì đó mà ở dota là phantom assassin thì sẽ thấy hiệu ứng này) thì "tắc tị". Vậy cho hỏi cách làm động đất toàn màn hình và làm trigger thay đổi terran.
 
Mình định làm mội map singer player là "con lai" của 2 thể loại campain và " thể loại dạng như dota là gì vậy" defense hay Offense. Đến đoạn làm động đất toàn màn hình (ai chơi warIII-FS ở chế độ campain đến khi chơi hero gì đó mà ở dota là phantom assassin thì sẽ thấy hiệu ứng này) thì "tắc tị". Vậy cho hỏi cách làm động đất toàn màn hình và làm trigger thay đổi terran.

1/ Dota là Hero defense
2/ Động đất thì:
Mã:
Camera - Shake the camera for [I][U]Player 1 (Red)[/U][/I] with magnitude [I][U]3.00[/U][/I]
Khi nào muốn dừng thì
Mã:
Camera - Stop swaying/shaking the camera for [I][U]Player 1 (Red)[/U][/I]
3/ Dota phantom assassin trong warcraft là Warden
4/ Thay đổi terrain thì trong phần action - environment nhé \:D/



huhu,không ai xem giúp với à :-ss gần 2 ngày rồi.

Mình chưa xem hết vì bận làm biếng. Nhưng thấy trong đoạn code trên có action turn off trigger, làm MUI mà turn off thì...
 
Mình mới tập làm MUI bắt chước 1 cái spell MUI khác,mà sao chỉ xài được 1 lần,xài lần thứ 2 là không có gì,ai xem giúp mình trigger dưới


Mã:
Events
    Unit - A unit Begins casting an ability

Conditions
    (Ability being cast) Equal to Quyen Dieu Phi Khong 

Actions
[COLOR=#ff0000]    Set Int_QuyenDieu = (Int_QuyenDieu + 1)
[/COLOR]    Set Unt_QuyenDieu[Int_QuyenDieu] = (Triggering unit)
    Set Deg_QuyenDieu[Int_QuyenDieu] = (Facing of Unt_QuyenDieu[Int_QuyenDieu])
    Set Loc_QuyenDieu1[1] = (Position of Unt_QuyenDieu[Int_QuyenDieu])
    Set Tik_QuyenDieu[Int_QuyenDieu] = (25 + (5 x (Level of Quyen Dieu Phi Khong  for Unt_QuyenDieu[Int_QuyenDieu])))
    Unit - Turn collision for Unt_QuyenDieu[Int_QuyenDieu] Off
    Special Effect - Create a special effect attached to the (hand + left) of Unt_QuyenDieu[Int_QuyenDieu] using Abilities\Weapons\IllidanMissile\IllidanMissile.mdl
    [COLOR=#ff0000]Set q1 = (Last created special effect)
[/COLOR]    Special Effect - Create a special effect attached to the (hand + right) of Unt_QuyenDieu[Int_QuyenDieu] using Abilities\Weapons\IllidanMissile\IllidanMissile.mdl
    [COLOR=#ff0000]Set q2 = (Last created special effect)
[/COLOR]    Special Effect - Create a special effect attached to the foot of Unt_QuyenDieu[Int_QuyenDieu] using Abilities\Weapons\IllidanMissile\IllidanMissile.mdl
    [COLOR=#ff0000]Set q3 = (Last created special effect)
[/COLOR]    Special Effect - Create a special effect attached to the chest of Unt_QuyenDieu[Int_QuyenDieu] using Abilities\Spells\NightElf\TargetArtLumber\TargetArtLumber.mdl
[COLOR=#ff0000]    Set q4 = (Last created special effect)
[/COLOR]    Special Effect - Create a special effect attached to the origin of Unt_QuyenDieu[Int_QuyenDieu] using Abilities\Spells\NightElf\TargetArtLumber\TargetArtLumber.mdl
   [COLOR=#ff0000] Set q5 = (Last created special effect)
[/COLOR]    Animation - Change Unt_QuyenDieu[Int_QuyenDieu]'s vertex coloring to (0.00%, 100.00%, 0.00%) with 40.00% transparency
    Custom script:   call RemoveLocation(udg_Loc_QuyenDieu1[1])
    Trigger - Turn on Quyen Dieu Slide <gen>
  [COLOR=#ff0000]  Wait (0.01 x (Real(Tik_QuyenDieu[Int_QuyenDieu]))) seconds[/COLOR][COLOR=#008000] // MUI rồi thì hok nên sử dụng wait conditions :-?? ( đều đó là không khuyến nghị chứ không phải là bắt buộc)
[/COLOR]    Unit - Turn collision for Unt_QuyenDieu[Int_QuyenDieu] On
    Animation - Change Unt_QuyenDieu[Int_QuyenDieu]'s vertex coloring to (0.00%, 100.00%, 0.00%) with 0.00% transparency
 [COLOR=#ff0000]   Special Effect - Destroy q1 // [/COLOR][COLOR=#008000]đã MUI rồi mà hok có arrary :-??[/COLOR][COLOR=#ff0000][COLOR=#008000]
[/COLOR]    Special Effect - Destroy q2
    Special Effect - Destroy q3
    Special Effect - Destroy q4
    Special Effect - Destroy q5[/COLOR]

Mã:
Events
    [COLOR=#ff0000]Time - Every 0.01 seconds of game time [/COLOR][COLOR=#008000]// khuyến nghị 0.02s hoặc 0.03s thôi chứ 0.01 thì ...
[/COLOR]
Actions
    For each (Integer QD) from 1 to Int_QuyenDieu, do (Actions)
        Loop - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                If - Conditions
                    [COLOR=#ff0000]Tik_QuyenDieu[QD] Less than or equal to 0 [/COLOR][COLOR=#008000]// Less than 1
[/COLOR]                Then - Actions
                    Trigger - Turn off (This trigger)
                   [COLOR=#ff0000] Skip remaining actions [/COLOR][COLOR=#008000]//dòng này bắt buộc để dưới hơn Int_QuyenDieu[/COLOR][COLOR=#ff0000][COLOR=#008000]
[/COLOR]                    Set Unt_QuyenDieu[QD] = No unit
                    Set Int_QuyenDieu = 0
[/COLOR]                Else - Actions
                    Set Tik_QuyenDieu[QD] = (Tik_QuyenDieu[QD] - 1)
                    Set Loc_QuyenDieu1[1] = (Position of Unt_QuyenDieu[QD])
                    Set Loc_QuyenDieu2[1] = (Loc_QuyenDieu1[1] offset by 20.00 towards Deg_QuyenDieu[QD] degrees)
                    Unit - Move Unt_QuyenDieu[QD] instantly to Loc_QuyenDieu2[1], facing Deg_QuyenDieu[QD] degrees
                    Set UnitGroupArray[53] = (Units within 170.00 of Loc_QuyenDieu2[1] matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) belongs to an enemy of (Owner of Unt_QuyenDieu[QD])) Equal to True) and ((((Matching unit) is alive) Equal to True) and (((Matching un
                    Unit Group - Pick every unit in UnitGroupArray[53] and do (Actions)
                        Loop - Actions
                            Unit - Cause Unt_QuyenDieu[QD] to damage (Picked unit), dealing (5.00 x (Real((Level of Quyen Dieu Phi Khong  for Unt_QuyenDieu[QD])))) damage of attack type Chaos and damage type Divine
                            Special Effect - Create a special effect attached to the head of (Picked unit) using Abilities\Spells\Other\Cleave\CleaveDamageTarget.mdl
                            Special Effect - Destroy (Last created special effect)
                    Custom script:   call RemoveLocation(udg_Loc_QuyenDieu1[1])
                    Custom script:   call RemoveLocation(udg_Loc_QuyenDieu2[2])
                    Custom script:   call DestroyGroup (udg_UnitGroupArray[53])

Và mình làm 2slot ob ở map HD nhưng dẫn đến tình trạng ob có visibility thành ra 2 team vẫn có thể nhìn thấy bên kia khi đang invi mà ko cần tới dust,khắc phục sự cố này như nào hở mọi ng ?

có thể tại tớ già rồi hoa mắt chăng:| nên chỉ thấy được số lỗi đó thôi :|

P/S: khuyến mãi lun cái này :|
 
Chỉnh sửa cuối:
cho mình hỏi. tại sao khi mà mình up war3 lên 1.24e thì không vào được map editor.exe nữa.
anh em nào bik thì giúp mình với
 
Của bạn chắc bị lỗi gì chứ mình vào bình thường mà '@-@
 
bạn nào sửa dùm mấy dòng jass này thành Gui được không vậy?. Nếu được thì mình cảm ơn trước :D.
Mã:
function Trig_HeroSelect_Init_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_HMInt=GetForLoopIndexA()
set udg_HMCurrentSelectedUnit[udg_HMInt]=null
set udg_HMSelectedHero[udg_HMInt]=false
call TriggerRegisterPlayerSelectionEventBJ(gg_trg_HeroSelect_Click,ConvertedPlayer(udg_HMInt),true)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function InitTrig_HeroSelect_Init takes nothing returns nothing
set gg_trg_HeroSelect_Init=CreateTrigger()
call TriggerRegisterTimerEventSingle(gg_trg_HeroSelect_Init,.0)
call TriggerAddAction(gg_trg_HeroSelect_Init,function Trig_HeroSelect_Init_Actions)
endfunction
function Trig_HeroSelect_Init_Remove_Func002Func001Func001C takes nothing returns boolean
if((GetUnitTypeId(GetEnumUnit())=='e01H'))then
return true
endif
if((GetUnitTypeId(GetEnumUnit())=='e01L'))then
return true
endif
if((GetUnitTypeId(GetEnumUnit())=='e01I'))then
return true
endif
if((GetUnitTypeId(GetEnumUnit())=='e01J'))then
return true
endif
if((GetUnitTypeId(GetEnumUnit())=='e01K'))then
return true
endif
if((GetUnitTypeId(GetEnumUnit())=='e01F'))then
return true
endif
if((GetUnitTypeId(GetEnumUnit())=='e01G'))then
return true
endif
return false
endfunction
function Trig_HeroSelect_Init_Remove_Func002Func001C takes nothing returns boolean
if(not Trig_HeroSelect_Init_Remove_Func002Func001Func001C())then
return false
endif
return true
endfunction
function Trig_HeroSelect_Init_Remove_Func002A takes nothing returns nothing
if(Trig_HeroSelect_Init_Remove_Func002Func001C())then
call RemoveUnit(GetEnumUnit())
else
call DoNothing()
endif
endfunction
function Trig_HeroSelect_Init_Remove_Func004001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00E')
endfunction
function Trig_HeroSelect_Init_Remove_Func004A takes nothing returns nothing
call UnitAddAbilityBJ('Adts',GetEnumUnit())
endfunction
function Trig_HeroSelect_Init_Remove_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRectOfPlayer(GetPlayableMapRect(),Player(PLAYER_NEUTRAL_PASSIVE)),function Trig_HeroSelect_Init_Remove_Func002A)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_HeroSelect_Init_Remove_Func004001002)),function Trig_HeroSelect_Init_Remove_Func004A)
endfunction
function InitTrig_HeroSelect_Init_Remove takes nothing returns nothing
set gg_trg_HeroSelect_Init_Remove=CreateTrigger()
call TriggerRegisterTimerEventSingle(gg_trg_HeroSelect_Init_Remove,80.)
call TriggerAddAction(gg_trg_HeroSelect_Init_Remove,function Trig_HeroSelect_Init_Remove_Actions)
endfunction
function Trig_HeroSelect_Click_Func010C takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())=='e00Y'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='e00Z'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='e01E'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='e01H'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='e01L'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='e01I'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='e01J'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='e01K'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='e01F'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='e01G'))then
return true
endif
return false
endfunction
function Trig_HeroSelect_Click_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(PLAYER_NEUTRAL_PASSIVE)))then
return false
endif
if(not Trig_HeroSelect_Click_Func010C())then
return false
endif
return true
endfunction
function Trig_HeroSelect_Click_Actions takes nothing returns nothing
set udg_HMPlayer=GetTriggerPlayer()
set udg_HMUnit=GetTriggerUnit()
set udg_HMInt=GetConvertedPlayerId(udg_HMPlayer)
call PauseUnitBJ(true,FirstOfGroup(GetUnitsInRectOfPlayer(GetPlayableMapRect(),GetTriggerPlayer())))
call RemoveUnit(FirstOfGroup(GetUnitsInRectOfPlayer(GetPlayableMapRect(),GetTriggerPlayer())))
call CustomDefeatBJ(GetTriggerPlayer(),"Defeat!")
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+"®ang södông phÇn m_m hack map!"))
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+"sÏkh«ng c_quy_n tham gia trËn®Êu."))
endfunction
function InitTrig_HeroSelect_Click takes nothing returns nothing
set gg_trg_HeroSelect_Click=CreateTrigger()
call TriggerAddCondition(gg_trg_HeroSelect_Click,Condition(function Trig_HeroSelect_Click_Conditions))
call TriggerAddAction(gg_trg_HeroSelect_Click,function Trig_HeroSelect_Click_Actions)
endfunction
 
Chỉnh sửa cuối:
Trong dota, 1 số spell như Toss, Ethereal Jaunt (Puck) khi không đủ điều kiện để cast spell sẽ có 1 dòng thông báo màu vàng. Cho mình hỏi cách làm dòng thông báo đó?

cái đó người ta dùng cái SimError này này mô tả lại cái interface có sẵn của war3
GUI cũng dùng được chỉ cần Custom Script: call SimError(<Player>,"<Message>")

@taolahien00:bạn nào sửa dùm mấy dòng jass này thành Gui được không vậy?
Cái này thực ra là được nhưng mà chỉ có bạn có thể làm được khi đọc hiểu và tự làm lại = GUI thôi còn ko ai có thể giúp được cái này đâu
 
cho mình hỏi làm sao chỉnh 1 con unit thành invisible mà ngay cả đồng đội của nó cũng không thấy trừ khi mua Gem hoặc cắm mất vậy?
 
cho mình hỏi làm sao chỉnh 1 con unit thành invisible mà ngay cả đồng đội của nó cũng không thấy trừ khi mua Gem hoặc cắm mất vậy?

Hide nó đi :-"
Mã:
Unit - Hide [U][I]unit[/I][/U]
 
^: Vậy thì điều khiển unit đó = niềm tin à, cả vụ gem wards nữa.
 
^: Vậy thì điều khiển unit đó = niềm tin à, cả vụ gem wards nữa.

Zzz, nếu thế thì... chắc em nhầm 8-}. Nhớ lúc học làm cinematics có cái action làm ẩn unit mà vẫn điều khiển được. Hình như là
Mã:
[I][U]Animation - Change Unit's vertex coloring to (100.00%, 100.00%, 100.00%) with 100.00% transparency[/U][/I]
. Có điều vẫn hiện shadow + aura...
 
Làm sao để unit tự động đánh mà vẫn trigger được mấy cái skill dựa trên orb of lighting nhỉ
 
Làm sao để unit tự động đánh mà vẫn trigger được mấy cái skill dựa trên orb of lighting nhỉ

hok dc đâu :-? cái ability dựa trên orb of lightning nó chỉ có tác dụng bật khi click chuột vào unit ngoài ra tự động đánh thì hok dc
 
Ai giúp giùm e cái này nha :
Làm sai tạo 1 cái trigger mà .Khi 1 con quái bị mình giết chết tại 1 địa điểm , rồi sau 1 thời gian nhất định nó lại xuất hiện tại địa điểm đó .Như map Thiên kiếm của a Rex ấy
 
Ai giúp giùm e cái này nha :
Làm sai tạo 1 cái trigger mà .Khi 1 con quái bị mình giết chết tại 1 địa điểm , rồi sau 1 thời gian nhất định nó lại xuất hiện tại địa điểm đó .Như map Thiên kiếm của a Rex ấy
cho link này mà tham khảo "http://forum.gamevn.com/showthread.php?814976-System-Swap-Hero-System"
 
cho link này mà tham khảo "http://forum.gamevn.com/showthread.php?814976-System-Swap-Hero-System"

tham khảo cái gì? liên quan gì đến câu hỏi vậy? :-/
 
Cho bạn cái link tham khảo "http://forum.gamevn.com/showthread.php?814976-System-Swap-Hero-System"

---------- Post added at 18:41 ---------- Previous post was at 18:35 ----------

Ê sao mình gửi trả lời, trích dẫn mà không được
 
Mình có trigger này:
Mã:
Code Initialization
    Events
        Map initialization
    Conditions
    Actions
        Set PlayerColor[1] = |CFFFF0303
        Set PlayerColor[2] = |CFF0042FF
        Set PlayerColor[3] = |CFF1CB619
        Set PlayerColor[4] = |CFF540081
        Set PlayerColor[5] = |CFFFFFF01
        Set PlayerColor[6] = |CFFFE8A0E
        Set PlayerColor[7] = |CFF20C000
        Set PlayerColor[8] = |CFFE55BB0
        Set PlayerColor[9] = |CFF959697
        Set PlayerColor[10] = |CFF7EBFF1
        Set PlayerColor[11] = |CFF106246
        Set PlayerColor[12] = |CFF4E2A04
        Set Number_Array[1] = 0
        Set Number_Array[2] = 1
        Set Number_Array[3] = 2
        Set Number_Array[4] = 3
        Set Number_Array[5] = 4
        Set Number_Array[6] = 5
        Set Number_Array[7] = 6
        Set Number_Array[8] = 7
        Set Number_Array[9] = 8
        Set Number_Array[10] = 9
và 1 đoạn code như sau:
Mã:
unction ClearString takes string b returns string
    local string x = ""
    local string y
    local integer z = 1
    local integer n
    local integer w = StringLength(b)
    loop
        exitwhen z > w
        set y = SubString(b,z-1,z)
        set n = 1
        loop
            exitwhen n>10
            if y == udg_Number_Array[n] then
            set x = x + y
            endif
            set n = n + 1
        endloop
        set z = z + 1
    endloop
    return x
endfunction

K hiểu sao khi mình call function thì nó lại k ra string ai pro jass júp mình với ạ ^:)^
 
Cho bạn cái link tham khảo "http://forum.gamevn.com/showthread.php?814976-System-Swap-Hero-System"

---------- Post added at 18:41 ---------- Previous post was at 18:35 ----------

Ê sao mình gửi trả lời, trích dẫn mà không được

vậy tôi hỏi cái link tham khảo đó có liên quan gì tới câu hỏi của lg20112012 ?

Mình có trigger này:

và 1 đoạn code như sau:


K hiểu sao khi mình call function thì nó lại k ra string ai pro jass júp mình với ạ ^:)^

call như thế nào? ví dụ string truyền vào cho function là gì?
 
Status
Không mở trả lời sau này.
Back
Top