How can i do this?

J3LADE

New Member
Reaction score
7
How can i make an aura activateable and deactivateable and when active it drains mana?

And is it possible to refer to a units statistics in an ability tooltip? (In the editor not during game)
 

~GaLs~

† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
Reaction score
180
Immolation?
Edit - mana shield?

Edit 2 - or mayb keep minus the hero's mana by trigger?
 

J3LADE

New Member
Reaction score
7
"Aura" activateable/deactivateable. Example: Devotion Aura, Command Aura and Endurance Aura.
 
T

Twyddli

Guest
You may need to make one ability based on immolation, and one based on the aura, and use triggers like -

Code:
Event
    Unit a unit starts the effect of an ability.
Condition
    Ability being cast Immolation based ability.
Action
    Give triggering unit Aura ability
    set level of aura ability for triggering unit to level of immolation based spell.
and then do one that removes the ability from your hero. Also stick the aura based spell in a spellbook, and then when you cast immolation, at the end of the actions put in disable spell book for your hero.
That way you wont see the icon in your heroes ability section, but it will still be activated.

hope i helped ;)
 

Anachron

New Member
Reaction score
53
Create 4 abilities. 1.) Activate Aura. 2.) Aura 3.) Deactivate Aura and 4.) an Orb ( Hides your Aura, but still works )

When you pressed Activate aura, you get your Aura and dectivate Aura. Then you set boolream Aura Drain[PlayerNumberOfOwnerOftriggeringUnit] = True
Then you create a new trigger. Every 1 seconds of the game. Do loop damage for that. Also you need to remove aura again, something like that.

Ability Orb:
Simple make an Spellbook, adding the aura, disable it at map init.

NOw the triggers:

Init Spellbook:
E:Elapsed game time equal to 0.00 seconds.
C:/
A:For Loop IndexA from 1 to *PlayerMaxNumberInYourMap*
Player - Disable *Spellbook_Aura* For Player[IndexA]

Init Aura Drain:
E: A unit starts the effect of an ability
C: Ability being cast equal to Activate Aura
A: Remove Ability being cast from triggering unit
Set Aura Drain[PlayerNumberOfOwnerOftriggeringUnit] = True
Set Aura_Caster[PlayerNumberOfOwnerOfTriggeringUnit] = Triggering Unit
Add Deactivate Aura to triggering unit
Add Spellbook_Aura to triggering unit

Drain Lives / Whatever
E: Every 1 seconds of the game.
C:
A:
For loop index A from 1 to *PlayerMaxNumberInYourMap* do (multiple actions)
If Then Else Actions ( Multiple Actions )
If Aura_Drain[IndexA] equal to true
Then Do:
Set Lives of *Aura_Caster* to Lives of Aura_Caster - 1
Else do:
/

Deactivate Drain:
E: A unit starts the effect of an ability
C: Ability being cast equal to Deactivate Aura
A: Remove Ability being cast from triggering unit
Set Aura Drain[PlayerNumberOfOwnerOftriggeringUnit] = False
Set Aura_Caster[PlayerNumberOfOwnerOfTriggeringUnit] = No Unit
Remove Spellbook_Aura to triggering unit
Add Activate Aura to triggering unit

Thats it :) Btw I made it freehand so sorry if something isn't that written then in WE.

Edit: Shit someone was faster :(
 

~GaLs~

† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
Reaction score
180
hey...com on bro...
u can use trigger to remove and add buff to the unit....

U can do this when decreasing the unit's mana-
Code:
E - every 1 sec
C - 
A - if -xunit's mana is bigger or equal to 1
     then - set xunit's mana to xunit's mana - 10
            add xxbuff to xunit
     else - remove xxbuff from xunit

Edit- ArH...lose to u by 2 minits
 

Anachron

New Member
Reaction score
53
Took me minutes to write that and I saw he actually got it :D lol :)

Edit: You can add buffs to unit?! I make screenshot there isn't a function for me for adding buffs ... >.<
 

~GaLs~

† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
Reaction score
180
lol..but i am still lost to u by 2 minit T.T
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top