HPL2/ScriptReference

From Frictional Wiki
< HPL2
Revision as of 14:47, 9 July 2020 by Maintenance script (talk | contribs) (Upload from wiki)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Script Language Reference and Guide

This section will explain the features of [1]], the script language used by Amnesia (the syntax, data types, variables, functions, control flow statements, OOP support, etc.), and provide a guide on how to use these features in the context of the [[hpl2:start HPL2 engine]. This is the fundamental knowledge that will help you understand how map scripting for Amnesia works. This guide is intended to teach you scripting (programming), and to be used as a reference to the features and the rules of the script language itself. It is not meant to teach you how to accomplish specific tasks in your custom stories and full conversions for Amnesia (although you might end up learning a few things about that as well).

The guide doesn't make any assumptions about your previous scripting or programming experience. If you are just starting out, you'll probably want to go through the topics in the order listed here. If you feel more comfortable with the scripting language, you can jump right to any page you want. Each topic assumes you're familiar (at lest to some extent) with the topics that come before it in this list. In the wiki tree on the left, the topics are listed alphabetically, for easy reference.

Every topic begins with the "At a Glance" section, which is intended to be used as a quick remainder, a "cheat-sheat" of sorts; if you're new to the topic, you can skip to the "Discussion" section which follows immediately.

<note important>This is work in progress. Some of the information is currently missing. You are welcome to contribute, but please try to follow the format used throughout.</note>

The following subsections are available: