var
button.namek1b
Click()
mob/player/var/last_clicked = "src"
-----------------------------------------------------------------------------
mob
proc
Click()
switch(new_icon)
if (namek1b)
set usr.icon = 'Namek1.dmi'
if (namek2b)
I'm terribly new at this, and reading the wall of text that is the skin reference DM reference, and the DM guide is.. just.. wow.
Problem description:
I've created a icon selection menu using a window with buttons that have images of icons that a player may select. These buttons however do not hold the .dmi that is required for the mob icon to have all the animations. I've attempted to store the button in a variable with Click(), so that I can define which button gives what icon, but to no avail. I also need to delete or hide the window afterwards. I know how to hide it, but with only one command to be called, I'm having difficulty doing both at the same time.
I've not read anywhere thus far that tells you what button ID is defined as in the code so that I can reference it.Does it automatically save the ID as a variable at root or is it buried in a tree?
I also can't seem to find a way to reference a players last click to either use it as a variable or to call another proc. I think I'm on the right track, but I'm at head-bashing point.
So, if you could overlook my new-guyishness (as demonstrated with the above code), please assist me with this.
Calling it a wall of text does you a disservice. Read the guide. It's the only way to learn. If you don't put the effort into reading and get the basic syntax of DM right, there's not a lot we can do to help you.