HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How to get a level of a buff?

06-21-2008, 02:09 PM#1
cohadar
It seems that GetUnitAbilityLevel for buffs can only return zero or one.

Any ideas?
06-21-2008, 02:11 PM#2
Vexorian
It's impossible.
06-21-2008, 02:20 PM#3
cohadar
It's also very very lame....
06-21-2008, 02:30 PM#4
Rising_Dusk
Vex's right, you'll have to find or store the source of the buff and then get the level of the source ability to figure out the buff's level.
06-21-2008, 02:32 PM#5
the-thingy
If you are asking about that in relation to auras, I made a system that adds a bonus skill to aura-affected units so you can check the ability level of the bonus ability rather than dealing with the buff. I'm fairly sure that it works 100%, but it's hard to test it under every circumstance. Just call the function once for each unit who has the aura, and it'll work for the rest of the game.

Only problem is that I used alot of separate global arrays instead of structs. Probably would've been 10x easier with structs ^^

Here

If it's not in relation to auras then... I don't have a clue
06-21-2008, 03:19 PM#6
zen87
well i guess you can only do it by storing the lvl of the buff by using your abc when the caster cast the spell
06-21-2008, 08:44 PM#7
Anitarf
That's just one of the many reasons why I made my ABuff system.
06-22-2008, 02:38 PM#8
cohadar
Quote:
Originally Posted by Anitarf
That's just one of the many reasons why I made my ABuff system.

I would have to plug out the damage detection part to make it work with ORBEngine but I guess I could give it a try...

EDIT:
Anitarf you programming stile sux really bad.
06-23-2008, 06:41 PM#9
Anitarf
Quote:
Originally Posted by cohadar
Anitarf you programming stile sux really bad.
I don't use stiles when programming, if that's what you mean.