Good Night!
I create an NPC following this example from another topic
setarray array1[0],987,654,321;
setarray array2[0],123,456,789;
setarray array3[0],987,654,321;
set arraycount,3;
set .@a,1;
L_ArrayLoop:
for(set .@i,0; .@i<getarraysize( getd("array"+.@a+"") ); set .@i,.@i+1)
{set .@menu$, .@menu$ + (.@i?":":"");
if( getd("array"+.@a+"["+.@i+"]") ) // found
{set .@menu$, .@menu$ + getd("array"+.@a+"["+.@i+"]");}
}//end for(loop)
set .@a,.@a+1; if( .@a < arraycount ){goto L_ArrayLoop;}
// This will display after it's done with the array loop.
blah blah blah