ID:160216
 
I found out how to do it myself.
What do you mean? That was a rather vague explanation of what you want.
In response to Andre-g1
How would I assign something like '/obj/items/coin' to a var?

Edit: How would I assign it to a var and have it work with new()?
In response to Armiris
You can :

a)

mob/verb/CreateType()
var/obj/items/coin/A = new() // var A is assigned to coin


or b) (which I think is what you want)

var/type_create = /obj/items/coin // assign type_create to the coin

mob/verb/Createtype()
type_create = new() // create the coin
In response to Andre-g1
The OP already solved his problem, but note new() needs a Type argument before the parentheses, and the shortcut to omit it uses the defined type of the var to get the type as a shorthand, not the runtime value of the var (so your first example works, but the 2nd one needs to be more like var/obj = new type_create()).