#OOP being stupid (or me)
22 messages · Page 1 of 1 (latest)
Wym, t = t or {}?
Lua oop and metatables confuse me
But its the easiest way I can think of a character system
Sorry just came back from work.
I would not call the table inside the function. Just declare it above the function and fill it in from there
@steady rivet
Well wouldnt that make it overwrite things?
Thats kind of my issue
What are you trying to do?
Let me get on my computer rq so I can type faster
Basically, I am trying to have a system in place to store info about characters for easy access
I could have just had the characters be dictionaries, but that's basically just oop so I thought why not
I can create an object, but it seems to be overwriting every object when I make one
at lest that's what I think the issue is
it would appear everything is changing the local character = {stuff} at the beginning
I'm going to reformat my character object ill tell you how it goes
I was probably mixing my knowledge of python oop in
worked
swag