HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Making my own custom auras?

10-24-2003, 05:16 AM#1
Loren_3000
I want to create these auras:

An aura that will every X seconds have a % chance to cyclone an enemy unit. This must be a multi-level , passive ability. The ability must not be able to work on heroes. Each level you increase the % chance of the cyclone happening.

An aura that will have a % chance to strike an enemy unit with a bolt of lightning every 5 seconds using the lightning doodad. This must be a multi-level ability that lasts for 30, 60, or 120 seconds depending on level, and costs 15, 30, or 60 mana depending on level, and deals 50, 75, or 100 damage depending on level.

I have tried modifying current auras but they don't let me add all this stuff. I am going to have to use triggers so any help in that dept. for these would be appreciated.

On a sidenote, do you think these auras are cool ideas?
10-24-2003, 05:33 AM#2
Grater
If only one hero has the aura, is it preplaced on the map?
Will more than one hero (or unit) have the aura? Helps determine how complex the triggers need to be.
10-24-2003, 05:37 AM#3
Loren_3000
Only one hero can have the aura at one time on the map. This is because there is only one hero that has the skill and once he is selected no other player is able to select him.

I was thinking of doing it with a custom trigger picking every unit within 600 range of the hero, the trouble is getting the effect to happen.
10-24-2003, 05:38 AM#4
Loren_3000
Yes, the hero is preplaced on the map. However I don't think that should matter too much but just so you know it is preplaced.
10-24-2003, 05:52 AM#5
Grater
That makes things easier. All you have to do is make a "hidden caster" unit, that means create a unit with the cyclone ability (modify cyclone to have no cooldown or mana cost), then hide the unit. You can pre-place this unit on the map, but you'll still need to hide it with a trigger.
When a player selects the hero with the cyclone aura use a trigger to change the side of the unit to the selecting player.

3 variables:
Unit CycloneHero (the hero with the aura, set with trigger)
Unit CycloneCaster (the hidden caster, set with trigger)
Integer CycloneChance (default 0)

The trigger for learning looks like this:
(replace blizzard with whatever dummy ability you use)
Code:
Learn Cyclone Aura
    Events
        Unit - A unit Learns a skill
    Conditions
        (Learned Hero Skill) Equal to Human Archmage - Blizzard
    Actions
        Set CycloneChance = (CycloneChance + 10)
        Trigger - Turn on Cyclone Aura <gen>

The main trigger looks like this:
Code:
Cyclone Aura
    Events
        Time - Every 10.00 seconds of game time
    Conditions
        (CycloneHero is alive) Equal to True
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Random integer number between 1 and 100) Less than or equal to CycloneChance
            Then - Actions
                Unit - Move CycloneCaster instantly to (Position of CycloneHero)
                Unit - Order CycloneCaster to Night Elf Druid Of The Talon - 
Cyclone (Random unit from (Units within 800.00 of (Position of CycloneCaster)
 matching (((Matching unit) belongs to an enemy of (Owner of CycloneHero)) Equal to True)))
            Else - Actions
Everything from "Unit - Order..." to "Else - Actions" is one big long action.

It should be pretty obvious what values you would need to change to balance it.

It shouldnt be too hard to adapt it to work for the other ability.

edit: Forgot to mention, "Cyclone Aura" trigger starts turned OFF.
10-24-2003, 09:27 AM#6
Loren_3000
WoW, that's an insanely easy way to do that, especially if I give the unit hidden invisibility, no shadow, and invincibility too (to make sure it doesn't die from all the nasty area-of-effect damage spells that will inevitably be cast!). Then naturally I'd have to give the unit 99999 mana and max mana regen so it never runs out.

My dummy ability will be something like evasion with the percentages removed.

Woot! Now I can do all sorts of cool auras like % chance to cast (anything). :) ty muchly.
10-24-2003, 01:51 PM#7
Bulletcatcher
You might be able to base the cyclone aura off the tornado's ability that does basically the same thing. The ability is called 'Tornado Spin (tornado)'.