ID:264296
 
Ok, before anyone says anything I know i need to make my coding 'less jumbled' and get better at coding.

Code:
    Santa_Delibird
icon='Quest Pokemon.dmi'
icon_state="Santa Delibird"
name="Santa Delibird"
density=1
verb
Talk()
set src in oview(1)
switch(input("Hello and Merry Christmas!","Santa Delibird.") in list("\
Make Present."
,"Cancel"))
if("Make Present.")
switch(input("Ok, now for the color.","Present Color") in list \
("Red","Blue","Green"))
if("Red")
new/obj/Present/Red_Present(usr)
var/To=input("Ok, Who is the gift to? This can be a nickname, real \
name, name they go by, or anything.\
"
,"Santa Delibird") as text
src.To_Key="[To]"

var/From=input("Ok, now put who the present is from, this can be: \
a nickname, real name, name you go by, key, or anything!"
) as text
src.From_Key="[From]"

var/Message=input("Ok, last step, put a message to the person on the \
present"
) as text
src.Present_Message="[Message]"

usr<<"Santa Delibird: Ok, now in your inventory you will find a \
Plain Present, use the Shape Present verb to create your gift."

if("Blue")
new/obj/Present/Blue_Present(usr)
var/To=input("Ok, Who is the gift to? This can be a nickname, real \
name, name they go by, or anything.\
"
,"Santa Delibird") as text
src.To_Key="[To]"

var/From=input("Ok, now put who the present is from, this can be: \
a nickname, real name, name you go by, key, or anything!"
) as text
src.From_Key="[From]"

var/Message=input("Ok, last step, put a message to the person on the \
present"
) as text
src.Present_Message="[Message]"

usr<<"Santa Delibird: Ok, now in your inventory you will find a \
Plain Present, use the Shape Present verb to create your gift."

if("Green")
new/obj/Present/Green_Present(usr)
var/To=input("Ok, Who is the gift to? This can be a nickname, real \
name, name they go by, or anything.\
"
,"Santa Delibird") as text
src.To_Key="[To]"

var/From=input("Ok, now put who the present is from, this can be: \
a nickname, real name, name you go by, key, or anything!"
) as text
src.From_Key="[From]"

var/Message=input("Ok, last step, put a message to the person on the \
present"
) as text
src.Present_Message="[Message]"


obj
Present
Red_Present
icon='Stuff.dmi'
icon_state="Red Present"
verb
Get()
set src in oview(1)
src.Move(usr)
Drop()
src.loc=locate(usr.x,usr.y,usr.z)
To()
usr<<"Red Present To: [src.To_Key]"
From()
usr<<"Red Present From: [src.From_Key]"
Read_Message()
usr<<"Red Present Message: [src.Present_Message]"
Blue_Present
icon='Stuff.dmi'
icon_state="Blue Present"
verb
Get()
set src in oview(1)
src.Move(usr)
Drop()
src.loc=locate(usr.x,usr.y,usr.z)
To()
usr<<"Blue Present To: [src.To_Key]"
From()
usr<<"Blue Present From: [src.From_Key]"
Read_Message()
usr<<"Blue Present Message: [src.Present_Message]"
Green_Present
icon='Stuff.dmi'
icon_state="Green Present"
verb
Get()
set src in oview(1)
src.Move(usr)
Drop()
src.loc=locate(usr.x,usr.y,usr.z)
To()
usr<<"Green Present To: [src.To_Key]"
From()
usr<<"Green Present From: [src.From_Key]"
Read_Message()
usr<<"Green Present Message: [src.Present_Message]"


Problem description:

When I run the game and get something from Delibird it all works fine, then i try to read the "Message" who its "From" and who its "To" but it all just shows up blank, any suggestions?
If you're posting a code snippet, in general it's a good idea to include every definition used in the snippet.
That way someone trying to help does not have to assume anything.
Assumptions are something to avoid when it comes down to programming.

What's Santa_Delibird's type path?
Where and how did you declare To_Key, From_Key and Present_Message?

*doesn't say anything about "'less jumbled' coding and geting better at coding" on request*
*smiles*

May I point out inheritance though?
Could save you a bunch of typing/copy pasting.
In response to Schnitzelnagler
o.o..???
obj/var
From_Key
To_Key
Present_Message

