Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

noted PauseGame oddities #97

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions _data/actions/218.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,19 @@ n: 218
name: PauseGame
desc: |-
This action pauses the game. Script processing is halted while the game is paused.

The action only works when used by PC or FAMILIAR. However, it's not enough to just set EA to FAMILIAR. The calling creature must be global and added as a familiar via scripting. Futhermore, it appears that `AddFamiliar()` is not instant, so calling `PauseGame()` right after it won't work. To workaround, another command must be added to the script just before.

Working code example:

```
IF
OnCreation()
THEN
RESPONSE #100
MakeGlobal()
AddFamiliar()
SmallWait(1)
PauseGame()
END
```