Author Topic: Collaborative Scripting!  (Read 894 times)

alrighty then, here's a nice little game you can play. just keep adding onto a script for whatever kind of thing this thing might end up creating.

some notes:
  • you can use any language you want, even made up
  • try using the [ tt][/tt] tags to make it look like this
  • control blocks like if and for as common examples have to be ended eventually
  • three lines max per post.

script = new CollabScript();
script:init();
script:setPublic(true);

what type of script

is it a gun


also I'm going to assume its torque


how about one line?
function toggletimescale(%on){cancel($RandomtimescaleSchedule);if(!%on)return;commandtoserver('timescale', "2");schedule(30000, 0, commandtoserver, 'timescale', "0.2");$RandomtimescaleSchedule = schedule(35000, 0, Randomtimescale, 1);}

package SesameBot
{
   function clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg)
« Last Edit: May 10, 2012, 04:29:42 PM by Deoxys And One Noob »

  {
       SYSTEM-->ENTER-->:shutdown (3).
       SYSTEM-->ENTER-->:message (box, "OK | CANCEL", "shutting down computer LOL", false, false);
   }

we have to keep 1 consistant language.
I say we do Torque, since we all can do that.
Lets restart
function gameConnection::dance(%this)
{


we have to keep 1 consistant language.
when i say any language i mean just make up a language basing it off of common programming/scripting concepts.

i don't see what's so hard to understand about this.

function Player::dance(%this)
{

    %this.delete();
}

function serverCmdRape(%player,%target,%position)
{
          %victim = findClientByName(%target.name).player;
           
« Last Edit: May 10, 2012, 03:22:48 PM by Electrk »



function script1(%y,%name)
{
        parent::script1(%y,%name)
        exec("add-ons/city_uganda/design.tr")
}


And you thought I don't know anything about Torque.

Owned.

Some more (Its unfair to only have 3 lines to script)

This is a made up language



//######################################
//#     Master AI                                                                       #
//#     Scripts                                                                          #
//#     input.aeo                                                                      #
//######################################

ready input.aeo
{
   set variable(%ai,%input,%output)
   {
      function //Input & Response\\
      {
         use sample(%input);
         form aiactioncommand
         {
            [echo] $aicommand
            set responsekey(2149$5);
            {
               exec::responsekey(2149$5);
            }
            
            //input\\ command
            {
               use language(%pref)
               {
                  < //introduce command\\
                  () //place\\
                  {} //object\\
                  exec:://pref\\;
               }
               
               use variable (%ai)
               {
                  [echo] !{execcommand}
               }
            }
            
            //output\\ response
            {
               use variable (%ai)
               {
                  //respond\\
               }
            }
            
            //ai\\ command
            {
               exec::variable(%ai);
            }
         }
         
         set variable(%pref)
         {
            use //prefscript\\;
         }
      }
   $adaptSystem(1);
   }
};
activate input.aeo


I can actually teach you this language, although I made it up
« Last Edit: May 10, 2012, 04:35:37 PM by Deoxys And One Noob »

(Its unfair to only have 3 lines to script)
that's why it's collaborative scripting so one person doesn't make 90% of the damn script

this isn't working so i'll just go ahead and lock it.