Changing the title


#1

I have the title set in the index. During the start of the game the player will assign a case name. I would like to add the case name to the title. Any thoughts on how it might be done.


#2

@lordirishdas
Not sure. I think you may be able to use “*title (title)” later in the game, but it might only work at the beginning of the “startup.txt” like “*create”.


#3

I thought of using *title Name of game ${var} then set the var in my game.js. but unless you looped back to the begging the var would never show the change. I don’t believe you can reuse *title again.


#4

No you cant that give you a error title only display at begin of startup, or something like that i have a similar problem.


#5

Does *title have to come first or can you a *label above it. If so then I could


*label top
*title Game name ${var}

*if check_1
 *goto continue_story
*else
 *goto start


unfortunately I cannot test this theory for several hours as my phone does not like running anything from Dropbox


#6

no you cant i try at first it has to be first code in startup to work


#7

thanks @MaraJade :slight_smile:


#8

You’ll find people won’t look at the title much, or at all in the case of apps.


#9

@CJW
It was just a minor thought, you know how I get over creative at times. Lol I did some looking and it is feesiable with js, but that would require a mod of the main code. So in the end have dropped the idea. But thanks :slight_smile:


#10

Feasible? It’s a little bit more than feasible
You wouldn’t need to edit anything, just use the *script command:

*script document.title = "New Title"; :-"


#11

@CJW
Thanks ever so much for the tireless help.