You wouldn't need an array to draw views, no matter their type, on screen on the fly. Just use the one line init(), you don't even need instances.
(send (View:new()):view(211)loop(1)cel(0)posn(160 30)setPri(1)ignoreActors()addToPic())
If only on screen was all I was trying to accomplish, especially since the only thing that would need to be done to that line is change the cel number and it would be the same as i.
The problem comes with creating the pnc interaction after that. i need a name to check if you clicked on it and all I have is the item number. I wonder though, I wonder if I set the inventory items said property to a string, such as item1... if I could inject that variable name into my init line.(if(send gEgo: has(i))...
well crap I don't even know how to call up a particular items info probably a send though, maybe something like (send iItem: but that just tells it the iItem class, maybe the instanes name, (send {gruel}:Said()) hmm, maybe. but that doesn't help me all I've got is a number.
I'll bet I could stick my instance names in a text resource. But how do I get the line out of the text resource... I wonder if this would work?
Format(@txtstring 500 1)// where 1 is actually i
(@txtstring:init()posn(newX newY))