• 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.

[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