Resource instance creator function not working, help please?

Created character data resource, for some reason my function prints blank and empty array, to note, i have left this issue pending for a while in favor of “art edits”, any help is appreciated,
and so far there arent any errors related to this function. . .



extends Node

 Script for main game functions.
const tilesize = 8

 var Party : Array[PCC] = 

var PlayerCharacter := load(“res://Scripts/character_class.gd”)

func add_character(namae : String, hp : int, mp : int, luck : int, strength : int, sex: String, skin_color : int, hair_pigment : int, hair_style : int):
var New = PlayerCharacter.new()
New.Name = namae
New.HP = New.MaxHP
New.MP = New.MaxMP
New.MaxHP = hp
New.MaxMP = mp
New.Luck = luck
New.Strength = strength
New.Items = 
 
 at first–All items are an entree.
New.NesuPower = 

 at first, Nesu is also empty.
if sex == “male”:
New.Sex = 0
elif sex == “female”:
New.Sex = 1

New.SkinTone = skin_color
New.HairShade = hair_pigment
New.HairStyle = hair_style
print(Party)


class_name PCC
extends Resource
#Base class for all Player-Controlled Characters

 var Name : String

 var HP : int

 var MP : int

 var MaxHP : int

 var MaxMP : int

 var Luck : int

 var Strength : int

 var Items : Array

 var NesuPower : Array

 var Sex : int

 var SkinTone : int

 var HairShade : int

 var HairStyle : int

 var equipped_hat : Dictionary

 var equipped_armor : Dictionary

 var equipped_accessory : Dictionary

 var equipped_weapon : Dictionary


Some formatting errors in your post; maybe tried to add a code block after posting?

You don’t seem to append/push_back anything to your array Party so it makes sense it would print out empty (or [])

Gah!! Thank you very much,
dang i feel stupid,
solution: Party.append(New)