PHP copy trigger scipts

Here are scripts that I work on these days:

Download

Download the php script

What is is good for

This php script generates scripts with triggers for Trigger Script Editor. You need the php scripts and source triggers. It can copy triggers/effects/conditions one by one. It can copy effects and move them in separate triggers by group. So you can have 2000 effects organized/copied in 8 triggers for example. The triggers id, are generated by increasing the last id or referencing the input trigger id. You can copy triggers without conditions or without triggers. You can activate or deactivate as many triggers as you want and you can make them Start On or Loop On.

It is subject of next development to make it working more complexly with different conditions and effects. I think at this moment, you can't copy conditions in groups just one by one (I did not tested do to it yet).

Instalation
The script has a configuration file called copy.php (you can rename it however you want).
To run the script download Wamp server or load the files on any web server supporting php.
If you want to run on your computer, you have the Wamp server (that is Apache server and php support). You run it in your browser on localhost/your_location/copy.php

You must configure the file copy.php before run it. There is exact syntax, so you must not make mistake to run it. Just to explain, the dolar sign declares variable. So $c declares configuration array of values. You set this array and then run the method copy(). This generates triggers in your browser window.

Use PSPad editor or any good editor which is used for script editing. You need highlighting in editor, to distinguish comments, variables and values.

You must have file like source.txt where are triggers/effects/conditions which you want to copy.

Komentáře

Oblíbené příspěvky