Skip to content

Instantly share code, notes, and snippets.

@d4l3k
Created July 29, 2012 05:34
Show Gist options
  • Save d4l3k/3196250 to your computer and use it in GitHub Desktop.
Save d4l3k/3196250 to your computer and use it in GitHub Desktop.
Test2_hello( )
{
llOwnerSay( (string)"Hello Other File!" );
}
list Potato_football = [12];
Potato_say_something( )
{
llOwnerSay( (string)"ERMAHGERD PERTATERS!" );
llOwnerSay( (string)"PERFOOTBLLLZ " + (string)( llList2Integer(Potato_football, 0) ) + " " + (string)( Potato_flip( ) ) );
if(1){ state thisotherone; };
}
list Potato_flip( )
{
return (list)( "Foop" );
}
Potato_test( )
{
integer i;
for(i=0;i<16;i++)
{
llOwnerSay("Boop");
}
;
list b = [1, 5, 7, 0];
list c = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17];
}
default
{
state_entry( )
{
list potato = [5];
potato = [( (potato)+( 9 ) )];
c = ["silly little people " + (string)(potato)];
llOwnerSay( (string)"Hello world! There are some " + (string)(c) );
llOwnerSay( (string)"This is a number " + (string)( ( 5+( 5 ) )+( (potato) ) ) + " and then an embedded function: " + (string)llToUpper( (string)"dolfin" ) );
llOwnerSay( (string)(c) );
}
touch_start( integer num_detected )
{
list banana_lama = [( ( ( ( 1+( 2 ) )+( 3 ) )*( 6 ) )-( 36 ) )];
llOwnerSay( (string)"" + (string)(num_detected) + " people touched me! OMG! the first guy was " + (string)llDetectedName( (integer)(banana_lama) ) + ", what a weirdo!" );
}
touch_end( integer num_detected )
{
( Potato_test( ) );
( Potato_say_something( ) );
}
}
state thisotherone
{
state_entry( )
{
llOwnerSay( (string)"Boop" );
( Test2_hello( ) );
if( ( 5==( 5 ) ) )
{
llOwnerSay( (string)"If passes." );
llOwnerSay( (string)"another test." );
}
}
}
require("test2")
module Potato
Potato::football = 12
def say_something
puts "ERMAHGERD PERTATERS!"
puts "PERFOOTBLLLZ #{Potato::football} #{Potato::flip}"
state ThisOtherOne
end
def flip
return "Foop"
end
def test
extern_lsl '
integer i;
for(i=0;i<16;i++)
{
llOwnerSay("Boop");
}
'
b = [1,5,7,0]
c = [1..17]
end
end
class Default < State
def state_entry
potato = 5
potato += 9
c = "silly little people #{potato}"
puts "Hello world! There are some #{c}"
puts "This is a number #{5 + 5 + potato} and then an embedded function: #{llToUpper("dolfin")}"
puts c
end
def touch_start num_detected
banana_lama = (1 + 2 + 3 ) * 6 - 36
puts "#{num_detected} people touched me! OMG! the first guy was #{llDetectedName(banana_lama)}, what a weirdo!"
end
def touch_end num_detected
Potato::test
Potato::say_something
end
end
class ThisOtherOne < State
def state_entry
puts "Boop"
Test2::hello()
if 5==5
puts "If passes."
puts "another test."
end
end
end
module Test2
def hello
puts "Hello Other File!"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment