Topic Post Spell

  • Thread starter Thread starter ducthai
  • Ngày gửi Ngày gửi
Status
Không mở trả lời sau này.
Hix, bạn giỏi thật, mình chỉ cần nghỉ là phải tạo triger nhiều như vậy là nản rồi, Àh, bạn có thê giúp mình vấn đê này không:

vậy bạn có thể hướng dẫn mình làm một triger tăng bonus dam hoặc def tính luôn cả dam + luôn không, àh phải là passive skill nhé. :D:D

nếu chưa nghĩ ra cách thì chỉ mình làm thế nào để chiêu war drum có thể bonus + dam lên trên 400% không, mình max lên cũng chỉ được + 100% thôi
.
___________Auto Merge________________

.
àh phải cái spell cuối của bạn chưa post triger và giải thích đấy.
 
Hix, bạn giỏi thật, mình chỉ cần nghỉ là phải tạo triger nhiều như vậy là nản rồi, Àh, bạn có thê giúp mình vấn đê này không:




.
___________Auto Merge________________

.
àh phải cái spell cuối của bạn chưa post triger và giải thích đấy.

Cái thứ nhất: Xài spell War Drums để tăng damage và cái Spiked Carapace để tăng armor.
Cái thứ hai: "Giữ" phím Shift và bấm Enter để bật thông số thì sẽ chỉnh đc hết tất cả số nguyên (âm, dương có hết).
 
Cho hỏi skill dưới đây làm cách nào để giới hạn số lượng quái bị dính skill,mình đã thử nhiều cách mà ko dc =.=
 
Sao spell này của em làm damage AOE rõ ràng mà nó chẳng đánh được tới thằng thứ 2 vậy???

