I need to declare a variable using a name that is sent through a function as a parameter/argument
function CreateDroptable(npcName) {
Droptable.npcName = new Droptable();
}
what I want this to do is if typed "CreateDroptable(goblin)" it would create the variable "Droptable.goblin" but instead it declares it like "Droptable.npcName"
Is there anyway to fix it?