| Author |
Message |
Topic: Array or String List? |
Caldur
Replies: 8
Views: 17459
|
Forum: zMUD General Discussion Posted: Wed Aug 23, 2006 2:05 am Subject: Array or String List? |
| Alright, it's done. #SHOW healthpot now yields bottle45230|bottle45291|bottle45119|bottle48256|bottle51606. So, I should be able to type "sip %item(@healthpot,@hpindex)". It doesn't allow me to do ... |
Topic: Array or String List? |
Caldur
Replies: 8
Views: 17459
|
Forum: zMUD General Discussion Posted: Wed Aug 23, 2006 1:45 am Subject: Array or String List? |
Ok. This is how I have defined my array:
#VARIABLE healthpot %array(bottle12345,bottle23456,bottle34567,bottle45678,bottle56789)
This is what I'm going to try. Correct me if I'm wrong.
1.) Del ... |
Topic: Array or String List? |
Caldur
Replies: 8
Views: 17459
|
Forum: zMUD General Discussion Posted: Tue Aug 22, 2006 11:22 pm Subject: Array or String List? |
| I work as a programmer, so I am very familiar with arrays and indexes. The logic behind them is not my problem, the zMUD syntax for referencing array elements is. An out of bounds index or null arra ... |
Topic: Array or String List? |
Caldur
Replies: 8
Views: 17459
|
Forum: zMUD General Discussion Posted: Tue Aug 22, 2006 2:51 am Subject: Array or String List? |
Ok, I tried "sip %ITEM(@healthpot,@hpindex)"
That didn't work. I tried assigning a variable to the return value of %ITEM(@healthpot,@hpindex) as such:
#VARIABLE myvar %ITEM(@healthpot,@hpindex)
St ... |
Topic: Array or String List? |
Caldur
Replies: 8
Views: 17459
|
Forum: zMUD General Discussion Posted: Tue Aug 22, 2006 2:27 am Subject: Array or String List? |
| I've read a lot about arrays and string lists - arrays in the zMUD help files, and string lists here on the forums. I set up a few arrays, but when I go to the variable list I see that my supposed "a ... |
| |