• 🏆 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] Dynamic indexing question!

Status
Not open for further replies.
Level 11
Joined
Oct 11, 2012
Messages
711
I was reading Hanky's dynamic indexing tutorial in his example map and got quite confused by the following:


Another example with 3 indexes which expire in the order of 1,2 and 3:
=> Index 1 get recycled
1 [1] = 3 [3]
3 [3] = 1
=> Index 2 get recycled
2 [2] = 2 [2]
2 [2] = 2
=> Index 3 get recycled
3 [1] = 3 [1]
3 [1] = 3

First question: as for "1[1]", what does the first number "1" mean? Also, what does the second number "1" in the brackets mean?

Second question: shouldn't "3[1]" be "3[3]" ?

Third question: what does "recycle" mean in here?

I couldn't get the idea....:goblin_jawdrop:
 
Level 11
Joined
Oct 11, 2012
Messages
711
I don't really understand what he is referring to with his, but perhaps this may be of use:
http://www.hiveworkshop.com/forums/tutorial-submission-283/visualize-dynamic-indexing-241896/

edit: Afaik, the first number is what the value holds and the second number is the index.

So for example: 3 [3] is equivalent to index[3] (and the value is 3)
3 [1] is index[1] (and the value is 3)

Great! I love your tutorial about dynamic indexing! That's the one I am looking for, which is a comprehensive and detailed one. Thanks a lot!!! +Rep

Edit: Oh! I think you may be right, that makes sense.
 
Status
Not open for further replies.
Top