HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help making a custom spell - attribute modifying.

03-22-2011, 10:44 PM#1
Dasistgutja
Hey all.
Having a bit of trouble making a spell here.

Desired outcome is that the hero has an aura (I've been using devotion aura for now, with only slightly different stats) which adds armor to surrounding units, then gets an attribute bonus back which depends on the amount of friendlies nearby.
So for example, If surrounded by 4 allies, he would get +4 to his attributes, which would show up as a green +4 (like an item att mod).

I got parts of it to work, but wound up getting thoroughly confused with the whole thing.
Main issues are stacking item attribute mods, and having a good trigger that detects units entering/leaving the area of effect.

Any help greatly appreciated.
03-23-2011, 03:50 AM#2
Nuclear Arbitor
you could just make an attribute bonus for each possible number of allies you support and then counting and applying. fair bit of work but the most straight forward i can think of.
03-23-2011, 09:12 PM#3
Anitarf
I would suggest Bonus Mod for the attribute bonuses. With it, you can get any bonus you want.

Furthermore, I would use ABuff and its aura subsystem to make a completely triggered aura, with a buff that gives the targeted unit an armour bonus and the source unit an attribute bonus when it is applied, and removes those bonuses when it is removed.
03-25-2011, 12:39 PM#4
Dasistgutja
Sweet that's about it, thanks Anitarf.

- One problem, I'm using WC 1.23... any issues presented? (I basically have no internet and can't update T_T)
03-25-2011, 06:29 PM#5
Anitarf
At first glance, BonusMod does not do anything that would make it unusable with older versions of WC3. ABuff itself also shouldn't have problems either, however you need to find older versions of TimerUtils and Table since those libraries had to be rewritten when Blizzard fixed the return bug.
03-27-2011, 04:46 AM#6
AzuhaSky
I think you can use Intuitivebuffsystem to make it!