[Advanced level editor] Creating a logic counter

Tutorials and guides for Plazma Burst and community features.

[Advanced level editor] Creating a logic counter

Postby zhen » 25 June 2016, 07:25

Applications:
When this trigger mechanism is called # times, it will activate a secondary trigger. This can be used to keep track of how many enemies are killed or used to limit the ammunition of a weapon.

Construction:
You will need 3 triggers, and two timers.
Key: trigger 1, Trigger 2, trigger 3. Timer 1, timer 2.

Trigger 1 - calls: infinite - action 1: activate timer 1 - action 2: activate timer 2

Timer 1 - calls: # [defined by user, subtract one from origional value for more accurate results] - Disable on start - Timer delay: 1 - activate trigger 2

Trigger 2 - calls: infinite - action 1: disable timer 1 - action 2: disable timer 2

Timer 2 - calls: infinite - Disable on start - Delay: 2 - activate trigger 3

Trigger 3 - calls: infinite - action 1: disable timer 1 - action 2: disable timer 2

Explanation: Trigger 1 activates two timers, Timer 1 has limited calls and disables both timers before the second one finishes, this makes it possible to keep track of how many times the system is activated, Once the first timer's calls run out (number is defined by user) The second timer will be able to complete it's task and activate trigger 3. Extra trigger actions will be needed for the user to achieve the required result.
User avatar
zhen
Recruit
 
Posts: 18
Joined: 18 June 2014, 22:16

Return to Tutorials

Who is online

Users browsing this forum: No registered users