- 7/2/04
- 5,762
- 8,509
Group với Location là cần phải quan tâm triệt để đấy 

Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.


.
Có ai giúp đỡ về phần "Dialog" hem? Sao mà mò hoài mà không có hiểu gì hết trọi á? Trong we có đúng 4 trigger về dialog và đã làm đủ trò với 4 trigger đó những chẳng thèm hiện dùm cái dialog lên luôn mới ghê =.=!!!
Dialog
Events
Conditions
Actions
Dialog - Change the title of Var_Dialog to Chọn tướng
Dialog - Create a dialog button for Var_Dialog labelled Blake
Set Button[1] = (Last created dialog Button)
Dialog - Create a dialog button for Var_Dialog labelled Cyrax
Set Button[2] = (Last created dialog Button)
Dialog - Create a dialog button for Var_Dialog labelled Athas
Set Button[3] = (Last created dialog Button)
Dialog - Create a dialog button for Var_Dialog labelled Rafa
Set Button[4] = (Last created dialog Button)
Dialog - Show Var_Dialog for Player 1
Click Dialog
Events
Dialog - A dialog button is clicked for Var_Dialog
Conditions
(Clicked dialog button) Equal to Button[1]
Actions
Unit - Create 1 Blake for Player 1 (Red) at (Center of Playable map) facing Default building facing degrees
Dialog - Clear Var_Dialog
Tạo 2 item:
+ 1 cái ko có ability và automatic use when acquired = true, icon là búa, bán trong shop => item1
+ 1 cái ko có ability và automatic use when acquired = false, icon là giấy =>item2
Tạo trigger:
Unit acquired item
Item type of (Item being manipulated) equal to item1
Give Item2 to triggering unit
(Như vậy trigger ghép item sẽ có đkiện là item2 chứ ko phải item1)
Đã lâu ko đụng đến WE nhưng giờ đụng lại thì gặp ngay lỗi :( Ai biết cách sửa thì chỉ giúp. Thanks

Mã:Dialog Events Conditions Actions Dialog - Change the title of Var_Dialog to Chọn tướng Dialog - Create a dialog button for Var_Dialog labelled Blake Set Button[1] = (Last created dialog Button) Dialog - Create a dialog button for Var_Dialog labelled Cyrax Set Button[2] = (Last created dialog Button) Dialog - Create a dialog button for Var_Dialog labelled Athas Set Button[3] = (Last created dialog Button) Dialog - Create a dialog button for Var_Dialog labelled Rafa Set Button[4] = (Last created dialog Button) Dialog - Show Var_Dialog for Player 1
Mã:Click Dialog Events Dialog - A dialog button is clicked for Var_Dialog Conditions (Clicked dialog button) Equal to Button[1] Actions Unit - Create 1 Blake for Player 1 (Red) at (Center of Playable map) facing Default building facing degrees Dialog - Clear Var_Dialog
Stork[gm];17498155 nói:@wolf: bạn viết giúp mình cái trigger tạo dialog giống Xhero với
, để chơi lại cái đã, tất cả Dialog sao, mình nhớ nó có mấy cái lận 
ai bik chỉnh tác dụng của str,agi,int ko chỉ mình với
VD là khi ta tăng str thì máu của ta cũng sẽ lên theo str nhưng mình ko muốn thế chỉ tăng str chứ ko tăng máu
Không hiểu gì luôn, bạn hướng dẫn cụ thể 1 chút giùm, English mình kém quá ^^Cái Kasperky của bác làm việc nhiệt tình quá mà. Đọc xong nhìn lại mới biết mình cũng mất Rtc
http://www.thehelper.net/forums/show...68#post1132568
Không hiểu gì luôn, bạn hướng dẫn cụ thể 1 chút giùm, English mình kém quá ^^
p/s: lỗi xuất hiện khi mình test map
havertc = grim.exists("rtc\\rtcexehack.exe") and grim.exists("rtc\\rcncore.dll")
if havertc then
rtcmenu = wehack.addmenu("Reinventing the Craft")
rtc_enabled = TogMenuEntry:New(rtcmenu, "Enable Reinventing the Craft", nil, true)
wehack.addmenuseparator(rtcmenu)
function rtcabout()
wehack.execprocess("rtc\\rtcexehack.exe --about")
end
rtc_about = MenuEntry:New(rtcmenu, "About Reinventing the Craft ...", rtcabout)
else
grim.log("Reinventing the Craft")
if(not grim.exists("rtc\\rtcexehack.exe")) then
grim.log("rtc\\rtcexehack.exe missing!")
end
if(not grim.exists("rtc\\rcncore.dll")) then
grim.log("rtc\\rcncore.dll missing!")
end
endf
if rtc_enabled.checked then
-- local args = string.gsub(cmdline,"\"([^\"]*)\" ","")
-- wehack.messagebox(args,"Grimoire",false)
-- cmdline = "startwar3.bat " .. args
local testmaparglist = argsplit(cmdline)
local len = table.getn(testmaparglist)
if len > 2 then
cmdline = "startwar3.bat"
--if not grim.exists(cmdline) then
-- cmdline = "NewGen Warcraft.exe" -- NewGen version doesn't use batch files
--end
for i = 2, len do
if (i < len) and (usetestmapconf) then
local arglen = string.len(testmaparglist[i+1])
if testmaparglist[i] == "-loadfile" and arglen > 3 then
local ext = string.lower(string.sub(testmaparglist[i+1],arglen-4+1))
if ext == ".w3m" or ext == ".w3x" then
local substitute = wehack.setupwgcfile(testmaparglist[i+1]);
if (substitute ~= testmaparglist[i+1]) then
testmaparglist[i+1] = "\"" .. substitute .. "\""
end
end
end
end
cmdline = cmdline .. " " .. testmaparglist[i]
end
end
end
@Stork[gm]: cái trigger tạo dialog giống Xhero
MT : Khi sử dụng skill thì những unit đứng xung quanh quanh hero trong 100 AOE sẽ bị bay lên trời (giống Cyclone) trong 3 giây. Nếu nằm ngoài khoảng cách 100 AOE thì sẽ bị slow trong 3s.
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Thunder Clap
Actions
Set TD_Point[0] = (Position of (Triggering unit))
Set TD_Group = (Units within 100.00 of TD_Point[0] matching ((((Matching unit) is A ground unit) Equal to True) and ((((Matching unit) is alive) Equal to True) and (((Owner of (Matching unit)) is an enemy of (Owner of (Triggering unit))) Equal to True))))
Unit Group - Pick every unit in TD_Group and do (Actions)
Loop - Actions
Set TD_Point[1] = (Position of (Picked unit))
Unit - Create 1 Dummy for (Owner of (Triggering unit)) at TD_Point[1] facing Default building facing degrees
Unit - Add Cyclone to (Last created unit)
Unit - Order (Last created unit) to Night Elf Druid Of The Talon - Cyclone (Picked unit)
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Custom script: call DestroyGroup( udg_TD_Group )
Custom script: call RemoveLocation (udg_TD_Loc[0] )
Custom script: call RemoveLocation (udg_TD_Loc[1] )
