ID:169229
 
client
Northeast() r;Southeast() r;Northwest() r;Southwest() r

How could I put client on the same line without getting an error?

 Save()
var/savefile/s;s=new("Savefiles/[mob.ckey]");s["Pennys"] << mob.Pennys;s["Hits"] << mob.Hits
How can I put save() and the others on the same line without a error?
From what I know, deleteing the empty lines is the most you can do to compress code.
In response to CatLover
your actually wrong. removing tabs and making it 1 line actually saves bytes. So does using this
#define r return
that saves 5 bytes per use. I used this for:
#define i icon_state
That saves 9 bytes per use but must be used 3 times before its worth it.
Strawgate wrote:
client
> Northeast() r;Southeast() r;Northwest() r;Southwest() r

How could I put client on the same line without getting an error?

If you're doing that for the 4K, then you're already sunk. There's no reason you should be using those lengthy procs when you can simply override mob/Move() or atom/Move():

Move(a,b)R(b&b-1)?0:..()


>  Save()
> var/savefile/s;s=new("Savefiles/[mob.ckey]");s["Pennys"] << mob.Pennys;s["Hits"] << mob.Hits
How can I put save() and the others on the same line without a error?

Use braces.

Lummox JR
In response to Lummox JR
Im not entering the 4k challenge, its just for me to learn howto make code take less space.


Lummox JR wrote:
Strawgate wrote:
client
> > Northeast() r;Southeast() r;Northwest() r;Southwest() r

How could I put client on the same line without getting an error?

If you're doing that for the 4K, then you're already sunk. There's no reason you should be using those lengthy procs when you can simply override mob/Move() or atom/Move():

Move(a,b)R(b&b-1)?0:..()

How does that work?


> > Save()
> > var/savefile/s;s=new("Savefiles/[mob.ckey]");s["Pennys"] << mob.Pennys;s["Hits"] << mob.Hits
How can I put save() and the others on the same line without a error?
Use braces.

Lummox JR
THANK YOU!!
In response to Strawgate
client{Northeast(){r}}

Wash, rinse, repeat.