The idea is that the function/read scene is just for running a custom function and the writer/coder never has to edit it. When they want to, they just change the lists_listname to the name of whatever list they want to, assuming they have multiple.
Well it’s going to be like a thousand or so words of code for various functions and to copy that over and over again would be confusing and take up space. Though it could work as a last resort since the writer should only need a small handful of lists, for say inventory, appearance, wounds, etc. Technically they can all be put into one list… but first let me see if your earlier idea for sure doesn’t work.
@ParrotWatcher@Szaal okay, so parrot watcher’s earlier idea did work. (I think my last reply didn’t make since because it does need to work either way)
There are a lot more errors I’m sorting through but they seem simple enough. I’ve been working on this (with the help of you guys, thank you, thank you) for the past 5 or so hours.
Sure, but the list would be saved as a global variable, so there’s no need to use a pointer to reference it. Just set the test list to the list you want tested (which you look like you already do) and then call the function scene.
@Szaal@ParrotWatcher
I think it worked with all the pointers involved…
I have another error though that I don’t understand. It says:
line 21: There is no character at position 49. "^Blue^just growing out
^Dark^Light^green^freckled" is only 48 characters long.
Which should make since, but line 21 says:
percent cha Charisma
(It’s part of a stat chart)
It should be talking about the stats scene but if it’s talking about the function/read scene, then line 21 there is:
*set letter lists_listname#lists_char
Which worked fine two other times previously in the same scene.
Edit: no other line 21 in any file is abnormal, and the stats screen loads everything it should, including the list items. So I think maybe choicescript might just be acting loony.
I imagine that could be the problem. It seems obvious but I’m very confused because there is no problem with any line 21 and I have no idea what line is the problem. Being off by only one (48-49) doesn’t make it easy when I have several lines that use counters and repeating in that one scene alone.
Edit: oops, you are talking about a liable line 21. Just a second.
The whole section of code there is this:
Actually, I just noticed that “freckled” the last item on the list isn’t showing up in the stats screen like the rest.
If I make it so the lists_char is one less before running the label beta, then it stops giving errors but it also stops showing ANY of the list items.
um… so what would be the right way of writing it? I’m stumped.
Maybe if I swap those two lines you quoted?
Edit: Swapping them does the same thing as making lists_char one less before running beta: no errors but no items either.