Tiểu Quận Chúa
Mr & Ms Pac-Man
- 19/12/09
- 244
- 1,859
Demo nè Kun
Cách này khác cách của KuKuLan (cách mình làm mà:) )
cái này hay và hiếm gặp
cộng REP

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.
Demo nè Kun
Cách này khác cách của KuKuLan (cách mình làm mà:) )

Ngan hang
Events
Unit - A unit Acquires an item
Conditions
((Triggering unit) has an item of type Ngân hà ng BIDV) Equal to True
Actions
Trigger - Turn on Player 1 <gen>
Player 1
Events
Time - Every 0.05 seconds of game time
Conditions
Actions
Player - Add 1 to Player 1 (Red) Current gold

Events
Time - Every 0.05 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Triggering unit) has (Item carried by (Triggering unit) of type [B]Item[/B])) Equal to True)) and do (Actions)
Loop - Actions
Player - Add [B]money[/B] to (Owner of (Picked unit)) Current gold
bạn nói sử dụng phải có 5 bình máu mà. Còn 4 cái không sài được là tất nhiên, phải 5 mới được. Mà muốn lên cấp phải sài 5 lần, nghĩa là phải 10 bình mới được lên cấp
______________________________________
Kĩ niệm bài viết thứ 100![]()
Ai trả lời giúp cái này và thêm 2 câu nữa:1/ Cho hỏi cách xài mấy cái Xe system trong Jass, cách turn on, turn off trigger trong Jass.
2/ Cho hỏi cách làm trigger Take Damage trong Jass vì trong GUI dạng trigger kiểu này cần 2 trigger nhưng trong Jass mỗi Spell, system,... chỉ dùng 1 trigger.
[U][B]private[/B][/U] [U][B]constant[/B][/U] integer SpellAID = 'A000' // ví dụ
ai có cách nào mà học ability wa item dễ hôk , sáng h em mò theo cách làm của anh game_war mà không được , hix
thay item zo là xong
ko bít tạo item thì copy y hệt là xong Quay Tum lym
Events
Unit - A unit Acquires an item
Conditions
(Item-type of (Item being manipulated)) Equal to Quay Tùm Lum
Actions
Set Units = (Triggering unit)
Set Ability[(Player number of (Owner of Units))] = Quay tùm lum
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Ability[(Player number of (Owner of Units))] for (Triggering unit)) Less than 1
Then - Actions
Unit - Add Ability[(Player number of (Owner of Units))] to (Triggering unit)
Game - Display to (Player group((Owner of Units))) for 10.00 seconds the text: Ban da~ mua Skill Q...
Else - Actions
Game - Display to (Player group((Owner of Units))) for 5.00 seconds the text: Ban da~ Co Skill N...
Ai trả lời giúp cái này và thêm 2 câu nữa:
1/ Trong tutorial [Basic of Struct] của anh Tom thì anh Tom có hướng dẫn làm spell knock back trong Jass, yêu cầu có 2 system là CSSafety và cái system Timer vậy cho hỏi cái system CSsafety có công dụng gì (hình như cái này cũ rồi phải dùng cái system mới).
2/ Em xem trên thehelper.net, những spell Jass thường khai báo biến với từ khóa private, constant
Vậy công dụng của 2 từ này là gì ??Mã:[U][B]private[/B][/U] [U][B]constant[/B][/U] integer SpellAID = 'A000' // ví dụ
cái you nói chắc là powerup nên chưa kịp để trên người là nuốt mẹ rùisao em làm hôk được zị , mới mua no biến mất tiu item lun mà hôk có skill @_@
Mã:Quay Tum lym Events Unit - A unit Acquires an item Conditions (Item-type of (Item being manipulated)) Equal to Quay Tùm Lum Actions Set Units = (Triggering unit) Set Ability[(Player number of (Owner of Units))] = Quay tùm lum If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Level of Ability[(Player number of (Owner of Units))] for (Triggering unit)) Less than 1 Then - Actions Unit - Add Ability[(Player number of (Owner of Units))] to (Triggering unit) Game - Display to (Player group((Owner of Units))) for 10.00 seconds the text: Ban da~ mua Skill Q... Else - Actions Game - Display to (Player group((Owner of Units))) for 5.00 seconds the text: Ban da~ Co Skill N...

-Thành thật xin lỗi bạn, cái trigger Skill2 mình có 1 lỗi nhỏ là... quên condition :)tôi ghi 5 bình là vd thôi chứ nhiêu bình chả đc
khi không có bình máu thì skill không đc chứ không giới hạn
mà skill avatar không thấy có tác dụng gì cả
Skill2
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to (==) Avatar
Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
[B](Real((Charges remaining in (Item carried by (Casting unit) of type Potion of Greater Healing)))) Equal to (==) 0.00[/B]
Then - Actions
Unit - Order (Casting unit) to Stop
Game - Display to (All players controlled by a ((Owner of (Triggering unit)) controller) player) the text: Phai co it nhat 1 P...
[B] Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) + 150.00)[/B]
Else - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
[B] (Real((Charges remaining in (Item carried by (Casting unit) of type Potion of Greater Healing)))) Greater than or equal to (>=) 1.00[/B]
Then - Actions
Item - Set charges remaining in (Item carried by (Casting unit) of type Potion of Greater Healing) to ((Charges remaining in (Item carried by (Casting unit) of type Potion of Greater Healing)) - 1)
Else - Actions

