I think this is what an array is, though I could be wrong.
Anyway. I'm trying to make a quest reward screen system, just something basic. But I've come to a snag. I want it to be like this:
def initialize(gold, exp, gp, [items])
Where [items] is something like... [(w, 1), (a, 54)]
So basically the items you get as a reward for that quest...
How would I do this?
Basically, w = weapon, a = armour, i = item, etc, since they are all classed as different things in the database.
Anyway. I'm trying to make a quest reward screen system, just something basic. But I've come to a snag. I want it to be like this:
def initialize(gold, exp, gp, [items])
Where [items] is something like... [(w, 1), (a, 54)]
So basically the items you get as a reward for that quest...
How would I do this?
Basically, w = weapon, a = armour, i = item, etc, since they are all classed as different things in the database.