ID:271916
 
 
mob/verb/redit(message as text|null)
set hidden = 1
set name="redit"
src.client.command_text="redit "
var/z
var/t
var/area
area = (1,9999)
if(zone)
if(file2zone(zone+"area.z")
z = zone
zone = (1,9999)
if(zone == (1,9999)
goto, ((area))


I am getting this error:
Missing Comma or Right Parenthesis on line 11
Missing Comma or Right Parenthesis on Line 14
Oblivion Communications wrote:
 
> mob/verb/redit(message as text|null)
> set hidden = 1
> set name="redit"
> src.client.command_text="redit "
> var/z
> var/t
> var/area
> area = (1,9999)
> if(zone)
> if(file2zone(zone+"area.z")
> z = zone
> zone = (1,9999)
> if(zone == (1,9999)
> goto, ((area))
>

I am getting this error:
Missing Comma or Right Parenthesis on line 11
Missing Comma or Right Parenthesis on Line 14

Read what the error says, you're missing a parenthesis.

Fixed code:
if(file2zone(zone+"area.z"))
if(zone == (1,9999))
In response to Calus CoRPS
mob/verb/redit(zone as area|null)
set hidden = 1
set name="redit"
src.client.command_text="redit "
var/z
var/t
var/area
area = (1,9999)
if(file2zone(zone+"area.z"))
z = zone
zone = (1,9999)
if(zone == (1,9999))
goto, ((area))



//Now for the definition of what to save the areas as.
var/area.z
area.z = (1,9999)

mob/verb/savea(save as area.z|null)
set hidden = 1
set name="savea"
src.client.command_text="savea"

var/save
proc
mb_save()
var/savefile/f =new("[AREA_DIR]/[area.z]")



Here is the error Im getting now. I do know the save area is wrong, but ill get to that. If you could do both that would be great. I honestly dont know what the error means.

Room Building.dm:16:error: ,: expected }
Room Building.dm:16:error: location of top-most unmatched {
Room Building.dm:16:error: ,: expected }
Room Building.dm:15:error: location of top-most unmatched {
Room Building.dm:16:error: ,: expected }
Room Building.dm:12:error: location of top-most unmatched {
You're getting errors because 1,9999 is not a valid number. I'm not quite sure what you're trying to do with those.

After you fix that, you're also going to get an error with your <code>goto, ((area))</code> line, which I also have no clue what you're trying to do with.
In response to Garthor
I am trying to make it so the REDIT command edits the room I am in.

I need the game to set it up so rooms and descriptions i set in game are saved into code with the Savea command or save area.

I need redit to edit description, exits, name, of the room.

Medit for mob

Oedit for objects.

All of these being saved to code.

Any ideas? The way MUD's do it is by using the VNumber system, which is what the 1,9999 is.
I don't mess around with MUDs at all, so I've got no clue what the hell the "it" that the VNumber system does. However, I'm going to guess it's a system for locating rooms, in which case you'll want to use the tag variable.

But, really, you just didn't describe what you're trying to do at all.
In response to Garthor
..Commas are never ever ever used in code. Except for text strings.

Plus half the parentheses you use are pointless. You don't need parentheses around normal numbers.
In response to Kaiochao2536
Commas are an option within for() loops, as well as a way of initializing multiple variables at once.
In response to Garthor
Oh yeah, forgot about arguments.