A little help with Choicescript please?


#21

YAY!!!

If you open up notepad++ first you should be able to load up the files from inside there. That’s what I usually do.


#22

I have Notepad++ open- the problem is that I don’t know how to load the files.

Do I click on “load session” or something?


#23

Oh that’s the bit that’s outdated. If you got that far I think you can stop. To make scenes now you do it in startup.txt

You create a notepad file in the web/mygame/scenes folder with the name of the scene you want, like say myscene.txt (the txt is automatically added). Then in startup you do


*scene_list
  startup
  myscene
  finalscene

in the order the scenes come in. Have a look at
https://www.choiceofgames.com/showdown-at-willow-creek/scenes/ and https://www.choiceofgames.com/showdown-at-willow-creek/scenes/startup.txt

(ignore the json files you won’t have those in your folder).


#24

Eek never mind, I didn’t quite get what you meant.


#25

Just file>open then browse to the scenes folder and you can open files in there to look at them. And you can also save files in there too. Everything’s done in that scenes folder.


#26

I’m having a little trouble making a new file, so I’m just going to substitute one of the ones I don’t need and use that for now.


#27

Question: Where do I put the scene list? After or before I write the story?


#28

The scene list goes in startup.txt It should be right at the top. Have a look at the way Willow Creek does it.

A new file is just a txt file in the scenes folder. What are you finding difficult?


#29

I’m having trouble making a new file for some reason. It doesn’t give me the option.

So do you think it’ll be alright if I continue doing my work on the Notepad++?

I’ll go look over Willow Creek’s start-up and see what I can learn from it.


#30

Make a new file, name it, save it and put the file name in your scenes list. Notepad++ automatically makes the new file a .txt file.

Eg.
You want a scene where the MC is eating pancakes.
You’d make a file called “mceatspancakes”, fill it with some sort of code;
eg in eg,
You eat the pancakes, gobbling down every morsel greedily.
*finish
Then you’d save the file, go to startup.txt and place the mceatspancakes file in the scene list somewhere before the ending. Or before, it doesn’t really matter. BUT DON’T MAKE IT BEFORE THE STARTUP FILE!


#31

Yeah keep doing your work in notepad++ It’s just File>New and then File>Save_As and you make sure you’re in the right folder and just call it your scene name.


#32

Alright, thanks. Right now I’m following loosely off Willow Creek’s, format.

What kind of code?

So each time you make a scene, you have to open up a file, name it, and put whatever in it?


#33

Any ChoiceScript code can go in the document, it doesn’t matter.


#34

I don’t know what a Choicescript code looks like.

Is it like the title name or something?


#35

https://www.choiceofgames.com/showdown-at-willow-creek/scenes/startup.txt is choicescript code


#36

Oh, so it’s just the title.


#37

I have a question. When I am done with all of my scenes, how do I compile them together and make it playable?


#38

there are playable since you got some label lol you dont have to do nothing more click index.html in firefox please read the page info


#39

Oh well…oops. xp


#40

Question: Do you need to seperate your startup from the story with a special type of code?

For example, in Willow Creek, it has this after the startup:

*temp buck
*set buck 50

Is that just for that game or is there something that I need to put in my game?