View Full Version : Topic hỏi đáp cho anh em (Về cách làm map)
Tom_Kazansky
24-12-2007, 00:37
Đề nghị mọi người có câu hỏi gì vào đây post, đừng post ở các topic khác.
Sửa lại tiêu đề chút xíu, topic này chỉ hỏi đáp về cách làm map, các vấn đề khác thì có topic khác rùi. :D
Dark Gamer
02-01-2008, 17:21
em muốn làm 1 spell aura mà các unit cast phép thì sẽ mất thêm 50% mana của chưởng thu nhận vào trigger unit thì làm thế nào ạ?
ohaynhi92
03-01-2008, 19:49
Mọi người ơi tôi muốn làm cho 1 thằng group unit bay lên thi phải làm thế nào
chỉ giùm tôi với đc ko. Thank::)
Tom_Kazansky
04-01-2008, 08:54
Đề nghị mọi người có câu hỏi gì vào đây post, đừng post ở các topic khác
---
Topic này lần trước bị Mod xóa rồi hay sao ấy, nên tui tạo lại
ohaynhi92
04-01-2008, 17:19
Ái chà. Đợi mãi cuối cùng cũng ra.
Mấy anh cho em hỏi cái này với. Bây giờ muốn làm một group unit bay lên thì phải làm thế nào
k0 bít nội dung câu hỏi này có fu hợp với box k0 nhưng có ng bảo em vào đây hỏi :D các bác ơi, con cọc rắn bản dday 19.9b chưởng cuối là j vậy?
http://forum.gamevn.com/showthread.php?t=390356
kissofaries
06-01-2008, 17:27
Cho hỏi muốn cho 1 con biến mất khỏi màn hình trong Xs thì thế nào.....và steal stats thì như thế nào???
heroesxx1412xx
10-01-2008, 14:06
Em muốn làm cái Item Hồi sinh như DDay thì phải làm sao
Không cần phải hs cho All Player đâu, em chỉ cần cho Player 10 và 11 thôi
hothanhlich
10-01-2008, 14:31
Không khởi động đc Worldedit.exe . Làm sao đây các bạn
kissofaries
10-01-2008, 15:25
Bình thường vào phải đợi 3 đến 4 phút....đợi lâu ko thấy thì.....chịu...hoặc bản war của bạn lỗi...thế thì cài lại..hoặc chưa có daemon tools...hoặc ty tỷ thứ lý do....
Dark Gamer
10-01-2008, 16:46
cái enable/disenable ability for play..... sao em dùng nó disenable cả cái buff lun là sao vậy ja
ohaynhi92
18-01-2008, 19:19
Mọi người ơi tôi muốn làm cho 1 thằng group unit bay lên thi phải làm thế nào. Muốn làm 1 thằng unit locus đi qua người thằng khác mà làm nó mất máu thì phải làm sao (giống quả shockwave ấy) chỉ giùm tôi với đc ko. À mà topic này sao chẳng còn ai trả lời thế nhỉ::(:-/
Tom_Kazansky
18-01-2008, 21:44
>Muốn làm 1 thằng unit locus đi qua người thằng khác mà làm nó mất máu
bạn tạo 1 trigger, trigger đó có event là Unit - Unit Within Range. Trong đó bạn chỉnh lại range(256.00), Unit là unit có locust ấy. Nhưng bạn nên add event cho trigger này(lúc bạn create locust unit) sử dụng action: Trigger - Add New Event chỉnh lại this trigger và unit là đc, còn action của comes in range trigger thì bạn dùng Unit - Damage Target để làm mất máu
>Muốn cho 1 unit bay lên:
dùng Unit - Add Ability add Crow Form cho unit đó rồi dùng Unit - Remove Ability remove luôn, sau đó dùng Animation - Change Unit Fly Height trong này thì Height là độ cao bạn muốn, Rate là tốc độ ((lấy độ cao lúc đầu - độ cao muốn)/Rate là ra thời gian mà unit sẽ change height xong, Rate = 0 => lên luôn)
sinhthuong
19-01-2008, 19:15
ai cho hỏi cách tạo icon trong warcraft riêng cho mình cái ( Tui tìm thấy trong diễn đàn rồi nhưng làm mãi vẫn ko thành công)
Tom_Kazansky
24-01-2008, 18:26
Các function
function CheckUnitPosition takes unit b, unit a returns integer//position of b from a
local location ta = GetUnitLoc(a)
local location tb = GetUnitLoc(b)
local real angle = AngleBetweenPoints(ta,tb)
call RemoveLocation(ta)
set ta = null
call RemoveLocation(tb)
set tb = null
if angle < 0 then
set angle = angle+360- GetUnitFacing(a)
else
set angle = angle- GetUnitFacing(a)
endif
if angle < 0 then
set angle = angle+360
endif
if angle <= 225 and angle >= 135 then
return 2
elseif angle < 330 and angle > 225 then
return 3
elseif angle < 135 and angle > 30 then
return 4
endif
return 1
endfunction
function IsUnitBeHide takes unit b, unit a returns boolean //b = behide, a = source
return CheckUnitPosition(b,a) == 2
endfunction
function IsUnitInFront takes unit b, unit a returns boolean//b = infront, a = source
return CheckUnitPosition(b,a) == 1
endfunction
function IsUnitAtSideRight takes unit b, unit a returns boolean//b = atside, a = source
return CheckUnitPosition(b,a) == 3
endfunction
function IsUnitAtSideLeft takes unit b, unit a returns boolean//b = atside, a = source
return CheckUnitPosition(b,a) == 4
endfunction
Kiểm tra vị trí của unit b so với unit a
Cách sử dụng:
Jass users: khỏi nói
GUI users: tạo 1 trigger (tên là gì cũng được) rồi convert ra custom text (Edit -> Convert to Custom Text)
Tạo 2 unit variable và 1 boolean variable
VD: UnitCheck, UnitSource và Check
Set UnitCheck = (Attacking unit)
Set UnitSource = (Triggering unit)
Custom script: set udg_Check = IsUnitInFront( udg_UnitCheck, udg_UnitSource)//kiểm tra xem UnitCheck có ở đằng trước UnitSource ko
Custom script: set udg_Check = IsUnitBeHide( udg_UnitCheck, udg_UnitSource)//kiểm tra xem UnitCheck có ở đằng sau UnitSource ko
Custom script: set udg_Check = IsUnitAtSideLeft( udg_UnitCheck, udg_UnitSource)//kiểm tra xem UnitCheck có ở phía bên trái UnitSource ko
Custom script: set udg_Check = IsUnitAtSideRight udg_UnitCheck, udg_UnitSource)//kiểm tra xem UnitCheck có ở phía bên phải UnitSource ko
rồi sửa dụng Check bình thường
Áp dụng tạo 1 backstab attack:
Backstab
Events
Unit - A unit Is attacked
Conditions
(Level of Backstab for (Attacking unit)) Greater than 0
Actions
Set UnitCheck = (Attacking unit)
Set UnitSource = (Triggering unit)
Custom script: set udg_Check = IsUnitBeHide( udg_UnitCheck, udg_UnitSource)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Check Equal to True
Then - Actions
Special Effect - Create a special effect attached to the head of UnitSource using Abilities\Spells\Other\Stampede\StampedeMissileDea th.mdl
Special Effect - Destroy (Last created special effect)
Unit - Cause UnitCheck to damage UnitSource, dealing (50.00 + (25.00 x (Real((Level of Backstab for UnitCheck))))) damage of attack type Chaos and damage type Normal
Else - Actions
kissofaries
25-01-2008, 13:24
Cái này là backstab active đấy....ko phải passsive đâu nhá...
Zekareisoujin
25-01-2008, 15:58
cái j` mà chả phải check.
call Get30Chars()
Dark Gamer
02-02-2008, 17:19
em có cái map mà em khóa vào xong nhưng bị mất bản gốc ( bản chưa khóa ) bây h nó chỉ còn cái map đã khóa và cái gì mà nó cho ra sau khi khóa í.cho em hỏi làm thế nào để phục hồi bản gốc :-SS
Zekareisoujin
02-02-2008, 20:55
no way :P, chịu rồi :)
call Get30Chars()
tuanvatx
04-02-2008, 11:30
À, có ai chỉ mình cách làm sao cho :
1 - đặt 5 cái bảng vào vòng tròn thì sẽ thắng như cái map ninja vs samurai ấy
2 - mỗi unit chỉ có 10 mạng, hết là thua
lifesyle
05-02-2008, 15:03
Có ai bày mình cách làm skill là 1 cuốn sách,có 3 cuốn sách.Sau khi học skill đó thì click vào cuốn sách sẽ ra thêm 5 skill nữa.
Đơn giản là vậy nè:lên lv .bấm vào skill list.click vào 1 skill.sau khi chọn sử dụng skill đó sẽ xuất hiện 1 bảng mới,trong đó có 5 skill.Mỗi lần lên lv nếu tăng cuốn sách nào thì skill trong cuốn sách đó sẽ đc lên thêm 1 lv nữa.
Giúp mình với
kissofaries
05-02-2008, 19:06
Normal spell =.=.....mỗi tội làm thế mất thời gian...bày cho bạn 1 cách nè...:
Chọn vào phần Special/ Items/ tìm skill tên là Spell book...rồi còn lại tự tìm mà làm....chỉ nữa chắc chết...
lifesyle
06-02-2008, 13:35
Cảm ơn.Mình làm đc rồi,không ngờ lại dễ đến vậy,chuyển spell đó sang hero là xong.Tại đang làm con pháp sư chơi 1 lúc 3 đường băng lừa điện .
Đã + rep :D .Lịch sự phải vậy :D .
À quên,nhập giá trị âm cho máu như con phượng hoàng phải làm seo.Rồi có cách nào đánh TV có dấu trong WE ko .
Tom_Kazansky
06-02-2008, 15:48
Nhập giá trị âm: Shift+Enter hoặc Shift+Double Click
Tiếng Việt có dấu trong WE, dùng UniKey hay VietKey chắc là đc
lifesyle
06-02-2008, 16:16
Hem đc. Thử rất nhìu lần với nhiều kiểu gõ khác nhau như unikey rồi tcvn3-abc nhưng cũng pó tay.Còn cái giá trị âm thì ok rồi.
Nhân tiện,làm skill như Searing arrow hay cold arrow cho melee thì phải làm sao, khoảng 600-800 range là đc.Rồi có skill nào tăng tầm bắn lên như trong dota ko,ko có thì bày mình chút đi.
Tom_Kazansky
06-02-2008, 17:39
Nói chung auto cast skill cho melee thì khá phức tạp
Ko có skill tăng tầm, bạn phải dùng upgrade
Bạn tạo 1 skill giả, từ Storm Hammer chẳng hạn, bỏ requirement, viết tooltip
Tạo 1 upgrade từ Long Rifle, có 4 levels Base = 60, Increment = 50, rồi dùng trigger với event khi hero này learn skill giả thì upgrade, nhớ hero này phải sử dụng upgrade kia(Upgrade Used)
Nói chung bạn xem map demo tôi attach :;)
lifesyle
06-02-2008, 19:06
Ok,men.Mình đã làm được rồi :D .Sẵn tiện nếu được cho mình cái bộ màu trong WE lun. :D .Mấy màu cơ bản thôi.Nếu ko thì cũng ko seo. :P(vd:xanh,đỏ,đen,tím,vàng,nâu,cam,chanh,b ởi gì gì đó.v..v... ) :D
Thấy topic ít ng quá hỏi nhiều nhiều cho nó xôm :D
cho hỏi, muốn làm cai' dumy giống như chú bò trong dota với cái chiêu fissure, làm sao??...làm sao cho dumy đó ko hiển thị cột máu và cản đường dc...em làm ko dc...dùng cho tree ko dc....
Tom_Kazansky
07-02-2008, 00:26
----Bộ màu trong WE----
Red |c00FF0303
Blue |c000042FF
Teal |c001CE6B9
Purple |c00540081
Yellow |c00FFFC01
Orange |c00FEBA0E
Green |c0020C000
Pink |c00E55BB0
Gray |c00959697
LightBlue |c007EBFF1
Dark Green |c007EBFF1
Brown |c004E2A04
-----Fissure-----------
Unit có ability Locust (Aloc) thì sẽ ko show cột máu, và cản đường thì dùng pathing blocker (vì cái này cản đường mà ko show model lại có sẵn)
Chi tiết hãy xem map tui attach
---------------------------------------------- và
HAPPY NEW YEAR
<:-P<:-P<:-P<:-P<:-P
woa
thanks nhieu` a'...,,,,,,,,,,,,,,,,,,,,,,,,,,,,
lifesyle
07-02-2008, 14:45
Hùm,tính làm map RPG .Mí bạn thấy shader đất kiểu này đạt yêu cầu chưa.
Hồi trước làm đc nửa map rồi.Tự nhiên cài lại win-->die.
_Great_Paladin_
07-02-2008, 15:10
anh em làm ơn cho mình xin cái track world editor, cảm ơn nhìu
lifesyle
07-02-2008, 15:27
Crack bản mấy trời.Nếu là 1.21 thì đây nè .
Sẵn làm extended inventory thì phải làm seo. ??
kcn_10081991
07-02-2008, 15:37
Xin hỏi cách để tạo ra một trigger đơn giản như sau: Event là Chat một câu lệnh trong đó đưa tên một player và Action là một số hành động với player đó.
Ngoài ra xin hỏi tại sao khi dùng Editor mở map Dota ra lại báo lỗi: Not enough storage is available to process this command. Program: ...\worldedit.exe
Object: WERandomGroupSet (.?AUWERandomGroupSet@@)
lifesyle
07-02-2008, 16:21
Sặc.Dota thì làm sao mà mở.Cho dù có dùng Chương trình gì thì cũng ko mở đc hết :D . Dù sao thì cũng ko cần phải mở .Mở ra chắc toàn jass bít gì mà coi :D .
Sẵn làm extended inventory thì phải làm seo. ??
help me :D
kcn_10081991
07-02-2008, 16:44
ai trả lời hộ câu hỏi 1 ở trên với :whew:
Zekareisoujin
07-02-2008, 18:21
Sặc.Dota thì làm sao mà mở.Cho dù có dùng Chương trình gì thì cũng ko mở đc hết
Noob. Dota phải là god đíu đâu.
http://forum.gamevn.com/showthread.php?t=405314
Làm extended inventory có nhiều cách, hay thấy nhất là inventory có nhiều page. Ngoài ra có cách dùng trackable để làm full screen inventory như Tom biết. Nhưng tất cả quay về mục cơ bản nhất là drop item khi đổi inventory, giấu đi đâu đó = hide hoặc các cách khác. Nhớ là dùng variable để đánh dấu item mà mình giấu. Zek dùng jass nên lười nói cụ thể cách dùng GUI lắm :P.
cho hõi cách sử dụng......lệnh :Add new event to trigger......thì dùng như thế nào...nó hoạt động ra sao??.....vì mình chưa bao giờ đụng đến nó...nhưng lại vướng cái mình đang muốn sài cái event :unit take damage.....ko bit' làm sao cả...có thể lấy ví dụ minh họa......thanks so much...
_Great_Paladin_
07-02-2008, 19:59
Crack bản mấy trời.Nếu là 1.21 thì đây nè .
Sẵn làm extended inventory thì phải làm seo. ??
thx thx thx thx ::)::)::)::)::)::)::)::)::)::)::)::)
___________________________
ai trả lời hộ câu hỏi 1 ở trên với :whew:
ông dùng chữ kí cho tươi mát vào :'>, bị chém chết ko toàn thây bây giờ, bên box dota chết một em òi đó....
kcn_10081991
07-02-2008, 20:05
Làm ơn cho hỏi để thêm một trigger cheat tiền kiểu exact match chat message thì trong jass làm thế nào.
Zekareisoujin
08-02-2008, 18:03
cho hõi cách sử dụng......lệnh :Add new event to trigger......thì dùng như thế nào...nó hoạt động ra sao??.....vì mình chưa bao giờ đụng đến nó...nhưng lại vướng cái mình đang muốn sài cái event :unit take damage.....ko bit' làm sao cả...có thể lấy ví dụ minh họa......thanks so much...
Add event unit take damage là cách thông dụng để dùng event đó, vì event đó ko thể là any unit take damage được :)). Add thế nào á, add như bt thôi, sau khi add thì cái trigger mình add vào sẽ có 1 cái event như thế, khi event xảy ra thì trigger chạy. Lấy vd trong trigger A: add event: triggering unit takes damage vào 1 trigger B, thì con triggering unit trong A khi take dmg thì trigger B sẽ chạy.
à, cũng thử và xài dc rồi...nhưng nỗi cái..mỗi lần muốn thay unit khác take damage thì phải Add nữa.....vậy Add dc chứ ko remove dc khi xong sao....hay unit do' danng take dmg muốn nó ko Take nữa thì làm seo...nếu ko remove..thì lỡ nó ngập tràn Add..Add...Add..Add....thì seo.....ko bít cách giải quuyết......nó ra sao cả...mong chỉ tiếp !!!
Tom_Kazansky
09-02-2008, 10:54
Tạo 1 unit group ra, khi add event thì add luôn unit này vào group đó sau đó check nếu unit này trong group đó rồi thì ko add event nữa
hay......dc rồi..thanks nhìu nhe....1 câu nữa nghen, là làm cách nào để tính chinh' xác dc....ví dụ như chiêu lướt nước của con morphin trong dota...làm sao để nó lướt tới chính xác điểm target point ....tui làm mà co' khi nó luớt xa hơn 1 tí..rùi có khi lại chưa đến điểm target point đã dừng lại rồi.....????.......có thể giúp mình ko....có thể send cho tui 1 cái map cũng dc..nhưng xin đừng jass nghen....thanks so mụchh!!!!
Tom_Kazansky
09-02-2008, 17:40
Bạn tạo 2 biến integer để đếm, Count và CountMax
CountMax = (Khoảng cách giữa caster và target point) / ( tốc độ wave / (1/timer duration))
Count = 0, đếm dần dần từ 0 đến CountMax khi vượt quá thì move caster vào target point rồi dừng wave luôn
VD: tôi dùng 0.04s timer, wave speed = 1500, khoảng cách là 845
CountMax = 845 / (1500 / (1 / 0.04)) = 14.083333
lấy integer là 14, khi Count đến 14 thì caster chưa đến target point, khi count = 15 thì move caster đến target point luôn (cho dù khoảng cách move không là 60 nữa) rồi dừng wave
Xem map tui attach sẽ rõ
Napoleon_005
09-02-2008, 20:44
Có ai biết cách bắt huyền thoại trong game war Pokemon ko!!!!!!!!!!!
wowwww....làm dc rồi...thế mà lâu nay mò mãi ko ra....., cho em hỏi tiếp 1 câu nghen...hihihi...(hỏi hoài ngại we')..là..vd nhu chiêu "ném 2 cây rìu " của beastmaster , và chiêu" đá" của tiny...em đã thử làm nhưng chỉ đạt cóa 50% trở xuống...em xem kĩ thì ..trong dota nó có gia tốc..từ chậm dần đến nhanh dần rồi chậm dần.....còn em làm thì nó chuyển động đều...//ko hiểu???giống như chiêu phi rìu doa'....anh tom giúp em với...vd = map càng tốt...kekeke....em thanks nhìu nha'..
Tom_Kazansky
10-02-2008, 14:41
Chà, hỏi nhiều cũng ko sao, tôi ko trả lời được thì có người khác trả lời
------
Toss thì cũng ko quá khó, cũng tạo biến đếm ra. Trong spell này chú ý rằng cho dù mục tiêu ở xa hay gần thì cũng mất từng đó thời gian.
Trong map của tôi thì thời gian là 0.8s, timer của tôi duration là 0.04s => move 0.8/0.04 = 20 lần vậy mỗi lần move khoảng cách là (khoảng cách từ unit pick(đạn ấy) đến mục tiêu) / 20 Về độ cao của đạn thì dùng hàm sin để thay đổi vì hàm sin khi tuần hoàn từ 0 -> 90 -> 180 với 1 độ cao cho trước vd 800 ta sẽ có độ cao của đạn từ 0 -> 800 -> 0, để move 20 lần mà góc sin này từ 0 -> 180 -> mỗi move góc sin tăng 180 / 20 = 9 (độ :D) và độ cao của đạn là 800*Sin(9*Count) (Count là biến đếm). Khi biến đếm Count = 21 thì đạn cũng "chạm đất" bây giờ thì ta làm đất lún 1 chút rồi damage quân địch
------
Về Wild Axe thì quả thật khó, tôi cũng có tạo nhưng cũng ko giống, đi tìm thì có người tên là emjlr3 tạo ra rồi nhưng về cách tính thì tôi không hiểu nên ko thể giải thích cho bạn đc ::(
Tôi cứ attach map đó ở dưới nếu bạn xem cách tính mà hiểu thì tốt còn ko thì xem người khác có hiểu và giải thích cho bạn được ko, còn tôi thì chịu ::(
woaaa...tuyệt vời....còn gì hơn...kekeke....thanks nhiu` nhiu` nhe...và xin hỏi thim 1 câu nữa nga...hi`..ko hỏi về spell nữa đâu....chuyển sang hỏi về cái khác vậy....em xin hỏi....trigger nào cho phép ta sắp xếp hạng trong board...vd như ai giết dc nhìu nhất thì đứng đầu...ai giết dc nhìu nhì thì đứng nhì...và còn lại cứ như thế.....???và cứ thế nếu người kia bỗng vượt lên từ bét lên nhất thì dc xếp lên đầu....???Nói tóm lại là tự động sắp xếp ấy mà....keke...???Thanks.....
Tom_Kazansky
10-02-2008, 17:18
Leaderboard - Sort <Your Leaderboard> by Value in Descending order
Sort by value là theo giá trị (trong trường hợp này là kill), Descending order là thứ tự giảm dần (Ascending order là tăng dần)
Còn việc tự động sắp xếp thì mỗi khi bạn thay đổi value cho 1 player nào đó thì run luôn action này. Kill -> Change Player Value -> Sort
yessss......thanks again....keke....và cho mình hỏi thêm 1 câu nẽo thui....kakka...là cái cái map spell pack dota doa'....sao nó làm mà mình vô cái varible ko thấy 1 cái varible nào cả???/ vậy nó làm = cái gì mà hay wa' vậy.....sao nó có thể làm 1 skill trong 1 trigger ....cái nì siêu à...???
Tom_Kazansky
11-02-2008, 18:59
Cái đó là JASS thôi, nếu bạn chưa biết JASS thì khó giải thích lắm (bởi vì tôi diễn đạt kém lắm ::() nên bạn hỏi cái khác đi :;)
a hỏi cái nì nữa....là mình muốn làm random thì làm seo...làm seo cho nó ko giống nhau..tức là ranom vô 3 5 7 8..nhưng restart lại nó vẫn random 3 5 7 8, mấy lần cũng vậy....??? làm sao cho nó hồi thì 3 5 7 8, nhưng khi khác lại 2 4 6 8, hoặc 1 2 3 4 5 6... help me thanks trứoc nhe....làm radom hero mà kẹt cái nì chán chết dc ...^^^
___________________________
à wên cái nì nữa.....vậy muốn học làm = Jass thì làm seo...học ai...hay có chuong trình gì ko..hay......phải tự mò ...><
Tom_Kazansky
12-02-2008, 12:35
Về vấn đề random, nếu bạn test 1 mình(chơi single ấy) thì random ko hẳn là random thì phải, tôi cũng bị như vậy, bạn thử test với 1, 2 người nữa xem.
Còn học Jass thì tôi tự mò, rồi vào các forum khác học hỏi thôi(vd http://www.thehelper.net/forums/forumdisplay.php?f=42) và ở ngoài có 1 topic về Jass đó, bạn vào tham khảo có lẽ sẽ biết thêm đc ít nhiều.
heroesxx1412xx
12-02-2008, 13:09
Em có mấy câu nè:
1. Làm sao để có thể kết hợp đồ giông dday
2. làm thế nào có cái hồi sinh đồng đội giống dday
ôi chán nhỉ...phải tự mò..hic..nhưng jass kinh thiệc.....vậy....thì hỏi thêm cái khác..kekeke...nhưng dù sao cũng thanks cái đã ()()...giờ hỏi nghen...cho hỏi cái vụ auto cast...như chiêu phóng lau deal dmg ranger trong dota....sao nó auto cast dc cai' trigger doa'.... thử làm mà auto cast no' ko dc...phải click chuột từng cái mới dc.....là seo...thanks
Tom_Kazansky
13-02-2008, 11:07
@Mantime, mấy auto cast spell đó thì phải sử dụng mấy lệnh của Jass (GUI ko sử dụng đc) nên bạn cố học 1 chút Jass đi rồi tôi sẽ hướng dẫn thêm.
@heroesxx1412xx, Về cái item revive tất hero:
ItemRevive
Events
Unit - A unit Acquires an item
Conditions
(Item-type of (Item being manipulated)) Equal to <ItemRevive>
Actions
For each (Integer A) from 1 to 12, do (Actions)
Loop - Actions
Hero - Instantly revive Hero[(Integer A)] at <revive loc>, Show revival graphics
Nhưng bạn phải đặt các hero vào Variable (Ví dụ Hero chẳng hạn) rồi dùng 1 loop để revive hết, tất nhiên phải thêm điều kiện hero đó đã chết chưa và điều kiện để chọn <revive loc> nữa.
Về ghép item tôi đã attach 1 map ghép rồi đó
---
Có 1 người nhắn tin cho tôi hỏi tôi cách làm cheat code (bằng chat message đó), tôi rất GHÉT cheat nhưng hỏi thì tôi sẽ trả lời và thứ 2 là cách dùng Substring
hic.....jass cũng hơi hơi ngán..nhưng sẽ cố thử xem..........kekekekkee
lifesyle
18-02-2008, 17:33
CHo mình hỏi mấy điều.
#1 Làm sao để hiện dame khi đánh nhau.
#2 Làm sao để quái spaw lại chỗ đứng cũ khi chết đc 30s.(ko phải là spaw lại chỗ vừa mới chết,cái đó mình bít).
#3 Làm sao để tạo 1 khu vực,khi bước vào đó thì dù là đồng minh cũng có thể đánh nhau.
#4 Làm sao để map chơi trong singe thì vẫn ko cheat đc.
#5 Điều này thì khó ,nhưng vẫn hy vọng các bạn giúp đc,đó là có thể save trong map bằng lệnh -save lấy code sau đó đánh -load để lấy con cũ giống như trong mấy map ORPG.
#6 Làm sao để tạo 1 quest yêu cầu giết bao nhiu con quái đó(vd: quest yêu cầu kill 10 con raider.vv..).
#7 Làm sao để cho rớt đồ khi quái chết theo chế độ ngẫu nhiên(khoảng 10%) và đồ rớt theo từng loại quái,con quái này rớt món này,con kia rớt món kia.(quái mới spaw cũng có thể rớt). Mình chỉ có thể làm đc rớt đồ 100% khi quái chết thui :D .
Nhìu "Làm sao" quá.Giúp dùm mình nha.
P/s:khi nào nghĩ ra điều gì cần hỏi sẽ hỏi típ . :D
Tom_Kazansky
19-02-2008, 10:41
Chính xác là nhìu "Làm sao để" :p
------ #1 ---------
Chỉ hiện đc dam thôi, tất cả dam takes ấy (cả đánh và spell)
Xem map tui attach, có trigger ShowDamage đó, rồi tạo unit group (ShowDamageG) khi add Event:
Trigger - Add to ShowDamage <gen> the event (Unit - <Your unit> Takes damage)
thì add luôn unit đó vào group này (để ko trùng nhau) rồi dùng floating text thôi
(Damage taken) = lượng máu unit đó mất
------ #2 ---------
xem map, trigger Initialization và Revive Creeps
------ #3 ---------
Tôi nghĩ nếu RPG chỉ cần thế này:
Player - Make <Player này> treat <Player kia> as an Enemy
Player - Make <Player này> treat <Player kia> as an Ally
còn event thì dùng
Unit - A unit enters <region nào đấy>
sau đó
Unit - A unit leaves <region nào đấy>
để bỏ enemy, nhg tôi ko chắc nên bỏ
------ #4 ---------
chịu ::(
------ #5 ---------
Cái này tôi chưa thử bao giờ nhg trong map demo tôi attach thì tôi làm thế này:
Code này chứa: level_item slot1_item slot2_item slot3_item slot4_item slot5_item slot6, ko có gì thì là ####_####_####_####_####_####_####
Level (4# đầu tiên): level 1 -> 26 tương đương A -> Z, điền vào kí tự thứ 4
level 1 thì code = ###A
level 2 thì code = ###B
level 3 thì code = ###C
...
level 26 thì code = ###Z
đến level 27 thì 27 - 26 = 1 tiếp tục điền vào kí tự thứ 2: ##AZ
rồi cứ tiếp tục
Các item slot: làm tương tự nhg từng loại item thì do bạn mã hóa
Ví dụ:
- Kelen's Dagger of Escape thì code là #B##
- Claw of Attack +15 thì code là ###B
- Mask of Death thì code là ##B#
(Trong map demo tôi mới mã hóa cho 3 item này)
Nếu save gold và lumber thì làm như sau:
Lấy số đó (GOLD) chia 1000 đc bao nhiêu (KQ) thì mã hóa ra A B C .. rồi điền vào kí tự thứ 4 (nhớ lấy integer thôi), rồi lấy GOLD trừ đi KQ*1000
Rồi lấy GOLD(đã trừ) chia cho 100 đc bao nhiêu(KQ) thì mã hóa tiếp rồi điền vào kí tự 3, rồi trừ đi KQ*100
Rồi lấy GOLD(đã trừ) chia cho 10 đc bao nhiêu(KQ) thì mã hóa tiếp rồi điền vào kí tự 2, rồi trừ đi KQ*10
Còn lại thì mã hóa tiếp rồi điền vào kí tự 1
Tổng cộng save đc 26*1000+26*100+26*10+26 = 28886 tiền (hơi ít nhg bạn tăng thêm số kí tự là đc - hiện giờ là 4)
Ngoài ra nếu nhiều hero thì bạn phải mã hóa unit type của các hero (trong map này tôi ko mã hóa mà dùng Mountain King)
=> phải bỏ ra 1 khoảng thời gian, ko ít đâu đấy, nhg chúc bạn thành công
-----#6----------
tạo 1 biến integer ra, rồi mỗi lần kill lại trừ đi, biến này bằng 0 thì xong
Trong demo map tôi để kill 10 Skeletal Orc Champion
------#7----------
bạn cứ làm rơi item như bạn làm ấy nhg trước khi rơi item thì thêm điều kiện này:
(Random integer number between 1 and 100) Less than or equal to <chance>
random từ 1 đến 100 nếu nhỏ hoặc bằng chance thì ra (random là ngẫu nhiên rồi)
----------------------
Nhân tiện hãy đổi chữ kí đi
lifesyle
19-02-2008, 12:09
THx.Nhân tiện,mình là lifesyle ko phải là lifestyle,cái nink đó bị đăng ký trc roài >.< .
Sẽ đổi chữ ký sau.Sao ai cũng nói thía chài.Còn dzụ save thì chừa,ko dám bén mảng tới dụ đó nữa. :D
chà..sao ko ai hỏi gì vậy ta...thế thì cho phép tui hỏi tiếp nhen....hỏi gì giờ ta....ec..ec....chà.....accccccccccccccccc.....aa aaaaaaa....có cái nì....ko hiểu tí gì....nhưng mà ko bitk có ai chơi map "age of myth" chưa, nếu chơi thử thì skill trong đóa có nhìu cái ko hiểu dc...như cái chiêu lock time.....khi cast nó tạo ra cho tất cả các unit trên map..từ nhà đến lính 1 cái bóng với cử động y chan bên cạnh...(dứng yên)...rồi cho 20 -30 s dể cast thêm 1 lần nữa....nếu cast thêm 1 lần nữa thì ...khi đó toàn bộ hoạt động, vị trí, máu, sống chết....đồ hay item đã mua hay chưa mua đều way lại ngay cái vị trí của cái bóng ban đầu.....nói nôm na như khi cast nó save lại....khi cast nữa thì nó load....nhưng về trigger ko bít nó xài cái gì...??http://www.epicwar.com/maps/2917/
chơi con hoàng tử ai cập là athas...(model ko đụng hàng)...mọi ngưòi kham khảo thử skill trong đóa nghen...rảnh cũng ko làm gì moà..kekeke
ohaynhi92
20-02-2008, 21:01
Cho tui hỏi cái này với.
Làm thế nào để tạo 1 cái Illusion bên cạnh mình vậy. Tui biết skill đó ở objec rồi mà vào trigger thì chẳng thấy đâu cả. Ai biết chỉ giùm tôi với nha, thank:D
Tom_Kazansky
20-02-2008, 21:33
@Lifesyle, sặc tôi nhầm, đọc ko kĩ, hóa ra ko có chữ "t" à ? nhg chả sao đúng ko :D
---------
@ohaynhi92, cái skill đó (Item Illusion) ko dùng lệnh bình thường đc, ko có nên bạn phải dùng lệnh bằng số (Id):
Custom script: call IssueTargetOrderById( udg_<unit1> , 852274 ,udg_<unit2> )
trong đó <unit1> và <unit2> là 2 biến unit (khi sang jass thì phải thêm udg_ ) và 852274 là số(Id) của lệnh dùng skill này.
Nếu bạn gặp các skill khác phải dùng Id thì bạn cho 1 unit nào đó có skill này sau đó tạo 1 trigger:
OrderTest
Events
Unit - A unit Is issued an order targeting an object
Conditions
Actions
Custom script: call BJDebugMsg( I2S(GetIssuedOrderId()) )
khi unit đó cast skill này thì sẽ có số hiện lên màn hình và ta chỉ việc lấy số đó dùng thôi :;).
------
@Mantime, cái map đó tôi chịu thôi, máy tôi load ko nổi(lởm wá ::( ) nên chịu, còn về vấn đề máu, mana, vị trí có thể lưu lại bằng variable đc (real variable, vị trí thì lấy tọa độ X và Y), về sống chết thì tôi nghĩ nếu 1 unit ở thời điểm cast lần 1 sống, lần 2 chết thì có thể dùng phép hồi sinh, Resurection, hoặc remove xác đi và CreateUnit ra hẳn unit mới(cùng loại) và đặt lại máu, mana, item cũng tương tự, dùng variable nhớ item ở slot 1 -> 6 của 1 hero tại lần cast 1, sang lần 2 thì remove hết item đang có rồi add các item đã nhớ. Tôi ko vô đc map để chơi nhg nếu load mà load cả cooldown của các skill thì tôi chịu => kinh hồn thiệt , load cả cooldown.
Đó là tôi nghĩ thế (theo diễn tả của bạn thôi) còn thật sự thế nào thì... chắc phải hỏi tác giả :D
p/s: cần 1 lượng variable cực lớn đấy, hic
ò...không sao....chỉ tiếc là map đó nhìu cái học hỏi...^^...qua cái khác vậy...à..có cái nì...hôm vừa rồi nhìn thấy rùi kinh ngạc lun...1 map dạng haflife..bắn súng 2 bên đoá.....có cái là có 1 loại đạn, bắn 1 viên đạn....nó bay lại, đụng tưòng cái nó dội trở ra và cứ vậy nó dội tưòng này sang tưòng kia.....cái đóa là seo vậy .....?????Trông vui lém...
lifesyle
21-02-2008, 13:39
Cha viết chi nhìu... dữ vậy.
Chài wư.Mới down cái map thêm 100 ô chứa đồ về.Copy vô cái map mình quài ma ko đc.Đã import toàn bộ thứ cần thiết vào rồi.Cũng đã đổi tên ,vậy mà nó báo cả trăm lỗi.
Bi giờ phải làm sao đây chài. >.<.Có ai rảnh import hộ,mình đưa map cho :D .
Tom_Kazansky
21-02-2008, 17:05
Đưa tôi import cho.
constant string 30Characters = "30Characters" // đủ 30 chữ
Dark Gamer
21-02-2008, 17:32
cho em hỏi cái vd như em muốn làm 1 cái spell gọi đệ mà cứ 1 inttellegent thì tăng 3 max life cho summon thì làm thế nào ?
nhân tiện cho em hỏi lun làm thế nào để quân của mình tự động đánh mà mình hok điều chỉnh được giống như mấy con summond trong map của anh Rex í
badboy91
21-02-2008, 17:54
Trong Box War có pác nào bít modeling ko zậy????
Tom_Kazansky
21-02-2008, 18:45
Modeling ? hãy nói cụ thể hơn
----
Muốn mình ko điều khiển đc summon chắc sửa Stats - Unit Classification trong Object Editor của summon đó là Ward, nhg vẫn lệnh cho nó move và attack đc (chính xác là smart).
Trong map Set unit Max hp có cách tăng máu max đấy, nếu dùng upgrade cũng đc upgrade ko unlearn đc nên khi hero mà giảm int thì ko giảm máu của summon đc
badboy91
21-02-2008, 21:28
Modeling là tạo hay là chỉnh sửa hay tọa mới model cho War 3 ý mà
Tom_Kazansky
22-02-2008, 08:01
Chỉnh sửa thì có tôi có thể làm đc nhg tạo mới thì chịu
lifesyle
22-02-2008, 16:57
Đây này .Làm hộ mình,mình chưa import cái gì hết nên cũng dễ. :wink:
Mình chỉ mới tạo Terrain thui,mà chưa xong nữa.Đừng có pác nào thấy map đẹp rồi lấy làm của mình đó nhe :'> :'> .Tội cho mình lém. :;)
P/s:Giúp mình nhanh cái,đang cần để làm típ.
lifesyle
22-02-2008, 16:59
Chết,quên đưa map 100 inventory .Đây này :D
Dark Gamer
22-02-2008, 17:26
Trong map Set unit Max hp có cách tăng máu max đấy, nếu dùng upgrade cũng đc upgrade ko unlearn đc nên khi hero mà giảm int thì ko giảm máu của summon đc
ngoài ra có thể làm tăng armor hay damage được hok anh?
Muốn mình ko điều khiển đc summon chắc sửa Stats - Unit Classification trong Object Editor của summon đó là Ward, nhg vẫn lệnh cho nó move và attack đc (chính xác là smart).
cái smart là cái nào vấy anh. với cả nếu mình cho con summon ấy 1 số skill thì nó có tự dùng hok hay là mình phải dùng trigger.
Cho em hỏi lun làm thế nào để viết dấu tiếng Việt trong war ( mà có cả mấy dấu ư ơ ...) em thx trc :)
kissofaries
22-02-2008, 18:47
Ko đánh đc đâu...trừ khi có pacth war TV mới đánh đc..ko thì toàn ra cái chữ xyz gì gì ý...
Tom_Kazansky
22-02-2008, 20:29
ngoài ra có thể làm tăng armor hay damage được hok anh?
cái smart là cái nào vấy anh. với cả nếu mình cho con summon ấy 1 số skill thì nó có tự dùng hok hay là mình phải dùng trigger.
- armor, damage thì ko đc
- smart là khi em right click ấy, vd khi right click vào quân địch thì attack, nếu nông dân mà right click vào mỏ vàng hay cây thì tự khai thác
Trong cái notepad UnitGuardUnitAI2.txt có code về summon đi theo bảo vệ hero ấy, em copy vào map header. Sử dụng thì tạo 2 biến unit rồi dùng:
Custom Script: call UnitGuardUnitAI( udg_<unit2>, udg_<unit1> )
trong đó <unit2> là tên biến của unit summon, còn hero summon ra unit kia là <unit1>, chuyển sang jass thì phải thêm udg_
à mà anh cũng hơi rối ko biết <unit2>, <unit1> hay là <unit1>, <unit2> nói chung em dùng, nếu thấy sai thì đổi :D
-----
@Lifesyle, cái inv100_we_patch_120 có phải map đâu, cái này extract ra xong rồi cho vào 1 thư mục tên là UI rồi cho vào thư mục Warcraft III thì trong trigger bình thường sẽ có thêm mấy chức năng của cái inv100 nữa.
Map của bạn tôi đã import và attach ấy.
Có vài điều lưu ý thế này:
- Trong map đó tôi để 1 region tên là Inv100 Region đó là region mà cái inv100 này sử dụng (cho 12 players luôn - nhg nếu ít player thì cái này sẽ bé hơn) nên bạn hãy sửa Terrain thế nào để trên cái region này ko có núi, nước hay bất kì vật cản nào, phải như đất trống ấy.
- Cái region HideItemZone là region mà item đc dấu đi, bạn hãy để nó ở nơi nào mà ko bao giờ tới đc, nếu nhặt item ở đây là lỗi.
- Bỏ cái trigger testing trigger đi, cái đó chỉ để thử thôi, bạn vào thử, khi nào ko cần thì xóa đi
lifesyle
23-02-2008, 11:41
Thank kiu!
OK!Mình đã hiểu.
Còn 1 vấn đề nữa là custom item khi đưa vào inventory(trong game) sẽ xuất hiện dấu hỏi,ko có dong op.Muốn hết thì phải đăng ký trong :
"inventory init item settings"
Vd:
call inv100_RegisterItem('ankh', 'BI01', "Ankh of Reincarnation", "Allows reincarnation upon death.", 800)
ankh là ID của đồ hồi sinh.
Mình đổi thành :
call inv100_RegisterItem('I00L', 'BI01', "Basic Gloves", "+ 15% Atk speed + 2 Armor .+ 1 All stats", 350)
I00L:gcel la` ID của item này.
Vào game chỉ có hình của đồ hồi sinh.dòng op của basic Gloves:D pó tay.bỏ thêm:gcel vào thì báo lỗi.
Thoai hok cần phải trả lời đâu,để mình đổi dòng BI01 cũng đc :D
Tom_Kazansky
23-02-2008, 16:34
Cái đó đăng kí item:
call inv100_RegisterItem( <Id của item>, <Id của icon của item> , <tên item>, <thông tin về item> , <giá tiền của item> )
- Id của item thì rõ rồi
- Id của icon của item thì là 1 destructable, bạn vào Object -> Destructables, copy +paste cái des (destructable) ra, vd cái BI01 chẳng hạn, rồi đổi Art - Replaceable Texture File thành cái path của icon bạn cần đổi. Đề lấy path thì vô Items, chỉnh Art - Interface Icon của item đó thành icon bạn muốn, ấn Enter bạn sẽ thấy:
http://i81.photobucket.com/albums/j203/dark_archon_0506/Pic.jpg
Cái tôi khoanh đỏ là path đấy, copy vào Art - Replaceable Texture File của cái des kia là đc 1 icon ngay.
p/s: à nếu có icon rồi thì ko phải tạo thêm đâu, phí, trừ khi về sau bạn muốn thay đổi icon thì nên tạo ngay bây giờ, về sau chỉ cần đổi path thôi => cho nhanh, còn ko thì thui :;)
lifesyle
24-02-2008, 09:45
Roài.Hiểu roài,cảm ơn nhìu.
Còn 1 vụ nữa là làm quest đòi hỏi kill bao nhiu con quái đó,bác đã nói là tạo 1 biến integer ra, rồi mỗi lần kill lại trừ đi, biến này bằng 0 thì hết .Nhưng mà cái ở trên chỉ làm đc khi chơi có 1 người.Còn mình muốn làm sao mà khi chơi nhiều người thì mỗi người phải làm 1 quest riêng cơ.
Tức là player nào giết thì tính cho player đó.
Nhân tiện mún không select được 1 unit thì phải làm sao.
Tom_Kazansky
24-02-2008, 12:36
10 người thì tạo biến mảng integer (khi tạo thì đánh dấu Array ấy) rồi:
For each (Integer A) from 1 to 10, do (Actions)
Loop - Actions
Set Count[(Integer A)] = 10
khi kill thì:
Set Count[(Player number of (Owner of (Killing unit)))] = (Count[(Player number of (Owner of (Killing unit)))] - 1)
---
Muốn ko select đc 1 unit thì thêm ability Locust cho unit đó (id là Aloc )
Dark Gamer
26-02-2008, 17:08
bây h em định làm 1 cái item chuyển attack type từ attack type hero sang attack type chao chẳng hạn thì làm thế nào ạ ( khi vứt cái đồ thì chuyển lại thành attack type hero ) thì làm thế nào ?
số ability trong 1 con tướng mà mình add thêm bằng trigger thì có giới hạn hok ạ ( passive)
em muốn làm 1 skill tăng có sức mạnh mạnh hơn vào ban đêm (giống con nightmear... trong dota) thì phải làm thế nào ?
Tom_Kazansky
26-02-2008, 18:16
Chuyển attack thì có cách dùng upgrade thôi, nhg cái chán là upgrade ko unlearn đc (chưa nghĩ ra từ nào ngoài từ unlearn) nên chịu.
add thêm ability thì anh nghĩ ko có giới hạn, chỉ lo ko nhìn thấy icon thôi.
Dùng cái event thời gian ấy, cứ 1s hoặc 0.5s (đừng ít quá ko là lag đấy) kiểm tra xem là ngày hay đêm, nếu là đêm thì add, ngày thì remove.
Trong DotA đó là Night Stalker thì khi cast skill 1 vào ban đêm thì tạo dummy unit rồi cast thêm slow thôi, skill 2 thì đó vào ban ngày sẽ remove buff luôn(coi như ko có tác dung), ban đêm thì kệ, skill 3 khi học là skill giả, add thêm aura có 5 level, level 5 ko có tác dụng gì, khi ban ngày thì set level của aura đó = 5 còn ban đêm = level của skill giả. ulti là ability của item Moon Stone.
lifesyle
27-02-2008, 11:50
À.Có cái này...
Theo 1 Pro đã bày mình là sử dụng Item ability Spell Book để tạo được nhìu skill,Nhưng khi xài skill trong đó thì lại bị cooldown cả cuốn spell book nên những skill khác nằm trong đó cũng ko xài đc trong thời gian chờ.Có cách nào khắc phục không .Hay là bày mình cách làm như trong map ORPG de gì đó đi.
Tom_Kazansky
27-02-2008, 17:01
Bạn đã thử đổi giá trị Data - Shared Spell Cooldown thành False chưa ? (Giá trị gốc là True)
Dark Gamer
27-02-2008, 17:19
cái ability spell book dóa có tác dụng như thế nào ???
[IT]SpaceSuShi
27-02-2008, 17:24
Là 1 ability khi nhấn vào sẽ mở ra 1 bảng mới chứa các skill khác để cast,nói nôm na là ability chứa ability
Dark Gamer
27-02-2008, 17:42
à có những chương chình giảm dung lượng map ạ , anh up link lên hộ em được hok? map em nặng wa ( toàn improte)
trong dota í nó có:
- cái item cứ cast phép vào người nó thì block spell ấy 20s 1 lần thì làm thế nào ?
mà cái nài chỉ block spell taget tại unit hay block cả wave?
- có con kiến có skill 1 là tảng hình đánh dam còn cái skill 3 í tự động đánh 2 phát thì làm thế nào?
em mún làm 1 đồ giống như vậy nhưng hok phải là block mà là phản spell ấy thì làm thế nào ?
Tom_Kazansky
27-02-2008, 18:18
Chương trình giảm dung lượng à ? anh có 1 cái giảm dung lượng của mdx (MDXSquisher), còn cái giảm texture file thì anh chưa dùng đc. Còn cái nữa giảm về code, làm cho map load nhanh hơn và cả size nữa - war3mapoptimizer4.5
Dark Gamer
27-02-2008, 18:51
có cái nào giảm dung lượng icon hok anh ( vì em chỉ add icon thui hok add model mấy) còn 2 cái spell trên em hỏi thì làm thế nào
anh tom on lâu wa nhỉ thế mà lại hok on nick chat :(
Tom_Kazansky
27-02-2008, 21:24
Block spell, có 1 ability của item tên là Spell Shield (Amulet) => trong DotA là cái này cái này. Nếu add bình thường thì nó như là 1 command spell(có thể active để cast, nhg ko có tác dụng). Ability này tự động cast khi bị 1 spell "bấm vào người" "hit" như storm bolt, chain lightning..., còn wave thì ko block, à nếu Impale mà cũng "bấm vào người" thì block đc, còn cái Spell Shield (Rune) là 1 spell active 1 aoe, các unit trong đó sẽ đc 1 cái buff cũng có tác dụng block, block thì mất buff
Tàng hình đánh dam là Wind Walk còn gì. Đánh 2 phát dùng ability của item: Orb of Lightning (new) với Data - Effect Ability là Searing Arrow, khi learn skill này thì cũng tăng level của Searing Arrow lên (nếu cooldown giảm)
Phản spell, anh nghĩ phải tạo lại spell (tạo custom spell) nếu ko thì impossible
Cái chương trình giảm dung lượng icon anh attach ở dưới, nhg nhắc lại là anh ko biết dùng ::(
Dark Gamer
01-03-2008, 17:16
[QUOTE=Tom_Kazansky;7095423]
Phản spell, anh nghĩ phải tạo lại spell (tạo custom spell) nếu ko thì impossible
QUOTE]
ý anh là sao, cho change xx% rồi tạo 1 unit cast ability is casting á?
cái custom spirit destroy unit group là như thế nào?
em làm cái random gem như thế nài mà chẳng hiểu sao nó hok add được:
RandomGem
Events
Unit - A unit Acquires an item
Conditions
Actions
Set __RG_RandomPercent = (Random integer number between 1 and 100)
Set __RG_RandomGemLV1 = (Random integer number between 87 and 93)
Set __RG_RandomGemLV2 = (Random integer number between 94 and 100)
Set __RG_RandomGemMissLV1 = (Random integer number between 1 and 32)
Set __RG_RandomGemMissLV2 = (Random integer number between 1 and 93)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering unit) has an item of type Gem) Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering unit) has an item of type Some lucky) Equal to True
Then - Actions
Set __RG_percentWin = 55
Item - Remove (Item carried by (Triggering unit) of type Some lucky)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering unit) has an item of type So lucky) Equal to True
Then - Actions
Set __RG_percentWin = 60
Item - Remove (Item carried by (Triggering unit) of type So lucky)
Else - Actions
Set __RG_percentWin = 50
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering unit) has an item of type Gem of decipher) Equal to True
__RG_RandomPercent Less than or equal to __RG_percentWin
Then - Actions
Item - Remove (Item carried by (Triggering unit) of type Gem of decipher)
Hero - Create _RandomNgoc[__RG_RandomGemLV1] and give it to (Triggering unit)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Items\HealingSalve\HealingSalveTa rget.mdl
Set _RandomGem_SE[1] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt .mdl
Set _RandomGem_SE[2] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Other\Levelup\LevelupCaster.mdl
Set _RandomGem_SE[3] = (Last created special effect)
For each (Integer A) from 1 to 3, do (Actions)
Loop - Actions
Special Effect - Destroy _RandomGem_SE[(Integer A)]
Else - Actions
Item - Remove (Item carried by (Triggering unit) of type Gem of decipher)
Hero - Create _RandomNgoc[__RG_RandomGemMissLV1] and give it to (Triggering unit)
Else - Actions
-------- Gem LV 2 --------
Set __RG_RandomNumberofGemLV2 = (Random integer number between 94 and 105)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
((Triggering unit) has an item of type A part of Amethyst) Equal to True
((Triggering unit) has an item of type A part of Blood Gem) Equal to True
((Triggering unit) has an item of type A part of Emerald) Equal to True
((Triggering unit) has an item of type A part of Opal Gem) Equal to True
((Triggering unit) has an item of type A part of Saphire Gem) Equal to True
((Triggering unit) has an item of type A part of Ruby Gem) Equal to True
((Triggering unit) has an item of type A part of Topaz Gem) Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering unit) has an item of type Some lucky) Equal to True
Then - Actions
Item - Remove (Item carried by (Triggering unit) of type Some lucky)
Set __RG_percentWin = 25
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering unit) has an item of type So lucky) Equal to True
Then - Actions
Item - Remove (Item carried by (Triggering unit) of type So lucky)
Set __RG_percentWin = 30
Else - Actions
Set __RG_percentWin = 20
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
__RG_RandomPercent Less than or equal to __RG_percentWin
((Triggering unit) has an item of type _RandomNgoc[87]) Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 2) Equal to 1
Then - Actions
Item - Remove (Item carried by (Triggering unit) of type _RandomNgoc[87])
Hero - Create _RandomNgoc[94] and give it to (Triggering unit)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Items\HealingSalve\HealingSalveTa rget.mdl
Set _RandomGem_SE[1] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt .mdl
Set _RandomGem_SE[2] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Other\Levelup\LevelupCaster.mdl
Set _RandomGem_SE[3] = (Last created special effect)
Else - Actions
Item - Remove (Item carried by (Triggering unit) of type _RandomNgoc[87])
Hero - Create _RandomNgoc[(Random integer number between 95 and 100)] and give it to (Triggering unit)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Items\HealingSalve\HealingSalveTa rget.mdl
Set _RandomGem_SE[1] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt .mdl
Set _RandomGem_SE[2] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Other\Levelup\LevelupCaster.mdl
Set _RandomGem_SE[3] = (Last created special effect)
For each (Integer A) from 1 to 3, do (Actions)
Loop - Actions
Special Effect - Destroy _RandomGem_SE[(Integer A)]
Else - Actions
Item - Remove (Item carried by (Triggering unit) of type _RandomNgoc[87])
Hero - Create _RandomNgoc[__RG_RandomGemMissLV2] and give it to (Triggering unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
__RG_RandomPercent Less than or equal to __RG_percentWin
((Triggering unit) has an item of type _RandomNgoc[88]) Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 2) Equal to 1
Then - Actions
Item - Remove (Item carried by (Triggering unit) of type _RandomNgoc[88])
Hero - Create _RandomNgoc[95] and give it to (Triggering unit)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Items\HealingSalve\HealingSalveTa rget.mdl
Set _RandomGem_SE[1] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt .mdl
Set _RandomGem_SE[2] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Other\Levelup\LevelupCaster.mdl
Set _RandomGem_SE[3] = (Last created special effect)
Else - Actions
Set __RG_RandomGemLV2Them = (Random integer number between 96 and 101)
Item - Remove (Item carried by (Triggering unit) of type _RandomNgoc[88])
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
__RG_RandomGemLV2Them Equal to 101
Then - Actions
Hero - Create _RandomNgoc[94] and give it to (Triggering unit)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Items\HealingSalve\HealingSalveTa rget.mdl
Set _RandomGem_SE[1] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt .mdl
Set _RandomGem_SE[2] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Other\Levelup\LevelupCaster.mdl
Set _RandomGem_SE[3] = (Last created special effect)
Else - Actions
Hero - Create _RandomNgoc[__RG_RandomGemLV2Them] and give it to (Triggering unit)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Items\HealingSalve\HealingSalveTa rget.mdl
Set _RandomGem_SE[1] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt .mdl
Set _RandomGem_SE[2] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Other\Levelup\LevelupCaster.mdl
Set _RandomGem_SE[3] = (Last created special effect)
For each (Integer A) from 1 to 3, do (Actions)
Loop - Actions
Special Effect - Destroy _RandomGem_SE[(Integer A)]
Else - Actions
Item - Remove (Item carried by (Triggering unit) of type _RandomNgoc[88])
Hero - Create _RandomNgoc[__RG_RandomGemMissLV2] and give it to (Triggering unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
__RG_RandomPercent Less than or equal to __RG_percentWin
((Triggering unit) has an item of type _RandomNgoc[89]) Equal to True
Then - Actions
Item - Remove (Item carried by (Triggering unit) of type _RandomNgoc[89])
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 2) Equal to 1
Then - Actions
Hero - Create _RandomNgoc[96] and give it to (Triggering unit)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Items\HealingSalve\HealingSalveTa rget.mdl
Set _RandomGem_SE[1] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt .mdl
Set _RandomGem_SE[2] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Other\Levelup\LevelupCaster.mdl
Set _RandomGem_SE[3] = (Last created special effect)
Else - Actions
Set __RG_RandomGemLV2Them = (Random integer number between 97 and 102)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
__RG_RandomGemLV2Them Greater than 100
Then - Actions
Hero - Create _RandomNgoc[(__RG_RandomGemLV2Them - 7)] and give it to (Triggering unit)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Items\HealingSalve\HealingSalveTa rget.mdl
Set _RandomGem_SE[1] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt .mdl
Set _RandomGem_SE[2] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Other\Levelup\LevelupCaster.mdl
Set _RandomGem_SE[3] = (Last created special effect)
Else - Actions
Hero - Create _RandomNgoc[__RG_RandomGemLV2Them] and give it to (Triggering unit)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Items\HealingSalve\HealingSalveTa rget.mdl
Set _RandomGem_SE[1] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt .mdl
Set _RandomGem_SE[2] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Other\Levelup\LevelupCaster.mdl
Set _RandomGem_SE[3] = (Last created special effect)
For each (Integer A) from 1 to 3, do (Actions)
Loop - Actions
Special Effect - Destroy _RandomGem_SE[(Integer A)]
Else - Actions
Item - Remove (Item carried by (Triggering unit) of type _RandomNgoc[89])
Hero - Create _RandomNgoc[__RG_RandomGemMissLV2] and give it to (Triggering unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
__RG_RandomPercent Less than or equal to __RG_percentWin
((Triggering unit) has an item of type _RandomNgoc[90]) Equal to True
Then - Actions
Item - Remove (Item carried by (Triggering unit) of type _RandomNgoc[90])
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 2) Equal to 1
Then - Actions
Hero - Create _RandomNgoc[97] and give it to (Triggering unit)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Items\HealingSalve\HealingSalveTa rget.mdl
Set _RandomGem_SE[1] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt .mdl
Set _RandomGem_SE[2] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Other\Levelup\LevelupCaster.mdl
Set _RandomGem_SE[3] = (Last created special effect)
Else - Actions
Set __RG_RandomGemLV2Them = (Random integer number between 98 and 103)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
__RG_RandomGemLV2Them Greater than 100
Then - Actions
Hero - Create _RandomNgoc[(__RG_RandomGemLV2Them - 7)] and give it to (Triggering unit)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Items\HealingSalve\HealingSalveTa rget.mdl
Set _RandomGem_SE[1] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt .mdl
Set _RandomGem_SE[2] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Other\Levelup\LevelupCaster.mdl
Set _RandomGem_SE[3] = (Last created special effect)
Else - Actions
Hero - Create _RandomNgoc[__RG_RandomGemLV2Them] and give it to (Triggering unit)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Items\HealingSalve\HealingSalveTa rget.mdl
Set _RandomGem_SE[1] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt .mdl
Set _RandomGem_SE[2] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Other\Levelup\LevelupCaster.mdl
Set _RandomGem_SE[3] = (Last created special effect)
For each (Integer A) from 1 to 3, do (Actions)
Loop - Actions
Special Effect - Destroy _RandomGem_SE[(Integer A)]
Else - Actions
Item - Remove (Item carried by (Triggering unit) of type _RandomNgoc[90])
Hero - Create _RandomNgoc[__RG_RandomGemMissLV2] and give it to (Triggering unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
__RG_RandomPercent Less than or equal to __RG_percentWin
((Triggering unit) has an item of type _RandomNgoc[91]) Equal to True
Then - Actions
Item - Remove (Item carried by (Triggering unit) of type _RandomNgoc[91])
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 2) Equal to 1
Then - Actions
Hero - Create _RandomNgoc[98] and give it to (Triggering unit)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Items\HealingSalve\HealingSalveTa rget.mdl
Set _RandomGem_SE[1] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt .mdl
Set _RandomGem_SE[2] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Other\Levelup\LevelupCaster.mdl
Set _RandomGem_SE[3] = (Last created special effect)
Else - Actions
Set __RG_RandomGemLV2Them = (Random integer number between 99 and 104)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
__RG_RandomGemLV2Them Greater than 100
Then - Actions
Hero - Create _RandomNgoc[(__RG_RandomGemLV2Them - 7)] and give it to (Triggering unit)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Items\HealingSalve\HealingSalveTa rget.mdl
Set _RandomGem_SE[1] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt .mdl
Set _RandomGem_SE[2] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Other\Levelup\LevelupCaster.mdl
Set _RandomGem_SE[3] = (Last created special effect)
Else - Actions
Hero - Create _RandomNgoc[__RG_RandomGemLV2Them] and give it to (Triggering unit)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Items\HealingSalve\HealingSalveTa rget.mdl
Set _RandomGem_SE[1] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt .mdl
Set _RandomGem_SE[2] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Other\Levelup\LevelupCaster.mdl
Set _RandomGem_SE[3] = (Last created special effect)
For each (Integer A) from 1 to 3, do (Actions)
Loop - Actions
Special Effect - Destroy _RandomGem_SE[(Integer A)]
Else - Actions
Item - Remove (Item carried by (Triggering unit) of type _RandomNgoc[91])
Hero - Create _RandomNgoc[__RG_RandomGemMissLV2] and give it to (Triggering unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
__RG_RandomPercent Less than or equal to __RG_percentWin
((Triggering unit) has an item of type _RandomNgoc[92]) Equal to True
Then - Actions
Item - Remove (Item carried by (Triggering unit) of type _RandomNgoc[92])
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 2) Equal to 1
Then - Actions
Hero - Create _RandomNgoc[99] and give it to (Triggering unit)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Items\HealingSalve\HealingSalveTa rget.mdl
Set _RandomGem_SE[1] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt .mdl
Set _RandomGem_SE[2] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Other\Levelup\LevelupCaster.mdl
Set _RandomGem_SE[3] = (Last created special effect)
Else - Actions
Set __RG_RandomGemLV2Them = (Random integer number between 100 and 105)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
__RG_RandomGemLV2Them Greater than 100
Then - Actions
Hero - Create _RandomNgoc[(__RG_RandomGemLV2Them - 7)] and give it to (Triggering unit)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Items\HealingSalve\HealingSalveTa rget.mdl
Set _RandomGem_SE[1] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt .mdl
Set _RandomGem_SE[2] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Other\Levelup\LevelupCaster.mdl
Set _RandomGem_SE[3] = (Last created special effect)
Else - Actions
Hero - Create _RandomNgoc[__RG_RandomGemLV2Them] and give it to (Triggering unit)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Items\HealingSalve\HealingSalveTa rget.mdl
Set _RandomGem_SE[1] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt .mdl
Set _RandomGem_SE[2] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Other\Levelup\LevelupCaster.mdl
Set _RandomGem_SE[3] = (Last created special effect)
For each (Integer A) from 1 to 3, do (Actions)
Loop - Actions
Special Effect - Destroy _RandomGem_SE[(Integer A)]
Else - Actions
Item - Remove (Item carried by (Triggering unit) of type _RandomNgoc[92])
Hero - Create _RandomNgoc[__RG_RandomGemMissLV2] and give it to (Triggering unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
__RG_RandomPercent Less than or equal to __RG_percentWin
((Triggering unit) has an item of type _RandomNgoc[93]) Equal to True
Then - Actions
Item - Remove (Item carried by (Triggering unit) of type _RandomNgoc[93])
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 2) Equal to 1
Then - Actions
Hero - Create _RandomNgoc[100] and give it to (Triggering unit)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Items\HealingSalve\HealingSalveTa rget.mdl
Set _RandomGem_SE[1] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt .mdl
Set _RandomGem_SE[2] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Other\Levelup\LevelupCaster.mdl
Set _RandomGem_SE[3] = (Last created special effect)
Else - Actions
Set __RG_RandomGemLV2Them = (Random integer number between 101 and 106)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
__RG_RandomGemLV2Them Greater than 100
Then - Actions
Hero - Create _RandomNgoc[(__RG_RandomGemLV2Them - 7)] and give it to (Triggering unit)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Items\HealingSalve\HealingSalveTa rget.mdl
Set _RandomGem_SE[1] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt .mdl
Set _RandomGem_SE[2] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Other\Levelup\LevelupCaster.mdl
Set _RandomGem_SE[3] = (Last created special effect)
Else - Actions
Hero - Create _RandomNgoc[__RG_RandomGemLV2Them] and give it to (Triggering unit)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Items\HealingSalve\HealingSalveTa rget.mdl
Set _RandomGem_SE[1] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt .mdl
Set _RandomGem_SE[2] = (Last created special effect)
Special Effect - Create a special effect attached to the cheat of (Triggering unit) using Abilities\Spells\Other\Levelup\LevelupCaster.mdl
Set _RandomGem_SE[3] = (Last created special effect)
For each (Integer A) from 1 to 3, do (Actions)
Loop - Actions
Special Effect - Destroy _RandomGem_SE[(Integer A)]
Else - Actions
Item - Remove (Item carried by (Triggering unit) of type _RandomNgoc[93])
Hero - Create _RandomNgoc[__RG_RandomGemMissLV2] and give it to (Triggering unit)
Else - Actions
có cái nào chia tròn hok hả anh ( chia xong lấy tròn ý)
cái max_hp mà anh ném cho em ý . cái đấy hok được lấy lẻ hả? em làm cái spell nài mà chẳng được
Nhat Item
Events
Unit - A unit Acquires an item
Conditions
Or - Any (Conditions) are true
Conditions
(Item-type of (Item being manipulated)) Equal to A part of Blood Gem
(Item-type of (Item being manipulated)) Equal to Blood Gem
Actions
Set G_D_Nb = (G_D_Nb + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Item being manipulated)) Equal to A part of Blood Gem
Then - Actions
Set G_D_PL[G_D_Nb] = (Integer(0.20))
Else - Actions
Set G_D_PL[G_D_Nb] = (Integer(0.40))
Set G_D_HE[G_D_Nb] = (Triggering unit)
Set G_D_Life[G_D_Nb] = (Max life of G_D_HE[G_D_Nb])
Set G_D_BounsLife[G_D_Nb] = ((Real(G_D_PL[G_D_Nb])) x (Max life of G_D_HE[G_D_Nb]))
Set Max_Hp = ((Integer(G_D_Life[G_D_Nb])) x (Integer((1.00 + (Real(G_D_PL[G_D_Nb]))))))
Set Max_Mana = 0
Set Some_Unit = G_D_HE[G_D_Nb]
Trigger - Run Set Max Hp <gen> (ignoring conditions)
Trigger - Run Set Max Mana <gen> (ignoring conditions)
Set G_D_Life[G_D_Nb] = (Max life of G_D_HE[G_D_Nb])
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
G_D_Nb Equal to 1
Then - Actions
Trigger - Turn on Kiem tra <gen>
Else - Actions
//-----------------------------------------------------------------
Kiem tra
Events
Time - Every 2.00 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to G_D_Nb, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
G_D_HE[(Integer A)] Equal to No unit
Then - Actions
Do nothing
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Max life of G_D_HE[(Integer A)]) Not equal to G_D_Life[(Integer A)]
Then - Actions
Set G_D_Life[(Integer A)] = ((Max life of G_D_HE[(Integer A)]) - G_D_BounsLife[(Integer A)])
Set Max_Hp = ((Integer((1.00 + (Real(G_D_PL[(Integer A)]))))) x (Integer(G_D_Life[(Integer A)])))
Set Max_Mana = 0
Set Some_Unit = G_D_HE[(Integer A)]
Trigger - Run Set Max Hp <gen> (ignoring conditions)
Trigger - Run Set Max Mana <gen> (ignoring conditions)
Set G_D_BounsLife[(Integer A)] = ((Real(G_D_PL[(Integer A)])) x G_D_Life[(Integer A)])
Set G_D_Life[(Integer A)] = (Max life of G_D_HE[(Integer A)])
Else - Actions
//-----------------------------------------------------------------
Vut Item
Events
Unit - A unit Loses an item
Conditions
Or - Any (Conditions) are true
Conditions
(Item-type of (Item being manipulated)) Equal to A part of Blood Gem
(Item-type of (Item being manipulated)) Equal to Blood Gem
Actions
For each (Integer A) from 1 to G_D_Nb, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering unit) Equal to G_D_HE[(Integer A)]
Then - Actions
Set Max_Hp = ((Integer((Max life of G_D_HE[(Integer A)]))) - (Integer(G_D_BounsLife[(Integer A)])))
Set Some_Unit = G_D_HE[(Integer A)]
Set Max_Mana = 0
Trigger - Run Set Max Hp <gen> (ignoring conditions)
Trigger - Run Set Max Mana <gen> (ignoring conditions)
Set G_D_HE[(Integer A)] = No unit
Else - Actions
còn cái nài nữa:
Kill to earn
Events
Unit - A unit Dies
Conditions
((Killing unit) is in G_V_Group) Equal to True
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Killing unit) has an item of type Topaz Gem) Equal to True
Then - Actions
Player - Add 2 to (Owner of (Killing unit)) Current lumber
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Killing unit) has an item of type A part of Topaz Gem) Equal to True
Then - Actions
Player - Add 1 to (Owner of (Killing unit)) Current lumber
Else - Actions.
em định làm 1 cái spell khi cast thì bắn ra 10 cái glavie. nếu số unit ít hơn ( 3 chẳng hạn ) thì nó sẽ cast 7 cái còn lại vào 3 con ở gần đấy ( trung bình mỗi con là 3,33 phát ) thì làm thế nào? em làm thế nài nhưng hok thấy nó hoạt động :
Fan of Glavie
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Fan of Glavie
Actions
Set FanofGlavie_Group[1] = (Units within 350.00 of (Position of (Casting unit)))
Unit Group - Pick every unit in FanofGlavie_Group[1] and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in FanofGlavie_Group[1]) Greater than or equal to (Level of Fan of Glavie for (Casting unit))
Then - Actions
For each (Integer A) from 1 to (Level of Fan of Glavie for (Casting unit)), do (Actions)
Loop - Actions
Set FanofGlavie_Randomunit = (Random unit from FanofGlavie_Group[1])
Unit - Create 1 Wisp for (Owner of (Casting unit)) at (Position of (Casting unit)) facing Default building facing degrees
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
Unit - Add Chain Glavie to (Last created unit)
Unit - Set level of Chain Glavie for (Last created unit) to (Level of Fan of Glavie for (Casting unit))
Unit - Order (Last created unit) to Orc Far Seer - Chain Lightning FanofGlavie_Randomunit
Unit Group - Remove FanofGlavie_Randomunit from FanofGlavie_Group[1]
Else - Actions
Set FanofGlavie_Sophatthua = (Level of Fan of Glavie for (Casting unit))
For each (Integer B) from 1 to 5, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
FanofGlavie_Sophatthua Not equal to 0
Then - Actions
For each (Integer A) from 1 to (Number of units in FanofGlavie_Group[(Integer B)]), do (Actions)
Loop - Actions
Set FanofGlavie_Randomunit = (Random unit from FanofGlavie_Group[(Integer B)])
Unit - Create 1 Wisp for (Owner of (Casting unit)) at (Position of (Casting unit)) facing Default building facing degrees
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
Unit - Add Chain Glavie to (Last created unit)
Unit - Set level of Chain Glavie for (Last created unit) to (Level of Fan of Glavie for (Casting unit))
Unit - Order (Last created unit) to Orc Far Seer - Chain Lightning FanofGlavie_Randomunit
Unit Group - Remove FanofGlavie_Randomunit from FanofGlavie_Group[(Integer B)]
Unit Group - Add FanofGlavie_Randomunit to FanofGlavie_Group[((Integer B) + 1)]
Set FanofGlavie_Sophatthua = ((Level of Fan of Glavie for (Casting unit)) - (Integer A))
Else - Actions
Do nothing
em làm mấy cái skill ấy ở đây nè :
p/s : anh nào check hộ em cái mana drain aura lun nha :X
http://www.4shared.com/file/39398182/23c87966/EWArmageddon30.html?dirPwdVerified=f5e63457
Dark Gamer
01-03-2008, 18:20
à cho em hỏi phát cái check ngày đêm thì dùng cái gì ???? trong trigger í
kissofaries
01-03-2008, 19:08
Tui làm đc cái +MS của NS rồi =.=...mỗi tội ko biết thêm làm gì để nó hết +As/Ms khi hết đêm..nên....cứ 1h trong game = 1 lần biến mất skill/xuất hiên skill (cái này làm đc từ lâu rồi)
Dark Gamer
01-03-2008, 20:12
cứ chỉ mình cách làm đi về nhà mình biến tấu sau thế còn cái check đêm làm thế nào
ôi...mọi ngưòi cho hỏi tí....hỏi cái đơn giản nhất đây mà tôi lại làm ko dc :( ko bik sao nữa....là cái mini screen cho map.....tôi đã làm theo hưóng dẫn roài kia...kiếm hình rùi import vào WE ....rùi copy cái path vô xong save lại...ra WE để chiêm ngưõng thành wả nhưng....ko thấy gì cả :( là seo.....bức hình phải có size 128 128, 256 256 mà sao mình làm ko dc....nó ko có kick1 cỡ đó ...giúp mình với
god_of_the_noob
06-03-2008, 21:01
Anh ơi anh có bít làm Ai cho máy ko
god_of_the_noob
06-03-2008, 21:29
àh anh bít làm cái chiêu ominislash của Grom hay Yugerno ko
rùi nếu hit đầu critical thì tất cả các hit sau đều critical hết nha anh:D:D
có thể làm trong WE ko anh:-/:-/
anhtuanub
09-03-2008, 12:42
Ai biết chỉ dùm!
Khi tui đang chơi WAR thì nó tự nhiên bị đẩy ra báo lỗi FATAL.
vậy co cách nào sửa kô
Feat.Lil' Flip
11-03-2008, 09:47
Hiên nay tình trang. hack map wa' phổ biến làm map ra co' cách nào chống hack map' giống nhu dota ko xin anh em chỉ giáo
Dark Gamer
11-03-2008, 17:12
àh anh bít làm cái chiêu ominislash của Grom hay Yugerno ko
mình hok bít rõ lắm nhưng hok có WE nên chỉ dẫn được thế nài thoai:
even : a unit start effect an ability
condition : ability is casting equal to ominislash
action:
set cast = casting unit
creat Special Effect tùy theo bạn muốn ( thường cho thêm cái phoinix fire cho đẹp )
set SE = last creat special efect
for loop action integer A, 1 to ( số lần bạn cho đánh )
set taget = random unit in the range 800 of casting unit
move cast instale ( hình như sai chính tả ) to point of taget
order cast attack taget
wait 0.5s
destroy SE
nếu có sai gì thì mọi người sửa dùm:D
Dark Gamer
11-03-2008, 17:28
Anh ơi anh có bít làm Ai cho máy ko
cái nài thì mình cũng chẳng rõ lắm. Bạn muốn làm AI giỏi thì hỏi anh Zeka í (anh ấy là siêu sao trong phần nài ):D
mình chỉ biết sơ qua thui:
đầu tiên bạn download cái phần mềm Amai nè:http://users.ecs.soton.ac.uk/lph105/AMAI/?page=download
sau đó up vào map của bạn
nó sẽ tự hoạt động đánh cho bạn
nhưng bạn vẫn phải chỉ nó học skill: ( nhớ cho bọn AI vào 1 group )
even : a unit lv up
condition : trigger unit in groupAI
action :
learn skill ... to trigger unit
............
hết skill
ngoài ra bạn làm thêm 1 số cái cho AI:
even : every 120s
action:
if life of unit in groupAi greater than or equal to 33%
move and attack to point ( điểm nhà đối thủ )
eles: do nothing ( hoặc cho nó về nhà hồi máu )
đồ thì bạn cho kiểm tra số gold của AI sau đó thì give đồ cho AI, trừ đi số gold giá trị của đồ
mình chỉ có thể hướng thế thui có gì bạn tự mày mò :p
god_of_the_noob
12-03-2008, 19:51
thanks nhìu nhưng còn phát đầu critical thì tất cả các hit còn lại critical hết thì sao?
àh khác nhau giữa a unit start effect an ability và a unit being casting an ability là jì::(
god_of_the_noob
13-03-2008, 06:44
Anh ui cho hỏi khi mà dùng lệnh play unit gì đó animation thì ko được là seo?
Còn select hero từ tavern sau đó ko được chọn thêm mấy con nữa như trong dota thì sao
lifesyle
13-03-2008, 19:32
huh?.Limit food còn 5 là xong :D
god_of_the_noob
14-03-2008, 06:21
limit food ko được (pointbreak là ko tính lun)
1 cái kỳ quặc trong triger nữa:
em tạo 1 cái event
Action là create 1 uint gì đó
Add war stomp vô con đó
Oder with no target: Taủen Chìetaun-War stomp thì nó ko làm
Tom_Kazansky
14-03-2008, 07:14
Select
Events
Unit - A unit Sells a unit
Conditions
((Sold unit) is A Hero) Equal to True
Actions
For each (Integer A) from 1 to 12, do (Actions)
Loop - Actions
Player - Limit training of (Unit-type of (Sold unit)) to 0 for (Player((Integer A)))
Việc order mà unit ko cast trong trường hợp này thì chỉ có 1 lý do là unit đó ko đủ mana để cast.
hic sao mình hỏi mà ko ai trả lời....làm sao để tạo 1 cái screen cho map, ^^...creen map xau^' wa' nen^ phai che lai. nhưng mà làm ko dc........làm theo hướng dẫn ngoài kia rùi cũng ko...là vì sao ??????
god_of_the_noob
15-03-2008, 06:25
còn cái play unit animation thì sao?
ví dụ play unit walk stand spin animation của con blade thì nó lại làm trong thời gian rất ngắn, làm sao cho nó dài hơn
kissofaries
15-03-2008, 11:40
Map tui làm...4mb...có phần cho hero tự học skill (trigger thôi).hero của player thì ko học....map melee (gửi mãi ko đc tý nữa tui chỉ cho)
Hehe....anti HM nè bà con(link trên hiveworkshop)
http://www.hiveworkshop.com/resources_new/spells/1174/
này thì HM
Dark Gamer
15-03-2008, 18:49
vd em cho 1 spell bị disenable rùi thì có order được hok?
Dark Gamer
15-03-2008, 19:16
thanks nhìu nhưng còn phát đầu critical thì tất cả các hit còn lại critical hết thì sao?
àh khác nhau giữa a unit start effect an ability và a unit being casting an ability là jì::(
cái nài thì pó tay, trừ khi bạn tự làm 1 chiêu critical riêng thì mới được ( thì bạn mới theo dõi được khi nào critical )
còn cái cái start effect an ability thì theo mình nghĩ là vd như storm bot khi bắn đến mục tiêu
còn begin casting an ability thì ngay từ lúc ấn cast. thường thì người ta hay dùng start effect an ability
kissofaries
16-03-2008, 09:23
vd em cho 1 spell bị disenable rùi thì có order được hok?
Được hết:
Event: Units gain lv
Varible: để cái trigger unit là unit type X (X là 1 hero nào đó)
Codition: Hero-Learn skill: Xyz gì gì đấy
(chú ý: cái này làm cho cả hero player cũng auto learn skill)
Thêm về phần player ko tự auto learn skill:
Event: expire time 0.01 second
Varible: Player x not equal to computer
Codition: Turn off trigger xxxx
Thế thôi là ok...Bạn có thể tự học skill mà ko bị auto....Computer vẫn học đc skill đấy!:hug::hug:
Dark Gamer
16-03-2008, 20:41
câu hỏi nài có thể có rùi nhưng có còn ai biết cách giảm dung lượng Icon improve vào hok :((
to Dark Gamer: xài Photoshop ;))
paladin741
18-03-2008, 23:11
cho em xin cái link dl war3 > patch 1.21 + sever pgvp dc hok hả admind > ở wê em hok có chỗ nào bán cả > lên thị xã thì xa wá
lifesyle
23-03-2008, 11:49
Help.Cần giúp cái 100 inventory.
Có cách nào giảm số lượng ô chứa đồ từ 100 xuống còn 20 được ko huh mí bạn
Tom_Kazansky
23-03-2008, 12:15
Vô trigger có tên là configuration tìm 2 dòng sau:
call setcfg("inv100_default_rows", "10") // số hàng ngang
call setcfg("inv100_default_cols", "10") // số cột dọc
Muốn giảm còn 20 thì
call setcfg("inv100_default_rows", "2")
call setcfg("inv100_default_cols", "10")
hoặc
call setcfg("inv100_default_rows", "10")
call setcfg("inv100_default_cols", "2")
hoặc
call setcfg("inv100_default_rows", "4")
call setcfg("inv100_default_cols", "5")
:;)
lifesyle
23-03-2008, 13:10
hoặc
call setcfg("inv100_default_rows", "5")
call setcfg("inv100_default_cols", "4")
:D .Mệt quá,làm sing thui,hok chơi multi nữa.Nội làm skill ko đủ bệnh. T.T.10 skill/1 class,mỗi con đc chọn 2/3 class.Có 4con,mele,ranger,winz,assa riêng winz có 4 class vị chi là 130 skill--->Ngất ngư luôn,1 tháng rồi vẫn chưa xong phần skill.Kiểu này chắc die sớm.
god_of_the_noob
23-03-2008, 14:53
mình hok bít rõ lắm nhưng hok có WE nên chỉ dẫn được thế nài thoai:
even : a unit start effect an ability
condition : ability is casting equal to ominislash
action:
set cast = casting unit
creat Special Effect tùy theo bạn muốn ( thường cho thêm cái phoinix fire cho đẹp )
set SE = last creat special efect
for loop action integer A, 1 to ( số lần bạn cho đánh )
set taget = random unit in the range 800 of casting unit
move cast instale ( hình như sai chính tả ) to point of taget
order cast attack taget
wait 0.5s
destroy SE
nếu có sai gì thì mọi người sửa dùm:D
ko làm được bạn ui
còn play animation sao ko ai trả lời thế
mấy anh chỉ em cách làm chiêu chrospere của void được ko
Dark Gamer
28-03-2008, 17:56
Thế thì mình thua bạn lấy spell cast là gì? bạn thử lấy spell cast là bannis của blood mage xem.
------------------------
action:
Set cast = casting unit
set nb = số lần đánh
set point = point of taget unit is being casting spell
move unit instate to point
order unit attack taget
custom spirit : call RemoveLocation(udg_point)
for loop integer A : 1 - nb do mutiple action :
- set unit = random unit in range 800 of cast
- set point = point of unit
- move to point
- issure cast attack unit
- custom spirit : call RemoveLocation(udg_point)
- wait 0.01s
(end for loop integer A)
ban thử thế nài xem sao
kcn_10081991
30-03-2008, 15:48
Cho hỏi cách làm cây trên bản đồ tự tái tạo sau một khoảng thời gian mỗi khi bị phá hủy
god_of_the_noob
01-04-2008, 06:28
bữa dơn map big sheep clicking của and zeka về có chĩ cách làm leaderboard mà em 0 hiểu lắm có ai chĩ cho em cách làm ko::(
Dark Gamer
17-04-2008, 17:12
cho em hỏi cách tính thời gian sao cho khớp khi bắn ra 1 ability (hoặc bắn bình thường) tại vì em làm hay bị mắc cái lỗi đạn chưa tới nhưng nó đã thực hiên cái trigger rùi nên nhìn hình hok đẹp? làm thế nào để sửa ?
làm thế nào để check 1 con illusion khi tạo ra?
White_shark15
19-04-2008, 20:43
Ai có thể hướng dẫn mình cụ thể cách Import Skin từ http://www.hiveworkshop.com ko
RexAnthony
20-04-2008, 08:58
Ai có thể hướng dẫn mình cụ thể cách Import Skin từ http://www.hiveworkshop.com ko
Download về rồi thay đường dẫn là xong...đường dẫn nó kèm theo trên web rồi, ko thì mở cái thư mục .mpq ra, trong ấy chứa tất cả thông tin về các unit trong war đó, sẽ biết đường dẫn thôi mà....
White_shark15
20-04-2008, 10:15
Download về rồi thay đường dẫn là xong...đường dẫn nó kèm theo trên web rồi, ko thì mở cái thư mục .mpq ra, trong ấy chứa tất cả thông tin về các unit trong war đó, sẽ biết đường dẫn thôi mà....
Em ngu cái vụ import này lắm , khi nào anh lên mạng thì nhớ BUzz em nha,dạo này anh ít lên vậy,em cần hỏi anh 1 số thứ
Vua_Do_Hoa
20-04-2008, 10:26
Cho mình hỏi là sao để chuyển từ một skill thường phải click vào mới chơi sang 1 một chiêu tự chơi (chỉ cần click chuột phải vào là tự chơi luôn autoplay) .
Mình muốn là nó với cái chiêu Rút độc bên NightElf ấy
Chỉ giúp mình nha
White_shark15
20-04-2008, 10:48
HÌnh như Import ko đc vì nó ko cho cái đường dẫn nào để sửa cả,hu hu,giờ sao đây anh em
____________
XIn đính chính lại là đã Import đc rồi, lổi của W là wên Save lại map để active Models
!|cff00ff00Long
21-04-2008, 12:04
Có 1 map mình mở ra thì trong phần jass chẳng có gì hết nhưng khi vào game vẫn chạy được là seo ?
Nếu muốn nhìn thấy jass làm cách nào ? và làm mất jass giống vậy = cách nào ?
babycodon
22-04-2008, 11:23
cho em hỏi cách xây hay nhất của map gem:-s
Espeon - cool
22-04-2008, 15:42
mình tạo 1 hero,cho nó vô altar. Khi vào game train hero đấy thì ở altar vẫn có thể train được tiếp<như train quân vậy>. Cho mình hỏi làm thế nào để sau khi chọn custom hero nó cũng biến mất như những standard hero trong altar?
RexAnthony
23-04-2008, 07:04
Anh em có biết làm cách nào để nhập vào giá trị âm trong WE ko?
White_shark15
23-04-2008, 07:33
anh em có bít làm bản tính điểm như DD 20 ko
god_of_the_noob
24-04-2008, 06:08
mình tạo 1 hero,cho nó vô altar. Khi vào game train hero đấy thì ở altar vẫn có thể train được tiếp<như train quân vậy>. Cho mình hỏi làm thế nào để sau khi chọn custom hero nó cũng biến mất như những standard hero trong altar?
Events: A unit Sells a unit
Condition: Sold uni