HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Triggered Ability Problem!

07-31-2004, 02:03 AM#1
Vandell
Okay, here's the ability:

o Name: Soul Contract
o Ability: Level 1 - While this ability is on AutoCast (by right-clicking), the hero gains 1 gold a second but loses 1 mana a second. Level 2 - Same as level 1, except gains 2 gold a second. Level 3 - Same as level 1, except gains 3 gold a second and loses 2 mana a second.

So, basically.. how do I make it happen? I currently have it as..

Code:
Soul Contract GoldMana
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to Soul Contract 
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                SoulContractSkillLevel Equal to 1
            Then - Actions
                Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) - 1.00)
                Player - Add 1 to (Owner of (Triggering unit)) Current gold
                Wait 1.00 seconds
            Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        SoulContractSkillLevel Equal to 2
                    Then - Actions
                        Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) - 1.00)
                        Player - Add 2 to (Owner of (Triggering unit)) Current gold
                        Wait 1.00 seconds
                    Else - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            If - Conditions
                                SoulContractSkillLevel Equal to 3
                            Then - Actions
                                Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) - 2.00)
                                Player - Add 3 to (Owner of (Triggering unit)) Current gold
                                Wait 1.00 seconds
                            Else - Actions

But this doesn't work; also note, I -do- have the variables set up correctly.
08-01-2004, 09:19 AM#2
Greyish
I think it may have to do with it being an autocast spell. If what you have works right, you will only get the 1 gold the first time the unit clicks on the ability. So it wouldn't keep giving you gold or taking away mana every second while its on. Is it one of those auto-cast abilites that when you put on it stays on like immolation, or more like raise dead?
08-01-2004, 01:44 PM#3
Vandell
Quote:
Originally Posted by Greyish
I think it may have to do with it being an autocast spell. If what you have works right, you will only get the 1 gold the first time the unit clicks on the ability. So it wouldn't keep giving you gold or taking away mana every second while its on. Is it one of those auto-cast abilites that when you put on it stays on like immolation, or more like raise dead?

Well, I was going to put it as a Raise Dead, per se, but now that you mention it, using it as an Immolation-esque ability would work even better. So, yes, Immolation.