Login
Remember
Register
Twine Q&A
Questions
Unanswered
Tags
Users
Ask a Question
Code of Conduct
Ask a Question
Is there an END command?
0
votes
asked
Aug 10, 2017
by
Liamw104
(
2.9k
points)
Hi, I was wondering if there was an end command for sugrcube V2.
What I mean by end is when executed it will shutdown the game (Non browser).
If anyone has an idea on how to do so please comment javascript works too.
twine2
sugarcube2-18
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Aug 10, 2017
by
Chapel
(
63.1k
points)
What exactly would this end command do, though? Short of closing the tab somehow, I don't see how it would do much. What do you need it for?
commented
Aug 10, 2017
by
Liamw104
(
2.9k
points)
My hopes are that there is a command that once activated will end the task or tab.
commented
Aug 10, 2017
by
Chapel
(
63.1k
points)
You can't close windows or tabs the user opened in most browsers. You can attempt to call window.close() with a <<run>>, but it probably won't work and is also kind of a fishy thing to do.
commented
Aug 11, 2017
by
Liamw104
(
2.9k
points)
Thanks, it does exactly what I hoped for.
Please
log in
or
register
to add a comment.
This site has been placed in read-only mode. Please use the
Interactive Fiction Community Forum
instead.
Related questions
Is there a way to populate a Set() with multiple items?
Is there a way to trigger a macro through mouseover and mouse-off? (Twine 2, Sugarcube 2)
Is there any way to add link history.
Is there a way to state variables in the <<link>> macro in Twine 2, sugarcube 2-18?
How do I get three unique variables from an array?
Most popular tags
twine2
sugarcube2-21
sugarcube2
twine2-2-1
harlowe2-0-1
harlowe2-1-0
harlowe
sugarcube2-18
javascript
css
twine2-1-3
sugarcube
variable
variables
macro
twine
links
twine1
if
sugarcube2-28-2
harlowe2
audio
html
array
image
snowman
passages
passage
savegame
inventory
music
arrays
saves
link
time
sugarcube2-25-0
textbox
harlowe1-2-4
error
text
array-objects
set
images
2
question
sugarcube-2
code
color
sugarcube2-27
tweego
datamaps
history
background
sugarcube-2-28-2
sugarcube-2-21-0
ui-bar
sidebar
sugarcube2-25
choices
autosave
jquery
button
publish-to-file
widgets
typed
random
import
transition
loop
twine2-3-1
harlowe2-2-1
replace-macro
choice
objects
tags
harlowe3-0-2
for-macro
rpg
saving
stats
effects
save
stylesheet
click-macro
twine-2
user-input
animation
header
questions
format
object
0
ui
script
error-message
sugarcube2-21-0
sugarcube2-24-0
loadgame
twine2-2-0
adventures
...