[Andrewgosus problem section]

Kershbob

New Member
Reaction score
30
Code:
Start Blizzard
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to Blizzard
    Actions
        Set Ability_Blizzard_Caster = (Casting unit)
        Trigger - Turn on Blizzard Drain <gen>

Code:
Stop Blizzard
    Events
        Unit - A unit Stops casting an ability
    Conditions
        (Ability being cast) Equal to Blizzard
    Actions
        Trigger - Turn off Blizzard Drain <gen>

For this one untick "Initially On" \/

Code:
Blizzard Drain
    Events
        Time - Every 0.20 seconds of game time
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Mana of Ability_Blizzard_Caster) Greater than or equal to 5.00
            Then - Actions
                Unit - Set mana of Ability_Blizzard_Caster to ((Mana of Ability_Blizzard_Caster) - 5.00)
            Else - Actions
                Trigger - Turn off (This trigger)
 

Kershbob

New Member
Reaction score
30
Yes its a unit variable; you can call it what you want. I just like to be neat.

It drains 25 mana a second at the moment by the way.

mana seconds
5 : 0.20
25 : 1
 

Andrewgosu

The Silent Pandaren Helper
Reaction score
716
Hmm, I only found set level for ability for unit, Set custom values, Set movement speed, Set rescue range ect.

Ddidnt find the set variable = caster..
 

Andrewgosu

The Silent Pandaren Helper
Reaction score
716
Thanks. Cool tileset btw.

But what do you mean limited to one player? If i have 3 players on a map or 3 mages the trigger wont work and crashes?
 

Jo.O

Bored...
Reaction score
70
If you wan't it to work on more than one player at the same time you will need to you locals, and that would be JASS.
(Cuz it will make problems if two people start casting this magic at the same time.)
 

Mullit

New Member
Reaction score
51
whoever is in the middle of casting it will get stopped and only the most recent caster would actualy cast it.
 

Andrewgosu

The Silent Pandaren Helper
Reaction score
716
Ok, I posted a new thread in the Jass section involving this problem.

Testing the spell itself revealed another problem:
When the mana is drained completely, the spell keeps on casting. I would like to cast as many waves as the mana allows.

I tried pause and the unpause the unti after the mana is less than 10, but only with preplaced unit.(And it worked)

But it didt allow me to use the ability_blizzard_caster variable somehow instead the preplaced mage..
 

Kershbob

New Member
Reaction score
30
Where it says "turn off This Trigger" add before it "Issue Order Without A Target"

Set unit to the vairable and order to "Stop"
 

Kershbob

New Member
Reaction score
30
Andrewgosu said:
I tried pause and the unpause the unti after the mana is less than 10, but only with preplaced unit.(And it worked)

But it didt allow me to use the ability_blizzard_caster variable somehow instead the preplaced mage..

Don't do that /\


Leave it as it was and just make the make be forced to stop instead of replacing him.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top