Swap Game

The **Swap-Game Nodon** is an Output Nodon that can end the current program and swap to another, transferring a value with it. Up to 8 can be called per program in Free Programming, but none may be called during the "free" segment in the final step of Super Person World.

When unpausing from a long pause in Free Programming, it may say "Ah... Break time over? Time to change up the mood.". In the Nodopedia, its quote is "Nothing like a change of scene to freshen things up!".

## Calling

This Nodon can be called through the following tree.

* Output
	+ Retry/End/Swap
		- **Swap Game**

## Technical

### Inputs

* **Swap** - When a signal other than 0.00 is received, assuming an appropriate target is available, the current program will end, and the target game will begin from the start. If multiple Swap-Game Nodon are to activate at the same time, only the Nodon called most recently will attempt to swap.
	+ If multiple Retry/End/Swap Nodon are to activate at the same time, End-Game Nodon will be prioritized, followed by Swap-Game Nodon, followed by Retry Nodon. If input is received within the first few moments of the game loading, there will a short period of time before Retry/End/Swap Nodon will handle priority and then activate. If one of these Nodon receive a signal while on the program screen, nothing will happen.

### Outputs

* **Swap from value** - For the duration of the program, continually outputs the value received at the 'Swap' port of the previously activated Swap-Game Nodon. Outputs 0.00 if no previous swap has occurred, resetting if the program screen has been accessed.

### Settings

* **Swap Type** - When set to "Keyword", the target game will be based on the set 'Swap-Target Keyword' setting of this Nodon, and the 'Game Keyword' setting of Swap-Game Nodon in the target game. When set to "Back to previous", activating this Nodon will swap back to the game that was most recently swapped from, and can continue backwards in a chain up to 64 times, but accessing the program screen or exiting a game will clear this queue.
	+ Defaults to "Keyword".
* **Swap-Target Keyword** - A customizable line of text of up to 32 characters used to locate the swap target. If the 'Swap Type' is "Keyword", when this Nodon is activated, it will search through downloaded games until finding a game with Swap-Game Nodon that have a matching 'Game Keyword' setting. It first searches through games made by the same programmer from oldest to newest, then searches through the remaining games from oldest to newest. No swap will occur if no downloaded games with matching 'Game Keyword' settings are found. This setting has no effect if the 'Swap Type' setting is set to "Back to previous".
	+ Is empty by default.
	+ This setting is displayed in the Nodon's box on the program screen Canvas.
* **Game Keyboard** - A customizable line of text of up to 32 characters used to define a program as a target. All Swap-Game Nodon within the game share this setting between them, and no two Swap-Game Nodon in a single program may have different strings for this setting. When empty, other programs are completely incapable of swapping to this program using a Swap-Game Nodon keyword.
	+ Is empty by default.
	+ If all Swap-Game Nodon previously present in the game are deleted and a new one is called, if the setting is not adjusted, it will remain set as it was previously until the game is exited or swapped from, at which point the setting will reset.
* **Transition Appearance** - When set to "With title", swapping to a game will display a black screen with its title just as if it were manually loaded. When set to "Without title", the transition between games will simply be a short, blank, black screen.