Mojo
SCRIPTING COMMANDS

TerminateGame

New in build 325

Closes DAOC instantly to help avoid the bug in DAOC that makes DAOC restore default settings.

Syntax

TerminateGame ()

Examples

To terminate all games on all computers:

Hotkey ( F1 )
{
   TerminateGame()
}

To terminate the foreground game:

Hotkey ( F1 )
{
   SendTo ( local_foreground )
   TerminateGame()
}

To terminate all games on the local PC:

Hotkey ( F1 )
{
   SendTo ( local )
   TerminateGame()
}

To terminate Eenie, Meanie, and Moe:

Hotkey ( F1 )
{
   SendTo ( Eenie Meanie Moe )
   TerminateGame()
}

Remarks

For more information about the bug in DAOC that occasionally deletes DAOC settings and makes DAOC restore defaults, see Mojo’s Troubleshooting page.

Mojo contains predefined hotkeys, which don’t require a script, that do the same thing as this command. To set up one of these unscripted hotkeys, right click the white background of Mojo’s Hotkeys page and follow the prompts.

This command calls the operating system’s TerminateProcess function.

Related

Troubleshooting

This page was first published on February 6, 2021, last revised on February 6, 2021, and last republished on February 7, 2021.

Comments