• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Solved] Variable Group?

Status
Not open for further replies.
Level 11
Joined
Jan 23, 2015
Messages
788
What is the best way to make a variable group (e.g. a group of strings), that you can use just like unit groups (you pick every string in the group and do actions)..
Example I don't wanna use: Make a unit with Aloc and no model for every string (word I want to use for the string) with a name equal to the word and then create a unit group and use (Name of (Picked Unit)).
 

Dr Super Good

Spell Reviewer
Level 63
Joined
Jan 18, 2005
Messages
27,191
Doubly linked list with array backing. Will work up to 8192 strings spread across up to 8192 string groups. Hashtable backing will allow practically infinite but with degrading performance. Arrays can be chained with O(log2(n)) scaling for access or update performance to allow for larger if needed.
 
Status
Not open for further replies.
Top