mob
proc
ObjList()
var/objs = 0
for(var/obj/P as null|anything in typesof(/obj))
winset(src, "Objects.objlist", "current-cell=[++objs]")
src << output("<center><a href=?src=\ref[P];cmd=action><Font color=black>[P]</a>", "Objects.objlist")
src << output("[objs] Found", "Objects.objsfound")
winset(src, "Objects.objlist", "cells=[objs]")
Topic(href,href_list[])
if(href_list["cmd"])
switch(href_list["cmd"])
if("action")
if(src == /obj/SingleFence)
var/T = input("How Many Do u Want To Create?") as null|num
if(T == 1)
var/obj/F = new src(usr.loc)
view() << " <font color = white>With A Few Waves Of The Hands [usr] Create's a [F:name] "
return
else
var/obj/F = new src(usr.loc)
F.amount = T
view() << " <font color = white>With A Few Waves Of The Hands [usr] Create's [T] [F:name]'s "
return
else
var/obj/F = new src(usr.loc)
view() << " <font color = white>With A Few Waves Of The Hands [usr] Create's a [F:name] "
return
im trying to make a window to show all Objects coded in game in a skin window and when you click an object it creates it, all Objects show in windows but when I click an object to create it I get the error: runtime error: Cannot execute null.Topic, any help would be great thanks().
What you want is something like:
Then inside of client/Topic(), you'd do something along the lines of: