viviblkmage
Mr & Ms Pac-Man
Em gà lắm , có thể em hỏi ngu nhưng làm sao để biến tướng melee thành tướng đánh xa và chỉnh cái được bắn ra :(. ví dụ như mũi tên băng chẳng hạn, em gà lắm mấy anh chém nhẹ
Em gà lắm , có thể em hỏi ngu nhưng làm sao để biến tướng melee thành tướng đánh xa và chỉnh cái được bắn ra :(. ví dụ như mũi tên băng chẳng hạn, em gà lắm mấy anh chém nhẹ
Dạ em wên@Dragonmangia, Projectile chứ ko phải Projective
Event: Map Inti....
Conditions: None
Action: Quest - Creat a Required Quest Name (tên nội dung) and Descirption (nội dung) and Image (hình)
Quest - Enable Last Created Quest
Thế sửa một nội dung có sẵn thì vô chỗ nào ạ.
Anh có thể trả lời mấy câu trên không ạ![]()
Event: Map Inti....
Conditions: None
Action: Quest - Creat a Required Quest Name (tên nội dung) and Descirption (nội dung) and Image (hình)
Quest - Enable Last Created Quest
[B]local location point1[/B]
[B]local player player1[/B]
set [B]player1[/B] = GetOwningPlayer(GetSpellAbilityUnit())
set [B]point1[/B] = GetUnitLoc(GetSpellAbilityUnit())
call IssueImmediateOrderBJ( GetSpellAbilityUnit(), "stop" )
if ( Trig_Upgrade_To_Greater_Wisp_Func002C() ) then
call AdjustPlayerStateBJ( -500, GetOwningPlayer(GetSpellAbilityUnit()), PLAYER_STATE_RESOURCE_LUMBER )
call RemoveUnit( GetSpellAbilityUnit() )
set udg_Temp_Point = GetUnitLoc(GetSpellAbilityUnit())
call CreateNUnitsAtLoc( 1, 'e004', GetOwningPlayer(GetSpellAbilityUnit()), udg_Temp_Point, bj_UNIT_FACING )
call DestroyForce(udg_Temp_Player_Group)
call UnitApplyTimedLifeBJ( 15.00, 'BTLF', GetLastCreatedUnit() )
call SelectUnitAddForPlayer( GetLastCreatedUnit(), GetOwningPlayer(GetSpellAbilityUnit()) )
set udg_Temp_Player_Group = GetPlayersMatching(Condition(function Trig_Upgrade_To_Greater_Wisp_Func002Func011002001))
call DisplayTextToForce( udg_Temp_Player_Group, "TRIGSTR_912" )
call RemoveLocation(udg_Temp_Point)
call TriggerSleepAction( 15.00 )
call CreateNUnitsAtLoc( 1, 'e001', [B]player1[/B], [B]point1[/B], bj_UNIT_FACING )
call RemoveLocation(udg_Point0123)
else
set udg_Temp_Player_Group = GetPlayersMatching(Condition(function Trig_Upgrade_To_Greater_Wisp_Func002Func002002001))
call DisplayTextToForce( udg_Temp_Player_Group, "TRIGSTR_913" )
call DestroyForce(udg_Temp_Player_Group)
endif
call RemmoveLocation(point1)
set point1 = null
set player1 = null
Biến local player và đặc biệt là location luôn luôn nhớ null bạn à !
set <variable_name> = null
Thế các biến local khi dùng xong ngoài remove/destroy còn phải
hả anh?Mã:set <variable_name> = null
call RemoveLocation(name)
call DestroyGroup(name)
Các biến local (ngoại trừ real và integer) thì tất cả phải null hết.
Cho em newbie hỏi tí. Khi import skills , đã copy đủ unit, buff, abilities nhưng khi copy trigger qua, không phải dạng text thì mấy dòng trong trigger bị mờ đi hoặc bị thay đổi bằng unit khác, cái này em ức lắm, ai pro giúp với.em đọc kĩ phần add spell thì anh kia bảo copy toàn bộ trigger của map này sang map kia , kết quả là bị lỗi![]()
Làm sao để làm 1 unit có non-auto attack dc? Về chuyện giảm cái auto-attackrange xuống thấp thì làm rồi nhưng ranged unit thì vô dụng vậy còn cách nào không nhỉ?
Note: Em giỏi GUI nhưng "ngu học" Jass, bác nào dùng Jass chỉ thì em đui![]()