1. Are you planning to upload your awesome spell or system to Hive? Please review the rules here.
    Dismiss Notice
  2. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  3. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  4. The poll for Hive's 12th Concept Art Contest is up! Go cast your vote for your favourite genie!
    Dismiss Notice
  5. Travel to distant realms and encounter scenes unknown to the common folk. The Greatest of Adventures is upon us with the 8th Cinematic Contest. Join in on a fun ride.
    Dismiss Notice
  6. The 18th Icon Contest is ON! Choose any ingame unit and give him/her Hero abilities. Good luck to all.
    Dismiss Notice
  7. Contestants are to create a scene set in the Stone Age. Come and see what you can come up with. We wish you the best of luck!
    Dismiss Notice
  8. Colour outside the lines! Techtree Contest #13 is a go. The contest is optionally paired.
    Dismiss Notice
  9. Greetings cerebrates, our Swarm needs new spawners that will have numerous children. Join the HIVE's 31st Modeling Contest - Spawners and Spawned! The contest is optionally paired.
    Dismiss Notice
  10. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

(system) [vJass] CustomAura

Submitted by Anachron
This bundle is marked as approved. It works and satisfies the submission rules.
Hey dudes.

I made another system. This is for auras.
Code (vJASS):

//<o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o>
//:     CustomAura
//:         by Anachron
//:        
//:     This system is thought to provide a basic aura system that can be used
//:     to create auras with buffs and unit stat modifiers.
//:
//:     What this is:
//:         This is a very fast and flexible way to create an AOE aura.
//:
//:     Functionality:
//:         - Use buffs
//:         - Use bonuses
//:         - Highly customizeable ([Don't] use whatever you want)
//:         - Highly flexible (You are allowed to change values at any time)
//:         - Fast
//:         - Easy understandable (Examples to bring the system closer to you)
//:         - Well written (Code is non-redundant, cathegorized)
//:
//:     Credits:
//:         Rising_Dusk for GroupUtils [http://www.wc3c.net/showthread.php?t=104464]
//:        
//:     Thanks to:
//:         Axarion for the idea.
//:
//<o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o>
 


I would really like to get some feedback.
[Credits, comments, testing, critique etc are all welcome!]

Requires JNGP 5d and JassHelper 0.A.2.B.

Changelog

0.0.6

  • Added "method activeCond takes nothing returns boolean defaults true" to allow players to create a custom condition for the spell being active
  • Added a magic immunity aura around a soldier that makes all alive units around magic immune, in an area of 500, even enemy units.

0.0.4

  • Fixed all the stuff trigger mentioned.

0.0.3

  • Added 2nd spell, sadly the buffs do not stack yet.



Keywords:
Aura, System, Aura System, CustomAura, BonusMod, Buff
Contents

CustomAura 0.0.6 (Map)

