I need help! Problems with coding for the stat screen

As a note, the Title Too Long is a publishing support issue. Google Play does not allow app titles over 30 characters and since we use the *title as the app title, that’s the issue.

Can you open The Galactic Monarchy The Galactic Monarchy (WIP) [2017-02-18]?

Done. Good luck with your coding!

4 Likes

Can you write the code in choicescript_stats.txt too?

If not, how to write the hidden text in choicescript_stats.txt?

Yes. Just as you would write any normal code.

But if your case is to hide a piece of text until the player get to a certain point in the game… You will need *if command

If the case is to hide a choice option, well, you’ll need *if as well

1 Like

I don’t understand opposed_pair

Yes, I tested.

[b]Your heart[/b]
*stat_chart
    opposed_pair good Good
        evil Evil

Do I miss anything?

You need to do it like this:

opposed_pair ruthless
            Ruthless
            Mercy

First “Ruthless” is for the variable name
The second is for the bar itself. In this case, Ruthless would be on the left, and Mercy on the right side of the bar.

2 Likes

That should result a
Good vs. evil Evil

If you want a Good vs. Evil
do

*stat_chart
    opposed_pair good
        Good
        Evil

Keep in mind that you don’t need any [Evil] variable

1 Like

Thanks you!

I still am stuck in *finish, but I added txt-file.and made *scene_list. Did I miss anything in wiki?

*scene_list
 startup
 evil1

Edit: Yes, I would make a population of humanoids and aliens, for example, 60 billions humanoids and 50 billions aliens.

No replies? I still wait.

Your *scene_list has to look something like this:

*scene_list
   startup
   evil 
   finish

Other than that, nothing looks wrong. Can you give a more detailed example of the problem that you’re having?

A question, why do you have to have finish in scene_list?

I don’t recall needing to add a finish scene, though the indents are still needed. You only write out the scenes that are involved in the order of their involvement.

Edit: I still don’t know how to use indents. Do I click the </> button until it indents? Or do I write <<>/>?

Yes, you can click the bottom.

Indentation in ChoiceScript is done by either using [tab] or a “pack” of [spaces]

@Thunder-Man: not really. When you feel like your story has reach its ending, you just need to put *ending command

I mean that I need to “move” my scene to the new chapter.

Well, that decision is totally up to you. There’s no absolute rule whether you want to spread your story in several chapters, or pack them all in a single chapter.

But keep in mind that having several chapters allows you to manage your game easier, while people with low-end devices will be still able to play your game smoothly.

Oh. For some reason I thought that you needed to have finish in there. I still can’t get the indents right lol :sweat_smile:.

But if you wish for the specific command to to any scene, you do *goto_scene. Otherwise, the game just flows in the order that you have your list in.

1 Like

When will I use *hidden_reuse and *allow_reuse? I don’t ask how or where.

Edit: I have become better and better. Thanks you for helping me with the codes.

I believe that *hide_reuse hides a choice unless you have met certain criteria/stat checks and *allow_reuse just lets you choose the same option again.

1 Like