Action Sequences#
What Are Action Sequences?#
Action Sequences are a list of Actions that can be used for interactivity in the game. There are a variety of Actions that can be used and there is basic logic that can be applied to how they get used. For example, you can add logic such that a certain Action will happen if an Item amount is over a certain number, but another Action will happen if that Item is not over a certain number. You can assign an Action Sequence to a Room and it will play out when the Room is loaded. You can assign an Action Sequence to a Thing and it will play out when you walk into the Thing. You can assign an Action Sequence to an Item and it will happen when you pick up the Item. The same Action Sequence can be assigned to multiple components in the game.
Okay, so what are Actions?#
Actions are specific nuggets of functionality you can add to your game. Actions can be things like Say Something, which will show a dialog bubble on the screen, or Teleport, which will teleport the Player to a different part of the game.
Don’t underestimate actions. You can make your game do some incredibly cool things by putting together the right sequence of Actions.
Actions Summary
- Say Something
Pops up a dialog box of text. - Teleport
Teleports the Player to a specific location in a specific Room. - Set Background Color
Makes the background color of the current Room change. - End the Game
Ends the game and restarts. - Increase Item Count
Increases the amount of an Item by a specific amount. - Decrease Item Count
Decreases the amount of an Item by a specific amount. - Set Item Count
Sets the amount of an Item to a specific value. - Group of Actions
Bundles a group of Actions together to be treated as one big Action. - Make a Decision
Provides a set of choices that can happen based on whether something is true or not. - Do Actions in a Row
Each time the Action Sequence gets to this Action, it picks the next item in its list of Actions, and repeats the last action once it gets to the end of the list. - Do Actions in a Loop
Each time the Action Sequence gets to this Action, it picks the next item in its list of Actions, and then loops back to the beginning of the list if it gets to the end of the list. - Pick a Random Action
Each time the Action Sequence gets to this Action, it picks a random action to carry out from its list of Actions. - If
Used when making a decision as the first thing that’s checked. If the thing it checks is true, it carries out its Actions and the rest of the decisions get ignored. - Else If
Used when making a decision as another possible thing to check if the first If Action wasn’t true. If this one checks out as true, the rest of the decisions get ignored. - Else
Used when making a decision as the last resort if all the other decisions were not true. - Do Nothing
Doesn’t do anything. Useful for the Do Actions in a Row Action when you don’t want the last Action that gets repeated to actually do anything.
Action Sequence Editor#
When you click on an Action from the Action Sequences tab, the Action Sequence Editor will pop up. From there you can name the Action Sequence and you can edit the Actions that will play out.
Actions play from top to bottom. You can change the order in which they happen.
Action Groups#
Some actions are notable because they are just containers for other Actions. For example, Pick a Random Action simply has a list of Actions it holds. When it gets triggered, it picks one random Action from that list and then that Action happens.