ID:272013
 
Currently I have this
Test() 
icon = 'T_Turf.dmi'
icon_state = "T1"
Entered()
Test2()


I want to make it compressed to reduce lines. Example
Test {icon = 'T-Turf.dmi';icon_state = "T1";Entered();Test2()}


Only problem is that it does not use Test2() proc correctly when in this form. Is there a way to have this compressed style, and still have full function of Proc's?
Neither of those will work.
> 
turf
Test
> icon = 'T_Turf.dmi'
> icon_state = "T1"
> Entered()
> Test2()
>

> turf
Test {icon = 'T-Turf.dmi';icon_state = "T1";Entered();Test2()}
>

Your right whoops lol,
Try This
turf
Test {icon = 'T-Turf.dmi';icon_state = "T1";Entered(){Test2()}}
In response to Ripiz
Thank you Ripiz it worked
A good trick is to write the brackets and semi-colons before encapsulating the code, like so:

turf/spike {
Entered(O) {
O << "Ouch!";
del(O);
}
}


Then you can just remove whitespace.
Out of curiosity, why're you doing this? For the 4k contest?
In response to Popisfizzy
Nope, Just don't like having everything so spread out, and like having compressed, because I am way to lazy to scroll up and down. :P
In response to Aoshi Shinomori x
That's a bad reason. Whitespace is a GOOD THING.
In response to Popisfizzy
such a worthless thing to contest over.