# Exciting, disastrous start :)

**URL:** <https://forum.choiceofgames.com/t/exciting-disastrous-start/1454>\
**Category:** ChoiceScript Help\
**Created:** [June 16, 2013, 3:36pm UTC](https://forum.choiceofgames.com/t/exciting-disastrous-start/1454 "2013-06-16T15:36:36Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tatiana](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/tatiana/32/1154_2.png) [@Tatiana](https://forum.choiceofgames.com/u/Tatiana)\
**Post date:** [June 16, 2013, 3:36pm UTC](https://forum.choiceofgames.com/t/exciting-disastrous-start/1454/1 "2013-06-16T15:36:36Z")

</div>

Hello members CoG forum ! 🙂

My name is Tatiana and I’m new to all this. I love CoG and have bought almost all of the games available. I’ve been flirting with the thought of creating a multiple choice game myself lately. So I’ve checked out a lot of posts on here, the wiki and so on.

Today I thought I’d give it a go. I couldn’t piece together what to write at all ! I wonder if there is a more extensive tutorial out there? (Or maybe I’m just a bit thickheaded).

I’ve never tried coding before and the things I’ve read were pretty general. I’ve tried doing various things, some worked, some didn’t. I wonder if there is something I could read up on or a kind soul who would look through my messy test draft.

I’m sorry if this is something you have heard noobs saying over and over again (not that I wouldn’t just love be annoying 😉 ) But I just couldn’t seem to find it anywhere in older posts and such.

Any sort of help is much appreciated. Thank you.

Kind regards  
Tatiana

---

<div class="post-metadata">

**Author:** ![2Ton](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/2ton/32/786_2.png) [@2Ton](https://forum.choiceofgames.com/u/2Ton)\
**Post date:** [June 16, 2013, 3:41pm UTC](https://forum.choiceofgames.com/t/exciting-disastrous-start/1454/2 "2013-06-16T15:41:18Z")

</div>

@Tatiana Ill read through a draft :3 and there is tons of things to learn but the possibilities are almost endless

---

<div class="post-metadata">

**Author:** ![FairyGodfeather](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/fairygodfeather/32/16709_2.png) [@FairyGodfeather](https://forum.choiceofgames.com/u/FairyGodfeather)\
**Post date:** [June 16, 2013, 3:41pm UTC](https://forum.choiceofgames.com/t/exciting-disastrous-start/1454/3 "2013-06-16T15:41:40Z")

</div>

Hello Tatiana, welcome to the forum.

I’d be happy to look over your draft. Have you it uploaded to dropbox?

---

<div class="post-metadata">

**Author:** ![Tatiana](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/tatiana/32/1154_2.png) [@Tatiana](https://forum.choiceofgames.com/u/Tatiana)\
**Post date:** [June 17, 2013, 1:24pm UTC](https://forum.choiceofgames.com/t/exciting-disastrous-start/1454/4 "2013-06-17T13:24:49Z")

</div>

Thank you both for the kind replies 🙂 I’m really thankful that you’d take your time to help me.

Err… I’m not super familiar with dropbox… Sorry :s

One of my main problems is that the choicescript\_stats.txt file won’t recognize my \*create stats and \*set stats… When I go to index and check the stat screen out it hasn’t changed at all !

I’ve tried the \*create at the beginning of startup.txt and in the mygame.js file. I’ve tried rewriting choicescript\_stats.txt too. Nothing happens… (I’m being ignored!) It’s just the same basic Strength and Leadership stats it came with.

Any clues as to what I’m doing wrong? :’)

---

<div class="post-metadata">

**Author:** ![Slyde](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/slyde/32/1035_2.png) [@Slyde](https://forum.choiceofgames.com/u/Slyde)\
**Post date:** [June 17, 2013, 1:37pm UTC](https://forum.choiceofgames.com/t/exciting-disastrous-start/1454/5 "2013-06-17T13:37:25Z")

</div>

Did you try refreshing your browser after saving your .txt file?

Also, afaik \*create only works in startup.txt. I may be wrong though; I use the mygame.js file for stats.

---

<div class="post-metadata">

**Author:** ![Tatiana](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/tatiana/32/1154_2.png) [@Tatiana](https://forum.choiceofgames.com/u/Tatiana)\
**Post date:** [June 17, 2013, 2:59pm UTC](https://forum.choiceofgames.com/t/exciting-disastrous-start/1454/6 "2013-06-17T14:59:52Z")

</div>

Yes I refreshed a couple of times after making in a change. What I’ve tried to write in the my game.js file so far hasn’t really worked… How did you write it?

Right now I’ve added just a couple of things, (to see if it would make any changes to stats in index) so it looks like this:

Your stats

\*stat\_chart  
\_\_\_\_text name  
\_\_\_\_text gender  
\_\_\_\_percent Leadership  
\_\_\_\_opposed\_pair good  
\_\_\_\_\_\_\_\_evil  
\_\_\_\_text Leadership  
\_\_\_\_text Strength

But it doesn’t seem to change anything at all :s

---

<div class="post-metadata">

**Author:** ![2Ton](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/2ton/32/786_2.png) [@2Ton](https://forum.choiceofgames.com/u/2Ton)\
**Post date:** [June 17, 2013, 3:15pm UTC](https://forum.choiceofgames.com/t/exciting-disastrous-start/1454/7 "2013-06-17T15:15:17Z")

</div>

@Tatiana I’m not the best at explaining my awesome ways, so ill do the next best thing with the updated version I have(or what I assume is updated since the version I have is about a month old but you dont have to mess with the mygame.js) Ill show you. :3

[https://dl.dropboxusercontent.com/u/134916500/IMG\_17062013\_141149.png](https://dl.dropboxusercontent.com/u/134916500/IMG_17062013_141149.png)

It’s a ghetto representation but I hope it helps, if it doesnt ill keep trying to help with my awesomeness.

Edit: I don’t space mine out as much as you do(which might not be a problem), and you also have two leaderships.

---

<div class="post-metadata">

**Author:** ![lordirishdas](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/lordirishdas/32/381_2.png) [@lordirishdas](https://forum.choiceofgames.com/u/lordirishdas)\
**Post date:** [June 17, 2013, 7:02pm UTC](https://forum.choiceofgames.com/t/exciting-disastrous-start/1454/8 "2013-06-17T19:02:31Z")

</div>

I add all my stats into mygame.js using notepad ++. That way I do not have to mess with create anymore. And if placing code on the thread use \< pre\> \< /pre\> without the space at the bringing. This will keep your text spacing.

```

This a sample of code 
using pre.
*choice
 #format in tact
  *goto end

```

---

<div class="post-metadata">

**Author:** ![Cataphrak](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cataphrak/32/2883_2.png) [@Cataphrak](https://forum.choiceofgames.com/u/Cataphrak)\
**Post date:** [June 17, 2013, 8:36pm UTC](https://forum.choiceofgames.com/t/exciting-disastrous-start/1454/9 "2013-06-17T20:36:10Z")

</div>

Notepad++ comes highly recommended btw. It’s got a lot of features which help quite a bit. Things like line counts, multiple tabs and “find in all opened documents” become really useful when you’re looking through 15 000 lines of text.

---

<div class="post-metadata">

**Author:** ![Tatiana](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/tatiana/32/1154_2.png) [@Tatiana](https://forum.choiceofgames.com/u/Tatiana)\
**Post date:** [June 18, 2013, 9:22am UTC](https://forum.choiceofgames.com/t/exciting-disastrous-start/1454/10 "2013-06-18T09:22:34Z")

</div>

@2Ton hey, so I’ve tried doing what you showed me (exactly), and there are no changes to be seen. It’s the same as it was before. I don’t know if the original stat screen is hiding somewhere, since it keeps displaying that one. It ignores my commands completely. (I also tried spacing it out less, that didn’t help either.)

Damn, I’m getting jealous of that awesomeness 😉

@lordirishdas I don’t quite understand… 😕

@Cataphrak Thanks, I’ll try it out once I get into writing for real. Right now I just need to understand what I’m doing and how I do it 🙂

---

<div class="post-metadata">

**Author:** ![lordirishdas](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/lordirishdas/32/381_2.png) [@lordirishdas](https://forum.choiceofgames.com/u/lordirishdas)\
**Post date:** [June 18, 2013, 3:57pm UTC](https://forum.choiceofgames.com/t/exciting-disastrous-start/1454/11 "2013-06-18T15:57:02Z")

</div>

In mygamr.js you add your variables between You can set them in three ways.  
Example  
[  
\*comment we can make it true or false  
happy: true  
\*comment we can make it a string  
,npc: “Marry”  
\*comment we can make it a variable  
,cost: 10  
]  
So you then can use the variables you just added.

```

*if happy
 *set happy false
 So it cost ${NPC} 6 bucks.
 *set cost -6
 so ${NPC} has ${cost} left in the bank.
 *goto somewhere
*else
 *goto somewhere

```

So it would display the following if happy is true.  
First it makes happy false then then it would print: So it cost Mary 6 bucks.  
It then subtracks the money from cost  
It then prints: So Mary has 4 bucks left in the bank.  
Then you are sending it to another label. And since we made it false it will now only go to else if called again.  
Hope that helps.

---

<div class="post-metadata">

**Author:** ![2Ton](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/2ton/32/786_2.png) [@2Ton](https://forum.choiceofgames.com/u/2Ton)\
**Post date:** [June 18, 2013, 4:27pm UTC](https://forum.choiceofgames.com/t/exciting-disastrous-start/1454/12 "2013-06-18T16:27:33Z")

</div>

@Tatiana Awwww, thank you. Im jealous of your awesomeness right back :3 but I dont think you have the updated version then, because that should work. And LordIrish is trying to show you how to do the old version stats and the different types of stats, and also to show codes on the forum just add

\< pre \>  
[insert your codes from your game]  
\</ pre\>

just remove the spaces, then it should look something like this…

```

Whatever codes you wish to insert here

```

---

<div class="post-metadata">

**Author:** ![ADNox](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/adnox/32/1115_2.png) [@ADNox](https://forum.choiceofgames.com/u/ADNox)\
**Post date:** [June 18, 2013, 4:28pm UTC](https://forum.choiceofgames.com/t/exciting-disastrous-start/1454/13 "2013-06-18T16:28:09Z")

</div>

The lesson: to be happy, don’t spend $6.

---

<div class="post-metadata">

**Author:** ![lordirishdas](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/lordirishdas/32/381_2.png) [@lordirishdas](https://forum.choiceofgames.com/u/lordirishdas)\
**Post date:** [June 19, 2013, 2:57am UTC](https://forum.choiceofgames.com/t/exciting-disastrous-start/1454/14 "2013-06-19T02:57:52Z")

</div>

@2Ton I feel this is the simplest method for a new user and is compatible with all verisions. Of course this is just my humble option. 🙂

@ADNox lol

---

<div class="post-metadata">

**Author:** ![P\_Tigras](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/p_tigras/32/626_2.png) [@P\_Tigras](https://forum.choiceofgames.com/u/P_Tigras)\
**Post date:** [June 19, 2013, 8:05am UTC](https://forum.choiceofgames.com/t/exciting-disastrous-start/1454/15 "2013-06-19T08:05:33Z")

</div>

I don’t think there is an easy way to tell what version of choicescript someone has. The only way I can think of to do an estimate is to look at the date stamp of the files in your choicescript installation. If they’re older than April 26th or so when @dfabulich put up his announcement, the new method may not work.

If you do have a recent enough version of choicescript, I do feel that the newer method is simpler and more straightforward. There’s no need to futz around with a javascript file and its different syntax.
