Question is there a way to set a number to a type.
Ex: list(/skill/punch = 20)??
ID:159894
![]() Dec 26 2008, 11:19 pm
|
|
![]() Dec 27 2008, 3:22 am
|
|
With associative lists, yes.
|
Well, I tried it and it doesn't work....I used skills[/skill/punch] to try and get the number I set it doesn't work.
|
Perhaps you should describe what you're actually trying to do. Yes, an associative list would work, but maybe it can simply be a variable on the object prototype? etc.
Andre-g1 wrote: Make it a string. That's not the problem, associative lists keys can be of all/most value types except numbers, so they can be type paths. Therefore he must be doing something wrong; too bad we're not telepathic and can't read minds, so we can't mystically detect the problem in his code. >_> |
Kaioken wrote:
too bad we're not telepathic and can't read minds, so we can't mystically detect the problem in his code. >_> That'd be great. I'd love to have a telepathy ability <_< Jokes aside, he should indeed show us more of what he's trying to do. |