Skip to content

Instantly share code, notes, and snippets.

View sampathgoud42's full-sized avatar

Sampath sampathgoud42

View GitHub Profile

Toribash Scripting Tutorial

Programming Basics Part Two

In this tutorial I am going to be going to present another simple script, and then go through step by step how it works, breaking it down and explaining it.

This time I will be explaining about Conditional Statements, Loops, Array Types and Comments.

-- Run this script in multiplayer!
people = get_bouts()

for i = 1,#people do

@blam23
blam23 / Toribash-Tutorial-Introduction.md
Last active December 19, 2015 23:08
The first in my Toribash Script tutorials.

Toribash Scripting Tutorial

What is this tutorial about?

This tutorial is about using and creating 'scripts' in Toribash. In this first tutorial I will be covering what scripts are, how to use them, how they are made and what tools you will need to make them.

There is a very simple exercise at the end of the tutorial that will test what you have learned.

The proceeding tutorials will then go into detail about how to make scripts, including going over the basics of programming.

These tutorials are created for people with no experience in programming, but are also recommended for people who know programming but are not sure in how to create scripts specifically for Toribash

@rcorreia
rcorreia / drag_and_drop_helper.js
Last active August 11, 2023 06:41
drag_and_drop_helper.js
(function( $ ) {
$.fn.simulateDragDrop = function(options) {
return this.each(function() {
new $.simulateDragDrop(this, options);
});
};
$.simulateDragDrop = function(elem, options) {
this.options = options;
this.simulateEvent(elem, options);
};