Created
July 28, 2012 23:25
-
-
Save d4l3k/3195225 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
list Potato_football = [12]; | |
Potato_say_something( ) | |
{ | |
llOwnerSay( (string)"ERMAHGERD PERTATERS!" ); | |
llOwnerSay( (string)"PERFOOTBLLLZ " + (string)( llList2Integer(Potato_football, 0) ) ); | |
} | |
default | |
{ | |
state_entry( ) | |
{ | |
list potato = [5]; | |
potato = [( llList2Integer(potato, 0)+( 9 ) )]; | |
list c = ["silly little people " + (string)llList2Integer(potato, 0)]; | |
llOwnerSay( (string)"Hello world! There are some " + (string)(c) ); | |
llOwnerSay( (string)"This is a number " + (string)( ( 5+( 5 ) )+( llList2Integer(potato, 0) ) ) + " and then an embedded function: " + (string)llToUpper( (string)"dolfin" ) ); | |
llOwnerSay( (string)(c) ); | |
} | |
touch_start( integer num_detected ) | |
{ | |
list banana_lama = [( ( ( 1+( 2 ) )+( 3 ) )-( 6 ) )]; | |
llOwnerSay( (string)"" + (string)(num_detected) + " people touched me! OMG! the first guy was " + (string)llDetectedName( (integer)llList2Integer(banana_lama, 0) ) + ", what a weirdo!" ); | |
} | |
touch_end( integer num_detected ) | |
{ | |
( Potato_say_something( ) ); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Potato | |
Potato::football = 12 | |
def say_something | |
puts "ERMAHGERD PERTATERS!" | |
puts "PERFOOTBLLLZ #{Potato::football}" | |
end | |
end | |
class Default < State | |
def initialize | |
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 | |
puts "#{num_detected} people touched me! OMG! the first guy was #{llDetectedName(banana_lama)}, what a weirdo!" | |
end | |
def touch_end num_detected | |
Potato::say_something | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment