#OOP being stupid (or me)

22 messages · Page 1 of 1 (latest)

lone birch
#

nil = nil or newtable?

steady rivet
#

Lua oop and metatables confuse me

#

But its the easiest way I can think of a character system

steady rivet
#

Nvm found out what you meant

#

Is the issue with the indexes or the function

lone birch
#

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

steady rivet
#

Thats kind of my issue

lone birch
#

What are you trying to do?

steady rivet
#

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