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:
I want:
turf/T1
turf/T2
item
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:
mob
player
New()
..()
for(var/O in typesof(/obj/buildable/)-(/obj/buildable)) src.Buildables+=new O
var/tmp/list/Buildables=list()
var/canbuild=1
obj
buildable
var/owner="No one"
Click()
if(src in usr.Buildables)
if(usr.canbuild)
var/obj/buildable/O = new src.type(usr.loc)
O.owner=usr.key
// view(usr) << "[usr.name] builds an [O.name]."
else
if(src in view(usr))
usr << "[src.owner] built this."
verb
delete()
set src in oview(10)
set category = null
if(src.owner == usr.key || usr.ckey == "lyndonarmitage1")
del src
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!"
mob
Stat()
statpanel("Stats")
stat("ByondKey:", "[src.ckey]")
stat("Location:", "[usr.x],[usr.y],[usr.z]")
// statpanel("Inventory",contents)
// stat("","You'r Inventory is were all your picked up stuff goes")
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