mob/player/var/last_clicked
obj
skillcards
Click()
var/mob/player/p=usr
p.last_clicked=src
usr << "you clicked skillcard"
switch(input("Select a key to set this macro to", "Macro", text) in list ("1","2","Nevermind"))
if("1")
// macroinput = 1
winset(usr,"macro1","parent=macro;name=1;command=[p]")
if("2")
// macroinput = 2
winset(usr,"macro1","parent=macro;name=2;command=[p]")
Bed
icon = 'bed.dmi'
icon_state = "emptybed"
Click()
src = "Test1"
usr << "you clicked Bed"
verb
Test1()
usr << "Test"
What I want this to do: When I click on an object under skillcards it prompts me to macro it, then that object that I clicked on has a vvariable that is set for the command.
What it does: Nothing...
input(Usr=usr,Message,Title,Default) as Type in List
You have
input("Select a key to set this macro to", "Macro", text) in list ("1","2","Nevermind")
it appears you are missing usr: input(usr, "Select...
Also, I believe parameters need to be in quotes, like [Edit: I just looked in the skin reference and it shows an example without quotes, os I may be mistaken on this one. It's worth a try though :)]
winset(usr,"macro1","parent=macro;name=1;command=[p]")
would be
winset(usr,"macro1","parent=\"macro\";name=\"1\";command=\"[ p]\"") // \" means it will be written " in the message
lastly, to see if it's working properly, why not replace all instances of usr with p? Just to make sure that P is really the usr and keep it consistent.
usr << "you clicked skillcard" -> p << "you clicked skillcard"
Also, as a note, the people that helped you in the design philosophy forum are the same as those that would help you here.