Poll

Which code causes a TorqueScript game to crash if echoed?

echo(%option);
13 (68.4%)
echo($option);
6 (31.6%)

Total Members Voted: 18

Author Topic: Script Creativity Thread  (Read 3666 times)



History
The Script Creativity Thread idea came from the 3D Model Topic,so I though of a topic for Creative Scripts,thus,the Script Creativity Thread was born.

Best Scripts
1st. Extrude's Space Explorer
2nd. Scar75's The best game ever.
3rd. brîckbðt's Javascript/HTML code


Don't know TorqueScript/Other?
Check this:
Torque Script Reference
Other
(No Lua tutorial link yet,but Lua is allowed)
« Last Edit: September 04, 2011, 12:08:05 PM by bricky »

love.graphics.draw(picture, 0, 0)

Code: [Select]
// Hello1.cs
public class Hello1
{
   public static void Main()
   {
      System.Console.WriteLine("Hello, World!");
   }
}

Code: [Select]
//Echospam.cs

function echospam
{
   $pref::echospam = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
   echoRepeat($pref::echospam, 5);
}




Oh. if it's torque it doesn't belong here.

Oh. if it's torque it doesn't belong here.

Its more then Torque.
« Last Edit: September 02, 2011, 06:31:32 PM by bricky »

Code: [Select]
echo("\c5topic bump");

In that case...

for i=1,180 do
x = math.floor(sin(i*10)*20)
str = "@"
str = string.rep(" ",x) .. str
print(str)
end

This makes a pretty line in the command prompt :3 (Lua)

http://www.kongregate.com/games/Scars75/the-most-epic-game-ever

Code: (Batch) [Select]
@echo off
echo YO DAWG
echo I HERD U LIEK COLORS
echo SO I PUT A COLOR IN YO COLOR
echo SO YOU CAN LOOK AT COLORS WHILE YOU LOOK AT COLORS
:a
color 4f
color 5a
color 2b
color 8e
color 9d
color 6c
color 1b
goto :a

Code: [Select]
<html>
<head>
<title>
Script
</title>
</head>

<script type="text/javascript">

var x=0;

function rotate(num){
fs=document.ff.slide;
x=num%fs.length;
if(x<0) x=fs.length-1;
document.images.show.src=fs.options[x].value;
fs.selectedIndex=x;}

function auto() {
if(document.ff.fa.value == "Stop"){
rotate(++x);setTimeout("auto()", 5000);}}
</script>

<form name="ff">
<table cellpadding="3" style="border:1px black solid;border-collapse:collapse;">
<tr><th align="center">script</th></tr>

<tr><td align="center">
<img src="http://www.nikhilk.net/Content/Images/ScriptSharp1.png" name="show">
</td></tr>

<tr><td align="center" style="border:1px black solid;">
<select name="slide" onChange="rotate(this.selectedIndex);">
<option value="http://www.nikhilk.net/Content/Images/ScriptSharp1.png">1</option>
<option value="http://www.mindstarprods.com/images/ScriptEditor.jpg">2</option>
<option value="http://dev.mysql.com/doc/query-browser/en/images/script-editor.png">3</option>
</select>
</td></tr>

<tr><td align="center" style="border:1px black solid;">
<input type="button" onclick="rotate(0);" value="ll&lt;&lt;" title="Jump to beginning" />
<input type="button" onclick="rotate(x-1);" value="&lt;&lt;" title="Last Picture" />
<input type="button" name="fa" onClick="this.value=((this.value=='Stop')?'Start':'Stop');auto();" value="Start" title="Autoplay" style="width:75px;" />
<input type="button" onclick="rotate(x+1);" value="&gt;&gt;" title="Next Picture" />
<input type="button" onclick="rotate(this.form.slide.length-1);" value="&gt;&gt;ll" title="Jump to end" />
</td></tr></table></form>
</html>
« Last Edit: September 04, 2011, 12:11:00 PM by brîckbðt »

Code: [Select]
<html>
<head>
Lolololololol
</head>
<body>
<a href=http://google.com>Lolololololololololololol</a>
<hr/>
<i>lol?</i>
</html>

Code: [Select]
title Infiniteloop
:derp
echo derp
goto derp