array goes from 0 to 8192....
but i think you can put any number inside the array, for example:
integer array item['I012'] =
this is not possible right
so is there a way to use the itemID ascii code as a array value of an integer array...?
i cannot use hashtable, so with normal array is there a way to do this...
use the item id value to retrieve an integer or a boolean, or a string?
i need to attach to every item type in the most simple way a value wich determine if a hero can pick or not the item.
the check need to be used from a id and give 4 hero type the value true (carriable) false (un carriable)
i though of using something like item[id]=1121
1 mean uncarriable, 2 mean carriable (each digit = a hero type)
or use a string item[id] = nnyn the proble is that id might be too big to be accepted as a value.
any ideas?
but i think you can put any number inside the array, for example:
integer array item['I012'] =
this is not possible right
so is there a way to use the itemID ascii code as a array value of an integer array...?
i cannot use hashtable, so with normal array is there a way to do this...
use the item id value to retrieve an integer or a boolean, or a string?
i need to attach to every item type in the most simple way a value wich determine if a hero can pick or not the item.
the check need to be used from a id and give 4 hero type the value true (carriable) false (un carriable)
i though of using something like item[id]=1121
1 mean uncarriable, 2 mean carriable (each digit = a hero type)
or use a string item[id] = nnyn the proble is that id might be too big to be accepted as a value.
any ideas?