The Dink Network

Re: New Forum Feature: Code Tag

July 4th 2009, 02:03 PM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
The Code tag is now operational. To use it, try this (without spaces in the tags):

[ code ]
void talk(void)
{
freeze(1);
freeze(&current_sprite);
say_stop("Boy, this code tag sure is spiffy!", 1);
wait(100);
say_stop("`9But does it have to be so garish?", &current_sprite);
wait(100);
say_stop("Well, making it look nicer would take more effort...", 1);
wait(100);
say_stop("`9Ah, I see.", &current_sprite);
unfreeze(&current_sprite);
unfreeze(1);
}
[ /code ]

And it shows up like this:

void talk(void)
{
    freeze(1);
    freeze(&current_sprite);
    say_stop("Boy, this code tag sure is spiffy!", 1);
    wait(100);
    say_stop("`9But does it have to be so garish?", &current_sprite);
    wait(100);
    say_stop("Well, making it look nicer would take more effort...", 1);
    wait(100);
    say_stop("`9Ah, I see.", &current_sprite);
    unfreeze(&current_sprite);
    unfreeze(1);
}
July 4th 2009, 02:06 PM
dragon.gif
Patrunjelu
Peasant He/Him Romania
Rawr! 
Why the huge spaces?
July 4th 2009, 02:16 PM
fairy.gif
GlennGlenn
Peasant He/Him Norway
GlennGlenn doesn't want a custom title. 
void main()
{
     say_stop("Good work Dan!", &GlennGlenn);
}


July 4th 2009, 02:21 PM
spike.gif
Awesome.

//slayer

void hit( void )
{
sp_target(¤t_sprite, &enemy_sprite);
//lock on to the guy who just hit us
//playsound
playsound(28, 22050,0,¤t_sprite, 0);

}

void die( void )
{
if (get_sprite_with_this_brain(9, ¤t_sprite) == 0)
 {
  //no more brain 9 monsters here, lets unlock the screen

  screenlock(0);
  playsound(43, 22050,0,0,0);

 }

  int &hold = sp_editor_num(¤t_sprite);
  if (&hold != 0)
  editor_type(&hold, 6); 

&save_x = sp_x(¤t_sprite, -1);
&save_y = sp_y(¤t_sprite, -1);
												external("emake","xlarge");

}

                                            	¤



EDIT: Hmm... Emoticons still work inside the tags, as does &curren on modify. external("emake","xlarge"); with a bunch of spaces in front of it also goes beyond the post field, it's below the lurker bar. ;/

EDIT2: There's supposed to be 4 empty rows between
 }
and
  int &hold = sp_editor_num(¤t_sprite);
). For some reason, there's only one.

EDIT3: That's on IE... On Firefox and Opera, all the problems still remain, but it displays the emoticon's path instead of the emoticon itself.
July 4th 2009, 02:22 PM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
void talk(void)
{
int &me = great_sprite();
say_stop("Looks great",&me);
wait(100);
say_stop("Except you can't copy scripts very well",&me);
wait(100);
say_stop("They're pasted with the line numbers...",&me);
//    
}


EDIT: inserting emoticons produces weird results... (Someone had to try...)
July 4th 2009, 03:13 PM
fish.gif
Simeon
Peasant He/Him Netherlands
Any fool can use a computer. Many do. 
Good work, but it currently looks huge...
July 4th 2009, 07:33 PM
pq_knight.gif
ExDeathEvn
Peasant He/Him New Zealand rumble
"Skinny Legend" 
void talk(void)
{
say_stop("Interesting... Why all this new stuff?", Ex-D);
say_stop("Very interesting though, very interesting.";
}
July 4th 2009, 10:22 PM
burntree.gif
Striker
Noble She/Her United States
Daniel, there are clowns. 
Wow... I remember thinking this would be a good idea back in 2001.
July 5th 2009, 08:22 AM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
... I love you, redink1 Good job.
July 5th 2009, 08:37 AM
custom_robj.png
Robj
Jester He/Him Australia
You feed the madness, and it feeds on you. 
This is awesome.
July 5th 2009, 09:02 AM
anon.gif
Skull
Ghost They/Them
 
[code]

void main( void )
{

}
July 5th 2009, 09:05 AM
anon.gif
Skull
Ghost They/Them
 
Oops. Okay, I'll try again.

void main(void)
     freeze(&skull)
     say_stop("`%Testing", &skull);
     unfreeze(&skull);
July 5th 2009, 09:26 AM
pq_cthunik.gif
GOKUSSJ6
Peasant He/Him Poland
Everyone should get a pizza for free in each week. 
void talk(void)
freeze(&king)
say_stop("`1MAH BOI! I wonder what's for dinner!", &king);
unfreeze(&king);
}


Man this stuff is great!
July 5th 2009, 01:58 PM
wizardb.gif
Kyle
Peasant He/Him Belgium
 
Great job!
July 5th 2009, 02:29 PM
boncag.gif
Godley
Peasant They/Them
 
void talk(void)
{
freeze(1);
freeze(&current_sprite);
say_stop("Boy, it works",1);
wait(666);
unfreeze(&current_sprite);
unfreeze(1);
}

July 6th 2009, 12:30 AM
wizardg.gif
Slayer4990
Peasant He/Him Canada
Foppery and Whim! 
void talk(void)
{
say("`%Gee, it sure is boring around here..", &current_sprite);
}
July 6th 2009, 07:50 PM
bonca.gif
Christiaan
Bard They/Them Netherlands
Lazy bum 
redink1 is one fire! Seeing the Dink Network so alive again makes me feel all fuzzy inside.