Skip to content

Tutorial 4: Running Multiple Events Simultaneously

MichaelEGA edited this page Jul 11, 2024 · 4 revisions

image

In this tutorial we'll look at two different methods for running events simultaneously.

In this tutorial we'll learn how to:

  • Start more than one event series
  • Split an event series into two or more event series

Method 1: Use multiple starteventseries nodes

A. In the mission editor open the mission you made in the previous two tutorials

B. Open the Add Event Node window, scroll down, and add another starteventseries node.

image

C. Disconnect your ifshipisactive node from the display message node and connect it instead to the new starteventseries node

image

You can now save your mission and play it and it should feel exactly the same as before, but there is a difference. The game will now exit the mission as soon as the falcon has been destroyed, regardless of whether the events in the first series are complete or not.

Note: You can add as many starteventseries as you want. They can be useful for adding background activity to your mission that you want to keep out the main mission event series, such as commercial traffic jumping in and out the system.

But there is another way to create new event series that may be more useful.

Method 2: Use the spliteventseries node

A. In the mission editor open the mission you made in the previous two tutorials.

B. Delete the second starteventseries node we made and add instead a spliteventseries node

image

C. Connect the displaymessage node to the spliteventseries node

image

D. Now disconnect the ifshipisactive node, the loadsingleship node, and the exitmission node from each other.

E. Connect the next event 1 output to the loadsingleship node and the next event 2 output to the ifshipisactive node, and the ifshipisactive node to the exitmission node.

image

You can now save your mission and play it. What's the difference? The star destroyer will now load regardless of whether the falcon has been destroyed or not, and the game will exit the mission when the falcon is destroyed regardless of whether the star destroyer has jumped in or not.

Note: This can be helpful if you want to run a check to see if a ship has been destroyed, but also want the events of the mission to continue.

Clone this wiki locally