Events
Time - Elapsed game time is 0.00 seconds
Conditions
Actions
Dialog - Change the title of Dialog_MD to Select hero
Set Dialog_MD = (Clicked dialog)
Dialog - Create a dialog button for Dialog_MD labelled Male
Set Dialogbutton_BID[1] = (Last created dialog Button)
Dialog - Create a dialog button for Dialog_MD labelled Female
Set Dialogbutton_BID[2] = (Last created dialog Button)
Dialog - Show Dialog_MD for Player 1 (Red)
Button 1
Events
Dialog - A dialog button is clicked for Dialog_MD
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
And - All (Conditions) are true
Conditions
(Clicked dialog button) Equal to Dialogbutton_BID[1]
Then - Actions
Unit - Create 1 Priest for Player 1 (Red) at (Center of 001 <gen>) facing Default building facing degrees
Dialog - Clear Dialog_MD
Else - Actions
Dialog - Clear Dialog_MD
Button 2
Events
Dialog - A dialog button is clicked for Dialog_MD
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
And - All (Conditions) are true
Conditions
(Clicked dialog button) Equal to Dialogbutton_BID[2]
Then - Actions
Unit - Create 1 Sorceress for Player 1 (Red) at (Center of 001 <gen>) facing Default building facing degrees
Dialog - Clear Dialog_MD
Else - Actions
Dialog - Clear Dialog_MD
Events
Time - Elapsed game time is 0.00 seconds
Conditions
Actions
Dialog - Change the title of Dialog_MD to Select hero
[COLOR="Red"][B]Set Dialog_MD = (Clicked dialog)[/B][/COLOR]
Dialog - Create a dialog button for Dialog_MD labelled Male
Set Dialogbutton_BID[1] = (Last created dialog Button)
Dialog - Create a dialog button for Dialog_MD labelled Female
Set Dialogbutton_BID[2] = (Last created dialog Button)
Dialog - Show Dialog_MD for Player 1 (Red)
Em định làm mấy cái Dialog nhưng không hiểu sao mà vào game thì nó không hiện lên, mấy anh coi giùm em sai chỗ nào
Mã:Events Time - Elapsed game time is 0.00 seconds Conditions Actions Dialog - Change the title of Dialog_MD to Select hero Set Dialog_MD = (Clicked dialog) Dialog - Create a dialog button for Dialog_MD labelled Male Set Dialogbutton_BID[1] = (Last created dialog Button) Dialog - Create a dialog button for Dialog_MD labelled Female Set Dialogbutton_BID[2] = (Last created dialog Button) Dialog - Show Dialog_MD for Player 1 (Red)
Mã:Button 1 Events Dialog - A dialog button is clicked for Dialog_MD Conditions Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions And - All (Conditions) are true Conditions (Clicked dialog button) Equal to Dialogbutton_BID[1] Then - Actions Unit - Create 1 Priest for Player 1 (Red) at (Center of 001 <gen>) facing Default building facing degrees Dialog - Clear Dialog_MD Else - Actions Dialog - Clear Dialog_MD
Các biến gồm:Mã:Button 2 Events Dialog - A dialog button is clicked for Dialog_MD Conditions Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions And - All (Conditions) are true Conditions (Clicked dialog button) Equal to Dialogbutton_BID[2] Then - Actions Unit - Create 1 Sorceress for Player 1 (Red) at (Center of 001 <gen>) facing Default building facing degrees Dialog - Clear Dialog_MD Else - Actions Dialog - Clear Dialog_MD
Dialog_Md: type dialog không array
Dialogbutton_BID: type dialog button (array 2)
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Dialog – Clear Dialog_MD
Dialog - Change the title of Dialog_MD to Select hero
Dialog - Create a dialog button for Dialog_MD labelled Male
Set Dialogbutton_BID[1] = (Last created dialog Button)
Dialog - Create a dialog button for Dialog_MD labelled Female
Set Dialogbutton_BID[2] = (Last created dialog Button)
Dialog - Show Dialog_MD for Player 1 (Red)
Button 1
Events
Dialog - A dialog button is clicked for Dialog_MD
Conditions
(Clicked dialog button) Equal to Dialogbutton_BID[1]
Actions
Unit - Create 1 Priest for Player 1 (Red) at (Center of 001 <gen>) facing Default building facing degrees