Mã:
Cung Thu 1
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to Cung Thu_Spell 1 
    Actions
        Set Caster_CT_Spell1 = (Position of (Casting unit))
        Set TargetPoint_CT_Spell1 = (Position of (Target unit of ability being cast))
        Set TargetUnit_CT_Spell1 = (Target unit of ability being cast)
        Special Effect - Create a special effect at (TargetPoint_CT_Spell1 offset by 256.00 towards 60.00 degrees) using Abilities\Spells\Demon\DarkPortal\DarkPortalTarget.mdl
        Special Effect - Destroy (Last created special effect)
        Special Effect - Create a special effect at (TargetPoint_CT_Spell1 offset by 256.00 towards 180.00 degrees) using Abilities\Spells\Demon\DarkPortal\DarkPortalTarget.mdl
        Special Effect - Destroy (Last created special effect)
        Special Effect - Create a special effect at (TargetPoint_CT_Spell1 offset by 256.00 towards 300.00 degrees) using Abilities\Spells\Demon\DarkPortal\DarkPortalTarget.mdl
        Special Effect - Destroy (Last created special effect)
        Special Effect - Create a special effect at (TargetPoint_CT_Spell1 offset by 256.00 towards 0.00 degrees) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
        Special Effect - Destroy (Last created special effect)
        Special Effect - Create a special effect at (TargetPoint_CT_Spell1 offset by 256.00 towards 120.00 degrees) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
        Special Effect - Destroy (Last created special effect)
        Special Effect - Create a special effect at (TargetPoint_CT_Spell1 offset by 256.00 towards 240.00 degrees) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
        Special Effect - Destroy (Last created special effect)
        Unit - Create 1 Dummy_CT_Spell1 for (Owner of (Casting unit)) at Caster_CT_Spell1 facing Default building facing degrees
        Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
        Unit - Order (Last created unit) to Human Mountain King - Storm Bolt TargetUnit_CT_Spell1
        Wait 0.20 seconds
        Unit Group - Pick every unit in (Units in (Region centered at TargetPoint_CT_Spell1 with size (512.00, 512.00)) matching (((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True)) and do (Actions)
            Loop - Actions
                Unit - Cause (Casting unit) to damage (Picked unit), dealing 500.00 damage of attack type Magic and damage type Normal
        Custom script:   set udg_TargetUnit_CT_Spell1 = null
        Custom script:   call RemoveLocation (udg_Caster_CT_Spell1)
        Custom script:   call RemoveLocation (udg_TargetPoint_CT_Spell1)

Ai giúp em với, hức. Chiêu này là làm 1 thằng dummy cast chiu quẳng búa vô người con quái, tạo sát thương 500 trong khoảng siện tích 512x512. Ấy vậy mà.... :-w
 
@dannyminhduc: post map lên xem thử, đã add skill cho dummy chưa, skill cast có phải auto cast không, nhìn triger có hơi rắc rối nhưng mình chẳng thấy gì sai( hoặc tại mình gà nên chưa thấy.
 
có cái spell cũng ko set biến đoàng hoàng :|
set biến cũng ngược đời ,
set casting unit , set group rồi sau đó pick group và cause dummy damage to picked là đc rồi , mà chỉnh cai storm bolt lại thành mana 0 và cooldown 0 đi nha
 
Sao spell này của em làm damage AOE rõ ràng mà nó chẳng đánh được tới thằng thứ 2 vậy???

Mã:
Cung Thu 1
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to Cung Thu_Spell 1 
    Actions
        Set Caster_CT_Spell1 = (Position of (Casting unit))
        Set TargetPoint_CT_Spell1 = (Position of (Target unit of ability being cast))
        Set TargetUnit_CT_Spell1 = (Target unit of ability being cast)
        Special Effect - Create a special effect at (TargetPoint_CT_Spell1 offset by 256.00 towards 60.00 degrees) using Abilities\Spells\Demon\DarkPortal\DarkPortalTarget.mdl
        Special Effect - Destroy (Last created special effect)
        Special Effect - Create a special effect at (TargetPoint_CT_Spell1 offset by 256.00 towards 180.00 degrees) using Abilities\Spells\Demon\DarkPortal\DarkPortalTarget.mdl
        Special Effect - Destroy (Last created special effect)
        Special Effect - Create a special effect at (TargetPoint_CT_Spell1 offset by 256.00 towards 300.00 degrees) using Abilities\Spells\Demon\DarkPortal\DarkPortalTarget.mdl
        Special Effect - Destroy (Last created special effect)
        Special Effect - Create a special effect at (TargetPoint_CT_Spell1 offset by 256.00 towards 0.00 degrees) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
        Special Effect - Destroy (Last created special effect)
        Special Effect - Create a special effect at (TargetPoint_CT_Spell1 offset by 256.00 towards 120.00 degrees) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
        Special Effect - Destroy (Last created special effect)
        Special Effect - Create a special effect at (TargetPoint_CT_Spell1 offset by 256.00 towards 240.00 degrees) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
        Special Effect - Destroy (Last created special effect)
        Unit - Create 1 Dummy_CT_Spell1 for (Owner of (Casting unit)) at Caster_CT_Spell1 facing Default building facing degrees
        Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
        Unit - Order (Last created unit) to Human Mountain King - Storm Bolt TargetUnit_CT_Spell1
        Wait 0.20 seconds
        Unit Group - Pick every unit in (Units in (Region centered at TargetPoint_CT_Spell1 with size (512.00, 512.00)) matching (((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True)) and do (Actions)
            Loop - Actions
                Unit - Cause (Casting unit) to damage (Picked unit), dealing 500.00 damage of attack type Magic and damage type Normal
        Custom script:   set udg_TargetUnit_CT_Spell1 = null
        Custom script:   call RemoveLocation (udg_Caster_CT_Spell1)
        Custom script:   call RemoveLocation (udg_TargetPoint_CT_Spell1)

Ai giúp em với, hức. Chiêu này là làm 1 thằng dummy cast chiu quẳng búa vô người con quái, tạo sát thương 500 trong khoảng siện tích 512x512. Ấy vậy mà.... :-w

Phải set biến cho Casting Unit vì sau khi Wait 0.20 second thì Casting Unit = null.
P/s: Ấy vậy mà làm sao?
 
Mình có cái triger này :
Chem Xuong
Events
Conditions
Actions
Trigger - Turn off (This trigger)
-------- ---------------------- --------
Set CXTarget = (Triggering unit)
Set UnitCX = (Damage source)
Set CXDam = (Damage taken)
-------- Chem Xuong --------
Set CXLvl = (Level of ChemXuong for TempUnit2)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CXLvl Greater than 0
(TempUnit has buff ChemXuong ) Equal to True
Then - Actions
Unit - Remove ChemXuong buff from TempUnit
Set CXTargetLoc = (Position of CXTarget)
Floating Text - Create floating text that reads (|c0000FFFF+ + ((String((Integer((CXDam x 20.00))))) + |r)) above TempUnit with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
Unit - Move UnitCX instantly to CXTargetLoc
Animation - Play UnitCX's Attack Slam animation
Unit - Cause UnitCX to damage CXTarget, dealing (CXDam x 20.00) damage of attack type Chaos and damage type Normal
Else - Actions
-------- ---------------------- --------
Trigger - Turn on (This trigger)

mình muốn cho blade nhảy lên chém vào đối phương, nhưng có một vấn đê là mình chỉ muốn Blade sử dụng Attack Slam thôi và bỏ qua chiêu đánh khi auto cast spell, có bạn nào giúp mình không,

Thêm một điều nữa là nếu muốn add autocast spell cho item thì thế nào, mình add thử nhưng không thể nào tun on spell cả.
 
mình chưa bao giờ chơi map nào có auto cast spell item cả :|
bỏ qua animation của spell thì vào spell tìm dòng đầu tiên xóa hết là xong
 
@dannyminhduc: post map lên xem thử, rồi mình sửa giúp cho.
_________________________

Mình có cái triger này :
Chem Xuong
Events
Conditions
Actions
Trigger - Turn off (This trigger)
-------- ---------------------- --------
Set CXTarget = (Triggering unit)
Set UnitCX = (Damage source)
Set CXDam = (Damage taken)
-------- Chem Xuong --------
Set CXLvl = (Level of ChemXuong for TempUnit2)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
CXLvl Greater than 0
(TempUnit has buff ChemXuong ) Equal to True
Then - Actions
Unit - Remove ChemXuong buff from TempUnit
Set CXTargetLoc = (Position of CXTarget)
Floating Text - Create floating text that reads (|c0000FFFF+ + ((String((Integer((CXDam x 20.00))))) + |r)) above TempUnit with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
Unit - Move UnitCX instantly to CXTargetLoc
Animation - Play UnitCX's Attack Slam animation
Unit - Cause UnitCX to damage CXTarget, dealing (CXDam x 20.00) damage of attack type Chaos and damage type Normal
Else - Actions
-------- ---------------------- --------
Trigger - Turn on (This trigger)

mình muốn cho blade nhảy lên chém vào đối phương, nhưng có một vấn đê là mình chỉ muốn Blade sử dụng Attack Slam thôi và bỏ qua chiêu đánh khi auto cast spell, có bạn nào giúp mình không,

Thêm một điều nữa là nếu muốn add autocast spell cho item thì thế nào, mình add thử nhưng không thể nào tun on spell cả.
.
___________Auto Merge________________

.
mình chưa bao giờ chơi map nào có auto cast spell item cả :|
bỏ qua animation của spell thì vào spell tìm dòng đầu tiên xóa hết là xong

vì mình muốn đặc biệt nên mới cho autocast vào item, bạn giúp mình được không, còn cái animation thì mình tự mò được rồi, dù sao cũng thank bạn.
 
Sao mình chỉnh cast range cua autocast spell là 100 nhưng khi đứng xa đánh thì vẫn đánh ra spell vậy, thế thì để cast range trong spell làm cái gì, có thể nào chỉnh castrange của spell mà không đụng đến attack range của hero không. như attack range của hero là 500 và cast range cua spell là 100 thì phải đến gần khoảng 100 thi hero mới đánh không.
_______________________________
link down map
http://www.mediafire.com/download.php?3kdztzwwhul
 
Xin giới thiêu với các bạn hâm mộ Naruto Spell Fuuto Rasen Shuriken :P

Name Spell : Naruto Spell Fuuto Rasen Shuriken
Target Type : Target Unit
Mô Tả : Hiền Nhân Naruto sử dụng phân thân thuật tạo ra 3 phân thân để giúp đỡ Naruto tạo ra 1 Raisegan Cực mạnh rồi Naruto lao đến tấn công TargetUnit = Raisegan đó , khi TargetUnit bị dính đòn thì sẽ bị văng lên trời (Knockback 1000 range) sau đó Raisegan nổ tạo ra quả cầu năng lượng cực mạnh gây damage AOE với tất cả mọi thứ . hết.

Hình ảnh minh họa :
Xong.
Hic phải Post 3 Spell cùng 1 lúc mệt kinh luôn :(( , Spell trên có vài điểm chưa hoàn hảo nhưng cũng ko tệ , nó khá giống như trong truyện , chỉ khác ở mỗi chỗ là ko có tạo phân than rùi cho nó đánh mục tiêu để "nghi binh" thui , còn lại hầu như khá giống b-)
Ai cần chỉnh sửa gì cứ kêu tự nhiên. ;;)

Skill này có vài khuyết điểm như sau : ra đòn chậm,mục tiêu bị target ban đầu sau khi knock back chết rồi mà ko rã ra thành xương - còn nguyên hình thèn lính đang đứng tỉnh bơ còn giơ tay khều khuề (O__O),thỉnh thoảng,khi mục tiêu mà mình targer bị đồng minh kill ngay khi mình chưa kịp tung skill ( tức là đang lúc còn 3 cái image và mục tiêu bị freeze ) thì hero đứng im bất động luôn,có khi tung skill xong chẳng còn thấy hero đâu T____T
 
Sao mình chỉnh cast range cua autocast spell là 100 nhưng khi đứng xa đánh thì vẫn đánh ra spell vậy, thế thì để cast range trong spell làm cái gì, có thể nào chỉnh castrange của spell mà không đụng đến attack range của hero không. như attack range của hero là 500 và cast range cua spell là 100 thì phải đến gần khoảng 100 thi hero mới đánh không.

cái này thì chịu rồi, cái Cast Range có thể chỉ là tầm cast khi "manual-cast", nghĩa là cast = tay, còn range của "auto-cast" thì bằng range của attack rồi.
-> chịu rồi, ko có cách.
 
Làm ability mới nha(cái này base từ 1 ability của thehelper đc em chỉnh sửa)
Tên Ability:Cry me a river(giống tên bài hát nhỉ)
Description:Imbue Beauty tears in her arrow.transform them into Crushing Wave,destroy enemies in their path
Ưu điểm của ability này là rất dễ chỉnh sửa
Em sẽ chứng minh = hình ảnh
Hình ảnh gốc của ability
cmar.jpg

Và đây là đã chỉnh sửa(rất dễ phải ko)
cmar2.jpg

Trigger
Cry me a river
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Cry me a river
Actions
Set ShockLvL = (Level of Cry me a river for (Triggering unit))
Set ShockAngle = (Facing of (Triggering unit))
Set ShockCasterLoc = (Position of (Triggering unit))
For each (Integer A) from 1 to (3 x ShockLvL), do (Actions)
Loop - Actions
Set ShockAngle = (ShockAngle + (20.00 / (Real(ShockLvL))))
Set ShockLoc[(Integer A)] = (ShockCasterLoc offset by 256.00 towards ShockAngle degrees)
Unit - Create 1 dummy for (Owner of (Triggering unit)) at ShockCasterLoc facing Default building facing degrees
Unit - Add Arrow to (Last created unit)
Unit - Set level of Arrow for (Last created unit) to ShockLvL
Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Undead Dreadlord - Carrion Swarm ShockLoc[(Integer A)]
Custom script: call RemoveLocation (udg_ShockLoc [bj_forLoopAIndex])
Custom script: call RemoveLocation (udg_ShockCasterLoc)
 

Attachments

2 spell trên đã thấy trên hive hết rồi , chỉ chế biến lại 1 tí thôi :))
 
Làm ability mới nha(cái này base từ 1 ability của thehelper đc em chỉnh sửa)
Tên Ability:Cry me a river(giống tên bài hát nhỉ)
Description:Imbue Beauty tears in her arrow.transform them into Crushing Wave,destroy enemies in their path
Ưu điểm của ability này là rất dễ chỉnh sửa
Em sẽ chứng minh = hình ảnh
Hình ảnh gốc của ability



Trigger
Cry me a river
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Cry me a river
Actions
Set ShockLvL = (Level of Cry me a river for (Triggering unit))
Set ShockAngle = (Facing of (Triggering unit))
Set ShockCasterLoc = (Position of (Triggering unit))
For each (Integer A) from 1 to (3 x ShockLvL), do (Actions)
Loop - Actions
Set ShockAngle = (ShockAngle + (20.00 / (Real(ShockLvL))))
Set ShockLoc[(Integer A)] = (ShockCasterLoc offset by 256.00 towards ShockAngle degrees)
Unit - Create 1 dummy for (Owner of (Triggering unit)) at ShockCasterLoc facing Default building facing degrees
Unit - Add Arrow to (Last created unit)
Unit - Set level of Arrow for (Last created unit) to ShockLvL
Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Undead Dreadlord - Carrion Swarm ShockLoc[(Integer A)]
Custom script: call RemoveLocation (udg_ShockLoc [bj_forLoopAIndex])
Custom script: call RemoveLocation (udg_ShockCasterLoc)

"Làm ơn" cho đoạn trigger vào thẻ CODE đc kô.
Cái này này: [CODE.]trigger[/.CODE] (bỏ dấu "." đi)
 
Skill này có vài khuyết điểm như sau : ra đòn chậm,mục tiêu bị target ban đầu sau khi knock back chết rồi mà ko rã ra thành xương - còn nguyên hình thèn lính đang đứng tỉnh bơ còn giơ tay khều khuề (O__O),thỉnh thoảng,khi mục tiêu mà mình targer bị đồng minh kill ngay khi mình chưa kịp tung skill ( tức là đang lúc còn 3 cái image và mục tiêu bị freeze ) thì hero đứng im bất động luôn,có khi tung skill xong chẳng còn thấy hero đâu T____T
Cảm ơn bạn đã đưa ra nhận xét :| thật đúng là mình thiếu sót quá ,đáng lẽ phải đặt thêm điều kiện nếu Target Unit Die thì Turn off 2 Trigger còn lại và Unpáuse Caster thật là thiếu sót quá :P ,mình sẽ cố gắng sửa lại .

Còn cái khi Target Unit chết thì để lại hình dạng mà ko chịu biến mất thì mình ko bít cách làm sao cho nó mất hết , ai bít thì chỉ giúp nhé :D
 
Dùng dòng này:
Mã:
Animation - Reset Unit Animation

P/s: Mà làm gì lặp lại hai lần cái này vậy: "thiếu sót quá"? Nghe bựa bựa nên nói:)).
 
Cảm ơn Game_war48 , mà ông có còn sài cái Nick vodiemphong ko vậy sao dạo này chả thấy đâu hết cả vậy ???:|
 
Status
Không mở trả lời sau này.
Back
Top