Computer(Lord)
T.E.T.Я.I.S
- 2/11/08
- 615
- 2
Có ai biết action nào hide con trỏ đi ko?
Ko ai trả lời à.

30 charrrrrrrrrrr
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 biết action nào hide con trỏ đi ko?



Mình cũng có 1 rắc rối với chuyện "biến hình thành unit khác-stat giữ nguyên".Mình sử dụng skill base là Bear Form , khi kích hoạt thì unit sẽ "biến hình" (từ form 1 sang form 2) đồng thời vẫn giữ skill cũ.Nhưng mà mình muốn khi trở thành form 2 unit có thêm 1 skill passive mà form 1 ko có thì phải làm sao ? Có cần phải dùng trigger ko ? Mình làm trigger như thế này mà nó chỉ hoạt động 1 lần duy nhất.Add skill vô chứ ko Remove skill ra dc.
Switch Mode 1
Events
Unit - A unit Finishes casting an ability
Conditions
(Ability being cast) Equal to Switch Mode
Actions
Set Switch_Mode_Caster = (Casting unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Burning Oil for Switch_Mode_Caster) Greater than 0
Then - Actions
Unit - Remove Burning Oil from Switch_Mode_Caster
Else - Actions
Unit - Add Burning Oil to Switch_Mode_Caster
Unit - Set level of Burning Oil for Switch_Mode_Caster to (Level of Switch Mode for Switch_Mode_Caster)
Set Switch_Mode_Caster = No unit
Sorry mod , quên mất cách chèn code rồi![]()

Ko ai trả lời à.
30 charrrrrrrrrrr

Tình hình là bế tắc ở 2 vấn đề:
+mình có 1 cái research 11 level (là 11 skill của spell book), mình muốn khi upgrade đến lv5 thì giảm size của nó 25% thì làm thế nào?
+mình có 1 cái research 1 level khác, khi mình research nó xong thì 1 unit sẽ thành 1 unit khác với stat khác nhưng mình muốn skill của nó vẫn giữ nguyên, ko dùng được cái upgrade của troll hay metamorph vì unit có custom skill, khi dùng những cái đấy thì các custom skill sẽ mất ...
Ai biết chỉ giùm cái![]()
if GetUnitAbilityLevel(whichUnit, whichint) == 5 then // whichint là rawcode của ability
call SetUnitScale(whichUnit, scaleX, scaleY, scaleZ) // tuỳ ý
endif
, tốt nhất nên post đoạn code lên cho dễ hình dung.
FIX:trong WE có bán sách công thêm damge, vậy có ai bít cách nào làm sách cộng thêm mân ko?

Trích dẫn:
trong WE có bán sách công thêm damge, vậy có ai bít cách nào làm sách cộng thêm mân ko?
FIX)
trong WE có bán sách công thêm damge, hp, vậy có ai bít cách nào làm sách cộng thêm mana ko?

Trigger it, khi mua sách thì lập tức remove hoặc để sẵn tính năng.. khó nói tên quá nhỉ, thôi thì gọi là ăn sẵn của item vậy ( khi mua item nó học luôn sách ý ) rùi set Max mana + 1 con số nhất định nào đó tùy ý bạn.
Hy vọng bạn làm được![]()
YAN[asian];13744380 nói:Cần 1 demo map về slide unit tương tự như skill phi tên của hổ (Dota) (gồm : slide unit, đến range bao nhiêu thì dừng, chạm vào unit thì dừng, trúng càng xa thì stun càng lâu) bằng GUI nhé! Cảm ơn!
Ai có thể giúp em làm cách chọn tướng bằng cách click chuột hoặc , cho 1 unit đi vào trên map này được không ạ
http://rapidshare.com/files/318778300/zzzzz.w3x.html
muốn có thêm passive skill thì bấm vào con unit ở form 2 rồi add cho nó passive skill có gì đâu

btw, có ai chỉ tớ cách làm skill channeling 1 target, cái skill life drain với siphon mana có cái loop trên đầu trông chả hay gì cả

