• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Global Experience for Party (Memory Leak Question)

Status
Not open for further replies.
Since an active RPG party in my project can only have a limited number of members in it at a time, and the other followers are disabled, there would be a problem where the more active party members would have higher levels than the rest.

I'm trying to figure out a system where quests give all party members (whether they're active or not) the same experience points. Now it's just simply adding experience to each party member, but I want to know if I can just use a unit group to give the experience to.

It sounds like a no-brainer but I will only have to set the unit group variable once, and just apply the experience points to it the entire game. Do I still have to use custom script to destroy the unit group each time? I'm not altering the variable at any time after I've already set its value.

EDIT: If you have a better idea of how to implement global party experience, I'd love to know your thoughts. I just want the party members to have relatively close levels, instead of a few overpowered ones and the others lagging behind because the player doesn't like to use them often.
 
Do I still have to use custom script to destroy the unit group each time?
Nope, looping through a group variable shouldn't leak. You'll only have to destroy it if you'll be setting it to something else.
 
Status
Not open for further replies.
Back
Top