'Non-existent variable' Error

Hey y’all sorry for my bad English but I’m very new here and I’ve been having trouble with setting up the stats screen. Whenever I select it I always get the message: choicescript_stats line 3: Non-existent variable ‘strength’ and wont open.

My code is very simple since I’m just playing around.

startup.txt

*create strength 0

while my stats

*stat_chart
   percent strength 

Make sure your *create commands come after the title, author and scene_list commands.

I did just that and it still produces the same error message :0

If you upload it to dashingdon as non-public and post the link here i can have a poke around. You can always delete it later. I understand if you don’t want to but without seeing the code in full its really hard to troubleshoot

I accidentally deleted my first reply im so sorry. Hope this is what you meant

https://dashingdon.com/play/martinikx/orions-dog--wip-/mygame/

Your *creates are indented. Try this

*title Orion's Dog
*author Me me big dog

*scene_list

*create sylvester 0
*create atlas 0
*create malachi 0

I would recomend putting your story text in a new file and then you would do this:

*title Orion's Dog
*author Me me big dog

*scene_list
    chapter_1

*create sylvester 0
*create atlas 0
*create malachi 0

with your first chapter called “chapter_1” (you can call it anything)

edit: also don forget to *finish or *ending at the end of your text to end the game, else it will load forever once it gets to the last page

1 Like

Yoooo! You solved it! Thank you so much! <3 ;v;

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.