• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Request]

Status
Not open for further replies.
Level 9
Joined
Dec 4, 2007
Messages
562
Hey sense I suck at triggering spells and stuffs I have come to request 2 spells...Okey the spells are for a corupted treant.

The first spell "Tree Aid" is simply a Tranquility that just spawns trees around you while you channel

"Tree Aid- Heals all nearby enemies and cause trees to burst out from the ground around you to prevent units from melee attacking you."

The second spell is passive and I want the higher rank the higher percentage but the roots wont damage the units :p

"Protecting Roots- Whenever a unit attacks you there is a 15/20/25/30/35% chance to root the target making it unable to move for 4 seconds."

I whoud apprichiate if somebody helped me out with these ones. You coud jsut simply guide me thru it or create a spellpack for me :) the spellpack thing whoud probably be easiest tho sense I dont understand anything from triggers :D


Peace
 
Level 8
Joined
Mar 23, 2007
Messages
302
i dont have msn.
just explain your spell here, AS DEATILED as possibel.
how much level , range , chance etc etc
the more information u give me the more it will look like u want it to.

greets equal
 
Level 9
Joined
Dec 4, 2007
Messages
562
Okey here is the deal :p "Tree Aid- Heals all nearby alliance for 500 over 10 seconds, and while you channel this spell trees will surround you making enemies unable to attack you from close range" Next spell is "Inner Roots - Whenever you attack a target there is a 10/20/30/40/50% chance to root the target for 2 seconds making it unable to move" This spell does no damage.

And skip the spell "Protecting Roots" if you havent started yet because I am changing it to inner roots wich will make the your attacks have a chance to root the target instead of when you get attacked. Thanks :D
 
Level 8
Joined
Mar 23, 2007
Messages
302
Done

Ok here is it,
5 levels for boths passive abilities , u can choose
When u got attacked or when u attack.

and the Tree aid is ready to, but if u got stund inside the trees, they still will stay there until the time is gone. (10seconds)
 

Attachments

  • ROOT-M~2.w3x
    45.7 KB · Views: 41
Level 11
Joined
Apr 6, 2008
Messages
760
hm equal u should really look over ur codes lots of unessart stuff

e.g tree aid could be made like this

JASS:
function Trig_Tree_Aid_Conditions takes nothing returns boolean
return ( GetSpellAbilityId() == 'A001' ) or ( GetSpellAbilityId() == 'A004')
endfunction

function Trig_Tree_Aid_Actions takes nothing returns nothing
local unit u = GetTriggerUnit()
local real x = GetUnitX(u)
local real y = GetUnitY(u)
local real angle = 0
local real t = 10.
local destructable array tree [7]
local integer a = 0
loop
    exitwhen a > 7
    set angle = angle + 45
    set tree[a] = CreateDestructable( 'ATtr',x+200*Cos(angle*3.14159/180),y+200*Sin(angle*3.14159/180),0.,.8,GetRandomInt(1,5))
    set a = a + 1
endloop
set a = 0
call PolledWait(t)
loop
    exitwhen a > 7
    call RemoveDestructable(tree[a])
    set tree[a] = null
    set a = a + 1
endloop
set u = null
endfunction
 
Level 8
Joined
Mar 23, 2007
Messages
302
i know about that the code doesnt look so good, but
i was lazy to make a circle and that stuff with loops blabla
i simply did what he needs.
The goal is reached and the spells work fine.
And ofc there is no leak in the Jass. so.
 
Status
Not open for further replies.
Top