ID:155222
 
I'm trying to make a grid clickable. Let's say I wanted to click the word "Window" in a grid and have it do this:

mob/verb/ClickWindow()//cuz I don't really know a good example
winshow(src,"Window", 1)


I've looked through resources and other forum posts by searching the words "Click Grid" and came up empty-handed. All I need is a basic, barebones example and I can go from there.

Thanks in advance.
You'll have to make obj with "Window" as name and empty icon.
In response to Zaoshi
Thanks a ton!
If you don't want to make objects and just want text. This is how I make clickable links that call a specific command.

client
proc
updateGrid() //just an example
winset(src, "PlayerList", "current-cell=1,1")
var/link = "<a href=\"?src=\ref[src];id=playerlist;player=[c.key];cmd=selectPlayer\">[c.name]</a>"
src << output("[link]", "PlayerList")

select(var/playerName)
//code to select player

Topic(href,href_list[],hsrc)
if(href_list["id"] == "playerlist")
switch(href_list["cmd"])
if("selectPlayer")
src.select(href_list["player"])
return ..()