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?
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.