Home and FAQ - ItsDeltin/Overwatch-Script-To-Workshop GitHub Wiki

Wiki

Overwatch Script To Workshop (OSTW) is a high-level programming language for the workshop. It included classes, functions, lambda, pathfinding, and more.

  1. Getting Started
  2. Rules
  3. Variables
  4. 'if' and 'else'
  5. Loops
  6. Strings
  7. Methods and macros
  8. Chasing and modifying variables
  9. Classes

Additionally:

FAQ

How do I define subroutines?

How do I add newlines to strings?

  • Just type \n at the point you want to add a newline. Like\nThis

What are _extendedPlayerCollection and _extendedGlobalCollection?

  • These are OSTW's tool that allow you to store more than 128 variables (the limit in workshop). They utilize arrays. To read more go here: Variables

What are _object_variable_1/2/3?

  • This is how OSTW lets you pass classes as references. Each class instance is stored as an ID, which is used to index into those arrays depending on what property you access. For more info, read here: [Debugging Class Variables] (Classes#debugging-class-variables)