The tool(Program) that makes the process easier. 1.0 Available!

Post tutorial Report RSS HPL2 Tool-Helper Custom Events

In this short post you will learn how to embed your own events into a program.

Posted by on - Basic Installers

Case sensitive, and scripts with notes should be in one line!
The program contains internal names of input text boxes:
Obj ("Entity")
Trigger
Item
Item2
NameScript
Func

There are also codenames:
Script - is responsible for the code that will appear, in order to get the text that was entered by the user, it is enough to write the internal name there. Example: AddNote("Item", "Item2");
Note - this is a note that will help the user understand what the text boxes are responsible for, Example: Item - the name of the timer, Item2 - time in seconds, and the function to call.

So, in order to add your own event, you need to open the Events file in the ToolHelperCore folder with any text editor (I recommend Notepad++). Scroll down to the end, and put square brackets and between them the name of your event, example: [SetPlayerHealth]. Then press enter to skip a line, and then you need to specify which input boxes to use, this is done like this:

[SetPlayerHealth]
Item=1


With this text, we show the program which input boxes to include. Now we need to add the code after copying it from Wiki.frictionalgames.com

[SetPlayerHealth]
Item=1
Script=SetPlayerHealth(Item);


The program automatically replaces the final scripts with internal names for what the user entered in the program.
And finally, let's add our comment!

[SetPlayerHealth]
Item=1
Script=SetPlayerHealth(Item);
Note=Modifies/returns the health of the player.


Now you need to save the file and restart the program, your new event will immediately appear and function as it should!

If you want to connect other events from users, you need to download them and copy and paste them into your Events file.

It doesn't matter from which input text box you take and paste into your script, that is, you have as many as 6 variables ready for use! They can be used more simply by explaining with notes.

Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: