Im trying to make card objects, and since they arent physical, I thought it'd be easier to make an object that holds the damage and condition it does and then i can just retrieve the object whenever it is needed. The only tutorials Ive seen on objects in Lua are the ones where it shows you how to make functions that give new objects, is there a way to just make an object that has everything defined already?

2 comments

0

i'm sorry, what exactly are you trying to do? as i've gathered, you're trying to create a system where, whenever the card is used, it grabs the damage and everything else of the card and makes use of that?

0

Pretty much, I want a system where I can just have all the cards already defined as to what they do, so that if someone plays a card, in script I don't have to recreate the card's abilities and stats over and over again whenever someone plays a new card