ID:175151
 
The problem im haveing is that I want the usr to be able to name the obj being added to the inventory.

Write_a_movie_script()
var/obj/production/P = new/obj/production (usr)
usr.ws += P.value

I know I could use (name as text) but I dont know where or how I would incorporate this nor how I could specify to name just the item being added to the inventory

please help
Treasurecat wrote:
The problem im haveing is that I want the usr to be able to name the obj being added to the inventory.

Write_a_movie_script()
var/obj/production/P = new/obj/production (usr)
usr.ws += P.value

I know I could use (name as text) but I dont know where or how I would incorporate this nor how I could specify to name just the item being added to the inventory

please help

Just use P.name = input("What will the name be?","Name Production", P.name) as text
Look up input in the reference.