• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[General] How would one think about doing stacked passives

Status
Not open for further replies.
Level 21
Joined
Mar 27, 2012
Messages
3,232
Text of any kind is what increases loading times the most(It's an enormous difference, as seen in my benchmarks).

For buffs, I use a combination of indexing(every unit has a doubly linked list; available indexes are in a stack) and actual abilities.

How do I determine stacks? Level of ability.
How do I determine when to remove the visual effect? Level of ability.
Debuffing? Each buff type has a trigger for it that can be called like a function.
Duration and actual effects are handled by whoever uses the system.

If you want to use this system, then I can provide you all the requirements. For me the thinking required is too much atm though, so I don't use it myself. When I figure out the full picture I'll probably rewrite it to be more comfortable to use.
 

Attachments

  • UnitPerk.w3x
    22.5 KB · Views: 21
Status
Not open for further replies.
Top