Right so, I don’t have an actual problem, so much as a question.
I’ve been playing Saga Of The North Wind, amazing game. What I noticed is that, you have the option to change your name and tribe name in the ChoiceScript_Stats page. And I thought to myself… How did they code that?
Usually, when I’m writing, the ChoiceScript stats page basically resets everything as soon as you go back out of it and into the actual game, so whatever changes you make in the choicescript stats page won’t transfer over to the actual gameplay.
The question is, Can you make a choice to set a variable in the ChoiceScript_Stats.txt?
Because that would be very useful to set up difficulties and other stuff mid-playing and such…
It would practically make the ChoiceScript_Stats act like a pause feature
Thank you in advance, and sorry for your troubles.
P.S: If the solution was to change something in the Javascript, I may be able to do so since my co-author has decent experience with it.
It is. There was a post a few days ago using the stats sceen to equip and unequip items. You can treat it like its own scene, and try things out to see how it goes. A difficulty option could work…
This was a change to CS. You can now *set a variable in the stats screen and it will update. Normally you’ll see the change after going to the next page, but you can push it to the current page with *redirect_scene which otherwise works like *goto_scene
I got it! Wow, all this time, I was completely oblivious that there was an update to the CS.
I updated my files and tried it out. At first, I had a problem with the save plug in I was using, but then I realized I just had to redo the intergration.
The new scrolling animation is AMAZING! Wow, this is all so amazing Thank you so much, and sorry for the troubles.
DAVUUUUK!!!
So now we’re no longer need to use the *redirect_scene !!!
We… have… to… SPREAD THE WOOORRDDD!!!
(yeah, sorry. I just can’t contain my excitement. It’s flooding my room, now )
Edit:
I’ve tried several scenario, and I think I’ll put my conclusion here as well.
Take an example of the player drinking a HP potion via stats screen.
After drinking the potion, the {HP} inside the stats_screen will adjusts accordingly, but not yet with {HP} on the actual game.
${HP} on the actual game will adjusts after you press the “Next” button and proceed to the next vintage/event.
Player can choose to go stats_screen > Drink x HP potion > return to game > stats_screen > Drink y HP potion > return to game.
In this case, the number of potion that will be taken by the player is y potion and not x
This means that the player can choose to “reset” the number of HP potion they take by cancelling via <<return to game>> and correct it by going back to <<stats_screen>>.
Using the *temp command creates a temporary variable that will work, until you move onto a new scene file. When you move onto a new scene file, the variable made with the *temp command will no longer exist.
If you have read Ever tree inn you would observe that after creating character background you would see that suspect percent has ???, until you meet that character then the name of that character met displays. Do you know how he did that.