mob/Other
Santa_Delibird
icon='Quest Pokemon.dmi'
icon_state="Santa Delibird"
name="Santa Delibird"
density=1
verb
Talk()
set src in oview(1)
switch(input("Hello and Merry Christmas!","Santa Delibird.") in list("\
Make Present."
,"Cancel"))
if("Make Present.")
switch(input("Ok, now for the color.","Present Color") in list \
("Red","Blue","Green"))
if("Red")
new/obj/Present/Red_Present(usr)
var/To=input("Ok, Who is the gift to? This can be a nickname, real \
name, name they go by, or anything.\
"
,"Santa Delibird") as text
src.To_Key="[To]"

var/From=input("Ok, now put who the present is from, this can be: \
a nickname, real name, name you go by, key, or anything!"
) as text
src.From_Key="[From]"

var/Message=input("Ok, last step, put a message to the person on the \
present"
) as text
src.Present_Message="[Message]"

usr<<"Santa Delibird: Ok, now in your inventory you will find a \
Plain Present, use the Shape Present verb to create your gift."

if("Blue")
new/obj/Present/Blue_Present(usr)
var/To=input("Ok, Who is the gift to? This can be a nickname, real \
name, name they go by, or anything.\
"
,"Santa Delibird") as text
src.To_Key="[To]"

var/From=input("Ok, now put who the present is from, this can be: \
a nickname, real name, name you go by, key, or anything!"
) as text
src.From_Key="[From]"

var/Message=input("Ok, last step, put a message to the person on the \
present"
) as text
src.Present_Message="[Message]"

usr<<"Santa Delibird: Ok, now in your inventory you will find a \
Plain Present, use the Shape Present verb to create your gift."

if("Green")
new/obj/Present/Green_Present(usr)
var/To=input("Ok, Who is the gift to? This can be a nickname, real \
name, name they go by, or anything.\
"
,"Santa Delibird") as text
src.To_Key="[To]"

var/From=input("Ok, now put who the present is from, this can be: \
a nickname, real name, name you go by, key, or anything!"
) as text
src.From_Key="[From]"

var/Message=input("Ok, last step, put a message to the person on the \
present"
) as text
src.Present_Message="[Message]"


obj
Present
Red_Present
icon='Stuff.dmi'
icon_state="Red Present"
verb
Get()
set src in oview(1)
src.Move(usr)
Drop()
src.loc=locate(usr.x,usr.y,usr.z)
To()
usr<<"Red Present To: [src.To_Key]"
From()
usr<<"Red Present From: [src.From_Key]"
Read_Message()
usr<<"Red Present Message: [src.Present_Message]"
Blue_Present
icon='Stuff.dmi'
icon_state="Blue Present"
verb
Get()
set src in oview(1)
src.Move(usr)
Drop()
src.loc=locate(usr.x,usr.y,usr.z)
To()
usr<<"Blue Present To: [src.To_Key]"
From()
usr<<"Blue Present From: [src.From_Key]"
Read_Message()
usr<<"Blue Present Message: [src.Present_Message]"
Green_Present
icon='Stuff.dmi'
icon_state="Green Present"
verb
Get()
set src in oview(1)
src.Move(usr)
Drop()
src.loc=locate(usr.x,usr.y,usr.z)
To()
usr<<"Green Present To: [src.To_Key]"
From()
usr<<"Green Present From: [src.From_Key]"
Read_Message()
usr<<"Green Present Message: [src.Present_Message]"
In response to Reno Kujika
Reno Kujika wrote:
When I run the game and get something from Delibird it all works fine, then i try to read the "Message" who its "From" and who its "To" but it all just shows up blank

Since you claimed this code would work, but I could not figure how this should even compile, I ran a test myself (starting to doubt my logic).

I used your exact snippet (with a bare bone interface) and got:
RenoKujikaTest.dm:36:error:src.To_Key:undefined var
RenoKujikaTest.dm:40:error:src.From_Key:undefined var
RenoKujikaTest.dm:44:error:src.Present_Message:undefined var
RenoKujikaTest.dm:53:error:src.To_Key:undefined var
RenoKujikaTest.dm:57:error:src.From_Key:undefined var
RenoKujikaTest.dm:61:error:src.Present_Message:undefined var
RenoKujikaTest.dm:70:error:src.To_Key:undefined var
RenoKujikaTest.dm:74:error:src.From_Key:undefined var
RenoKujikaTest.dm:78:error:src.Present_Message:undefined var


Which makes sense as src should be the instance of mob/Other/Santa_Delibird in this case and not the instanced present.

That should give you a hint why your code does not work as well.