- Joined
- Jul 17, 2011
- Messages
- 1,863
say i have 30 completely random items (random meaning they have different rawcodes e.g boots of speed, sobi mask, ring of regen...) and want to put them in an array, how do i do that so that each item will be unique to the array (no two items will repeat) speed can be compromised
currently to put the items in an array i am using:
cant figure out a way of checking whether the item has been already added
pls help
currently to put the items in an array i am using:
-
itemAlgorithm
-
Events
- Time - Elapsed game time is 2.00 seconds
- Conditions
-
Actions
-
For each (Integer A) from 1 to 30, do (Actions)
-
Loop - Actions
- Set ItemArray11[(Integer A)] = (Random level -1 Any Class item-type)
-
Loop - Actions
-
For each (Integer A) from 1 to 30, do (Actions)
-
Events
cant figure out a way of checking whether the item has been already added
pls help