View Single Post
  #7  
Old 08-28-2008, 04:40 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
If I wanted to do it with an object, I would do:


PHP Code:
temp.obj = findNPC("foobarbaz");
obj.string_foobar = "lawl";  // Just to show a string example.
obj.string_lolwat = "baz";  // Just to show a string example.
for (temp.foo: getstringkeys("obj.string_")) {
  echo(
foo SPC "[" @ makevar("obj.string_" @ foo) @ "]");
} 
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote