Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Work in progress Amnesia Script Wizard
Spelos Away
Banned

Posts: 231
Threads: 19
Joined: Sep 2014
#5
RE: Amnesia Script Wizard

The way I set up this program (and bare in mind the structure may change)
is that it remembers all the current functions with their syntax and gives it an ID.

For example:
ListOfFunctions[0] = "void OnStart()"
ListOfFunctions[1] = "void OnEnter()"
...
The index of the function is its intern ID.
When you then select a function in the UI of the program, it gets the function's ID and creates a command list for it.
ListOfFunctions[0] = "void OnStart()"
ListOfCommands[0] = "SetEntityActive("example", false); \n SetEntityActive(...)"
If a new function is created by any of the commands, it gives it a new ID and adds it to the ListOfFunctions. The function can then be accessed.

When you're ready and press the "Build script" button the .hps file compiles.

For each Function it generates the following:
ListOfFunctions[ID] ("void OnStart()")
"{"
ListOfCommands[ID] ("SetEntityActive("example", false); \n SetEntityActive(...)")
"}"
Where ID is increasing to cover all functions ready.

You end up with a structured .hps file as usual.
But you cannot preview it unless you actually build the file.
(But a feature to preview the build might be added)
03-01-2016, 06:39 PM
Find


Messages In This Thread
Amnesia Script Wizard - by Spelos - 02-29-2016, 07:26 PM
RE: Amnesia Script Wizard - by WALP - 02-29-2016, 09:03 PM
RE: Amnesia Script Wizard - by Mudbill - 03-01-2016, 04:06 AM
RE: Amnesia Script Wizard - by AGP - 03-01-2016, 06:24 PM
RE: Amnesia Script Wizard - by Spelos - 03-01-2016, 06:39 PM
RE: Amnesia Script Wizard - by Spelos - 03-05-2016, 07:59 PM
RE: Amnesia Script Wizard - by AGP - 03-05-2016, 08:42 PM
RE: Amnesia Script Wizard - by Mudbill - 03-05-2016, 11:38 PM
RE: Amnesia Script Wizard - by Spelos - 03-27-2016, 03:09 PM
RE: Amnesia Script Wizard - by DanielRand47 - 03-27-2016, 04:15 PM
RE: Amnesia Script Wizard - by Spelos - 03-27-2016, 06:57 PM
RE: Amnesia Script Wizard - by Spelos - 07-19-2016, 07:45 AM
RE: Amnesia Script Wizard - by Daemian - 07-20-2016, 01:46 AM
RE: Amnesia Script Wizard - by Spelos - 07-20-2016, 06:09 AM
RE: Amnesia Script Wizard - by Romulator - 07-20-2016, 07:49 AM
RE: Amnesia Script Wizard - by Spelos - 07-20-2016, 08:22 AM
RE: Amnesia Script Wizard - by Romulator - 07-20-2016, 08:25 AM
RE: Amnesia Script Wizard - by Spelos - 01-04-2017, 10:03 PM
RE: Amnesia Script Wizard - by FlawlessHappiness - 01-05-2017, 12:12 AM
RE: Amnesia Script Wizard - by Mudbill - 01-05-2017, 08:23 AM
RE: Amnesia Script Wizard - by Spelos - 01-05-2017, 10:02 AM
RE: Amnesia Script Wizard - by Romulator - 01-05-2017, 05:57 PM
RE: Amnesia Script Wizard - by Romulator - 01-05-2017, 08:46 AM
RE: Amnesia Script Wizard - by Spelos - 01-06-2017, 11:38 PM



Users browsing this thread: 1 Guest(s)