Reviews
Moderator
11:42, 6th Jun 2010 TriggerHappy: Fixed everything I told you to and the system works fine. Though, the demo map is pretty lame.
  1. 11:42, 6th Jun 2010
    TriggerHappy:

    Fixed everything I told you to and the system works fine.
    Though, the demo map is pretty lame.
     
  2. Dark_Axl

    Dark_Axl

    Joined:
    Dec 12, 2007
    Messages:
    473
    Resources:
    2
    Maps:
    1
    Spells:
    1
    Resources:
    2
    code please?
    and have you change something from the map on the last thread?
     
  3. Anachron

    Anachron

    Joined:
    Sep 9, 2007
    Messages:
    6,167
    Resources:
    66
    Icons:
    49
    Packs:
    2
    Tools:
    1
    Maps:
    3
    Spells:
    9
    Tutorials:
    1
    JASS:
    1
    Resources:
    66
    Not much. Just a little bit.
     
  4. watermelon_1234

    watermelon_1234

    Joined:
    Nov 18, 2007
    Messages:
    1,066
    Resources:
    10
    Spells:
    9
    JASS:
    1
    Resources:
    10
    Wow, you made another system. XD

    I tested the system and it seems okay.
    I just wanted to say that I don't think CABuff should depend on an ability to give a buff. (It's limited and doesn't stack if you had multiple auras)
    I think it's a better idea to depend on Slow Aura(Tornado) for the buff giver as it stacks with different buffs and doesn't need to be cast with a dummy unit.
     
  5. Anachron

    Anachron

    Joined:
    Sep 9, 2007
    Messages:
    6,167
    Resources:
    66
    Icons:
    49
    Packs:
    2
    Tools:
    1
    Maps:
    3
    Spells:
    9
    Tutorials:
    1
    JASS:
    1
    Resources:
    66
    One dummy unit for all buffs isn't a big deal imho.
    But buffs can stack too. (Btw, slow aura is FREAKING laggy on mutliple units)
    (Same with all auras)
     
  6. medion555

    medion555

    Joined:
    Jun 20, 2008
    Messages:
    467
    Resources:
    0
    Resources:
    0
    why would you want custom aura's ?
     
  7. watermelon_1234

    watermelon_1234

    Joined:
    Nov 18, 2007
    Messages:
    1,066
    Resources:
    10
    Spells:
    9
    JASS:
    1
    Resources:
    10
    I don't think so. I made another aura with your example and kept everything the same. The result was that only one of the buffs was shown on the enemy units. Unless you have a different stacking in mind?
    I never had that experience yet.

    Edit: I suppose I should also add that aura buffs won't get dispelled normally by spells like Purge or Dispel Magic. Though your system does do a good job of reapplying the buff again, it's nicer to see a unit's status card not changing suddenly when a dispel ability is performed on it.
     
  8. Anachron

    Anachron

    Joined:
    Sep 9, 2007
    Messages:
    6,167
    Resources:
    66
    Icons:
    49
    Packs:
    2
    Tools:
    1
    Maps:
    3
    Spells:
    9
    Tutorials:
    1
    JASS:
    1
    Resources:
    66
    Well I am looking for a spell which buffs stack.
    Have you ever added an aura to more then 100 units? Your fps drop very drastically.

    0.0.3

    • Added 2nd spell, sadly the buffs do not stack yet.
     
  9. watermelon_1234

    watermelon_1234

    Joined:
    Nov 18, 2007
    Messages:
    1,066
    Resources:
    10
    Spells:
    9
    JASS:
    1
    Resources:
    10
    Tested it and you're right; the fps keeps fluctuating.

    Unfortunately, I don't think there are any spells with buffs that stack so you'll either have to rely on having auras that depend on one buff or aura buffs that make performance drop. You should at least make CABuff able to use different spells than Slow for its buffs.
     
  10. ChaosKnight

    ChaosKnight

    Joined:
    Jul 18, 2009
    Messages:
    196
    Resources:
    1
    Spells:
    1
    Resources:
    1
    "Just Another Aura System"

    Originallity: 0/0
    Not one more.

    Vote for approval if you tell me how to detect when a unit Enters/ Leaves range of the aura.
     
  11. Nillere

    Nillere

    Joined:
    Aug 9, 2009
    Messages:
    219
    Resources:
    0
    Resources:
    0
    Another system? Well, might aswell go test it out when i get the time to it :)
     
  12. Anachron

    Anachron

    Joined:
    Sep 9, 2007
    Messages:
    6,167
    Resources:
    66
    Icons:
    49
    Packs:
    2
    Tools:
    1
    Maps:
    3
    Spells:
    9
    Tutorials:
    1
    JASS:
    1
    Resources:
    66
    Use the onRegister and the onUnregister methods.
     
  13. ChaosKnight

    ChaosKnight

    Joined:
    Jul 18, 2009
    Messages:
    196
    Resources:
    1
    Spells:
    1
    Resources:
    1
    Aaah.

    Thanks.

    Aprroval vote. :xxd:
     
  14. Anachron

    Anachron

    Joined:
    Sep 9, 2007
    Messages:
    6,167
    Resources:
    66
    Icons:
    49
    Packs:
    2
    Tools:
    1
    Maps:
    3
    Spells:
    9
    Tutorials:
    1
    JASS:
    1
    Resources:
    66
    0.0.4

    • Fixed all the stuff trigger mentioned.


    By the way, I was starting this aura before last year. I asked Axarion and he said he would be okay with it.
     
  15. Axarion

    Axarion

    Joined:
    Sep 30, 2009
    Messages:
    675
    Resources:
    1
    Spells:
    1
    Resources:
    1
    Yep thats true :) He even asked me if he may upload it :D

    I like the system moar than mine :(

    gj mate^^
     
  16. ChaosKnight

    ChaosKnight

    Joined:
    Jul 18, 2009
    Messages:
    196
    Resources:
    1
    Spells:
    1
    Resources:
    1
    Sorry :p

    Awsome system, still i wish upon god i knew how to use it :S
     
  17. Anachron

    Anachron

    Joined:
    Sep 9, 2007
    Messages:
    6,167
    Resources:
    66
    Icons:
    49
    Packs:
    2
    Tools:
    1
    Maps:
    3
    Spells:
    9
    Tutorials:
    1
    JASS:
    1
    Resources:
    66
    Well you should check the both examples.
     
  18. PurgeandFire

    PurgeandFire

    Code Moderator

    Joined:
    Nov 11, 2006
    Messages:
    7,427
    Resources:
    18
    Icons:
    1
    Spells:
    4
    Tutorials:
    9
    JASS:
    4
    Resources:
    18
    You didn't rearrange your methods like I suggested! :sad:
     
  19. Anachron

    Anachron

    Joined:
    Sep 9, 2007
    Messages:
    6,167
    Resources:
    66
    Icons:
    49
    Packs:
    2
    Tools:
    1
    Maps:
    3
    Spells:
    9
    Tutorials:
    1
    JASS:
    1
    Resources:
    66
    Noo, sorry, I like it that way =) (Create on top is easy imho)