This is my first attempt at hashtables so bare with me here...
I've run into this problem where I have this sort of variable setup, (var1, var2 etc) and I feel like hashtables are the solution. The issue i'm having is that no values are ever saved to the hashtable.
I've run into this problem where I have this sort of variable setup, (var1, var2 etc) and I feel like hashtables are the solution. The issue i'm having is that no values are ever saved to the hashtable.
-
hash
-

Events
-


Map initialization
-
-

Conditions
-

Actions
-


-------- HASHTABLES --------
-


Hashtable - Create a hashtable
-


Set hashPrices = (Last created hashtable)
-
-
-
Set day = (day + 1)
-
For each (Integer loop) from 1 to Count, do (Actions)
-

Loop - Actions
-


-------- old --------
-


Set PriceDay7[loop] = PriceDay6[loop]
-


Set PriceDay6[loop] = PriceDay5[loop]
-


Set PriceDay5[loop] = PriceDay4[loop]
-


Set PriceDay4[loop] = PriceDay3[loop]
-


Set PriceDay3[loop] = PriceDay2[loop]
-


Set PriceDay2[loop] = PriceDay1[loop]
-


Set PriceDay1[loop] = PriceLast[loop]
-


Set PriceLast[loop] = Price[loop]
-


-------- hash --------
-


Hashtable - Save Price[loop] as day of loop in hashPrices
-


Game - Display to (All players) the text: (Load day of loop from hashPrices)
-
-
-
Game - Display to (All players) the text: (Load day of loop from hashPrices)
