I have been atempting to make a vesatile map maker for games.
Basically at the moment it functions like a building game on swap maps. Although the system i use at the moment is quite simple: (Click the Object you want to build in the mapping panel and it is built underneath you.) I wish to make it easier by using swapmaps
BuildFilledRectangle(turf/T1, turf/T2, item)
In short what I want it to do is as followed:
to be defined by the player clicking on a locations on screen, I then want
to be were the player releases their mouse.
shall be whatever object was clicked on in the player's Mapping objects panel.
I know this is possible as it is coded into a map maker for another BYOND game.
Prehaps one o the experts could help me out or even, Lummmoz Jr.
Relevent Code blocks that will probably need to be modifed for me to acheive this may be:
for(var/O in typesof(/obj/buildable/)-(/obj/buildable)) src.Buildables+=new O
if(src in usr.Buildables)
var/obj/buildable/O = new src.type(usr.loc)
if(src in view(usr))
usr << "[src.owner] built this."
set src in oview(10)
set category = null
if(src.owner == usr.key || usr.ckey == "lyndonarmitage1")
if(usr.ckey == "lyndonarmitage1")
owner<<"An admin has deleted one of your tiles."
else if (src.owner != usr.key && usr.ckey != "lyndonarmitage1")
usr<<"Can't delete that!"
if(src.canbuild && src.z !=1 ) statpanel("Mapping Objects", src.Buildables)
That is almost all the code except for the objects themse;ves, icons and swapmap verbs.
Thanks in advance, Lyndon