Àh , mình muốn skill Passive tăng Level theo level của skill biến hình luôn, cho dễ hình dung thì mình định làm skill giống skill 1 của Troll Warlord ( Berserker's Rage thì phải) ấy mà
Biến hình
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to [b]Your ability form[/b]
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering unit) Equal to [b]Unit ko có skill passive[/b]
Then - Actions
Unit - Add [b]Your passive skill[/b] to (Triggering unit)
Unit - Set level of [b]Your passive skill[/b] for (Triggering unit) to (Level of [b]Your ability form[/b] for (Triggering unit))
Else - Actions
Unit - Remove [b]Your passive skill[/b] from (Triggering unit)

Thêm 1 câu hỏi nữa ( câu hỏi muôn thuở ) : làm sao để nhập giá trị âm ? Mình nhớ là Shift + Enter.Nhưng ko biết là Shift + Enter trước cho nó hiện ra cái ô rồi nhập hay nhập giá trị vô ô rồi mới Shift + Enter

Đang tính làm 1 map RPG nhưng có bác nào giúp là item như tui nói ko:
Set tất cả các kiếm, đao, trùy, cung ... (vk = item type)
Khi có 1 cái vk trên người thì thì lụm cái vk # sẽ rớt xuống
bác nào bít làm trigg này giúp với![]()


Cảm giác lỗi ở đoạn check condition ...scope Juxtapose
globals
private integer ABIL_ID = 'A06B' // main abil
private integer DUM_ID = 'o00C' // dummy unit
private integer DUM_ABIL = 'A05M' // sub abil
private integer ILLUSION_WARD = 852274 // order id, thank Cohadar
private integer BUFF_ID = 'BTLF' // simple, blizz Timed Life buff
endglobals
private function Conditions takes nothing returns boolean
return GetUnitAbilityLevel(GetAttacker(),ABIL_ID) >= 1 and IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE) and IsPlayerEnemy(GetOwningPlayer(GetTriggerUnit()), GetOwningPlayer(GetAttacker())) == true and IsUnitIllusion(GetAttacker()) == false
endfunction
private function Chance takes nothing returns boolean
return GetRandomInt(1, 100) <= ( 5 * GetUnitAbilityLevel( GetAttacker(), ABIL_ID) )
endfunction
private function Actions takes nothing returns nothing
local unit attacker = GetAttacker()
local player p = GetOwningPlayer(attacker)
local real x = GetUnitX(attacker)
local real y = GetUnitY(attacker)
local unit dummy
if ( Chance() ) then
set dummy = CreateUnit( p, DUM_ID, x, y, 0 )
call UnitApplyTimedLife( dummy, BUFF_ID, 1.00 )
call UnitAddAbility( dummy, DUM_ABIL )
call IssueTargetOrderById ( dummy, ILLUSION_WARD, attacker )
endif
set attacker = null
set dummy = null
endfunction
//===========================================================================
public function InitTrig takes nothing returns nothing
local trigger t = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( t, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( t, Condition( function Conditions ) )
call TriggerAddAction( t, function Actions )
endfunction
endscope
private function Actions takes nothing returns nothing
local unit attacker = GetAttacker()
local player p = GetOwningPlayer(attacker)
local real x = GetUnitX(attacker)
local real y = GetUnitY(attacker)
local unit dummy
[B][COLOR="Red"]call BJDebugMsg(" attack ! ")[/COLOR][/B]
if ( Chance() ) then
[B][COLOR="Red"]call BJDebugMsg(" spawn illusion ! ")[/COLOR][/B]
set dummy = CreateUnit( p, DUM_ID, x, y, 0 )
call UnitApplyTimedLife( dummy, BUFF_ID, 1.00 )
call UnitAddAbility( dummy, DUM_ABIL )
call IssueTargetOrderById ( dummy, ILLUSION_WARD, attacker )
endif
set attacker = null
set dummy = null
endfunction
