ID:161338
 
like how are u supposed to code Edit verb or like create verb???
.
.
.
.
.

Search resources. Saves you the trouble of typing it up.

or read it and retype it and remember it with your fingers..
In response to Gogeta126
um?? i still don know lolz
In response to Poopmister
mob
admin
verb
AdminEdit(var/O as obj|mob|turf in view(src))
set name = "Admin Edit"
set category = "GM"
var/variable = input("Which var?","Var") in O:vars + list("Cancel")
if(variable == "Cancel")
return
var/default
var/typeof = O:vars[variable]
if(variable == "rank" && src.rank == "Teacher") // take these 2 lines out if you want moderators to promote people)
usr << "teachers cannot promote people"
return
if(isnull(typeof))
default = "Text"
else if(isnum(typeof))
default = "Num"
dir = 1
else if(istext(typeof))
default = "Text"
else if(isloc(typeof))
default = "Reference"
else if(isicon(typeof))
typeof = "\icon[typeof]"
default = "Icon"
else if(istype(typeof,/atom) || istype(typeof,/datum))
default = "Type"
else if(istype(typeof,/list))
default = "List"
else if(istype(typeof,/client))
default = "Cancel"
else
default = "File"
var/class = input("What kind of variable?","Variable Type",default) in list("Text","Num","Type","Reference","Icon","File","Restore to default","List","Null","Cancel")
switch(class)
if("Cancel")
return
if("Restore to default")
O:vars[variable] = initial(O:vars[variable])
text2file("[time2text(world.realtime)]: [O] was restored to default by [usr]<BR>","GMlog.html")
if("Text")
O:vars[variable] = input("Enter new text:","Text",O:vars[variable]) as text
text2file("[time2text(world.realtime)]: [O] had one of his vars edited with text by [usr]<BR>","GMlog.html")
if("Num")
O:vars[variable] = input("Enter new number:","Num",O:vars[variable]) as num
text2file("[time2text(world.realtime)]: [O] had one of his vars edited with numbers by [usr]<BR>","GMlog.html")
if("Type")
O:vars[variable] = input("Enter type:","Type",O:vars[variable]) in typesof(/obj,/mob,/area,/turf)
if("Reference")
O:vars[variable] = input("Select reference:","Reference",O:vars[variable]) as mob|obj|turf|area in world
if("File")
O:vars[variable] = input("Pick file:","File",O:vars[variable]) as file
if("Icon")
O:vars[variable] = input("Pick icon:","Icon",O:vars[variable]) as icon
if("List")
input("This is what's in [variable]") in O:vars[variable] + list("Close")
if("Null")
if(alert("Are you sure you want to clear this variable?","Null","Yes","No") == "Yes")
O:vars[variable] = null


Its not the "perfectest" code as its from the age of dinosaurs but it works ;)
In response to Gogeta126
LoL thats alot damn i should get pppl to do this lol THnx anyway
In response to Poopmister
happy to help?



I <3 DEVELOPER FORUMS
In response to Gogeta126
LoL cool well ima go to classifides and look for a coder cause im too lazy to do the codes LOL and wait how u learn all this lol
In response to Poopmister
guides, demos sources, friends rips(that comes last)
In response to Gogeta126
LoL hopefully i find some one like u to code Lolz u seem to know alot....i don read guides cause i have ateention span of a squirrel soooo either i get a coder or a teacher lolz
In response to Poopmister
This thread is full of fail....
@poopmister: If you want to learn to code or get someone to code a game for you, you'll need a few things. For both, you need a lot of time, at least a couple of months where your giving the project a decent amount of attention. You'll also need a semi-decent attention span, for everything you ever do. If you want someone to make a game for you, and don't have an amazing idea you'll need cash, and a decent amount of it at that. Without cash or an idea you'll only get people who are still learning. I suggest quiting now.

@Gogeta: You shouldn't be feeding him uncommented code like that, and you shouldn't give anyone bad code, ever. You can easily tell he can't code well, if even at all, so he has a 0 chance of understanding that.
In response to Giantpanda
Ima also a noob, but this seems to work for me:

verb
Create()
set category = "Admin"
var/varItem
var/varType = input("What do you want to create?","Create") in list("Object","Mob","Turf","Cancel")
if(varType == "Cancel")
return
if(varType == "Object")
varItem = input("What do you want to make?","Create obj") in typesof(/obj) + list("Cancel")
if(varType == "Mob")
varItem = input("What do you want to make?","Create mob") in typesof(/mob) + list("Cancel")
if(varType == "Turf")
varItem = input("What do you want to make?","Create turf") in typesof(/turf) + list("Cancel")
if(varItem == "Cancel")
return
new varItem(locate(src.x,src.y,src.z))