I am trying to make a computer type of thing that has a simple button called 'profile' on it. I made a variable called profiled (It is a mob type), and I came as far as that..
But now my problem is how would I go about assigning the variable with the button so the code knows what to select? Currently it sticks to null..
My code for the button:
Also included is my attempt at turning the profiled part into the mob that was selected (profiled=[M]), but it did not work.
And in Topic:
// profiled = locate(href_list["Profile"])
if(!profiled) return to_chat(usr, "Unknown system error occurred, could not retrieve profile.")
screen = 2
I have been trying for some time with little understanding as to how this works, could someone help me get through this?