Hello everyone,
Recently I started messing around with ChoiceScript, and I’ve got the following code:
You’re legs are pumping, it’s 30 below zero, and you’ve just killed your first Zombie. Evidence of this can be clearly scene, it’s brains smeared all over a baseball bat you found a ways back. Strength is not your greatest asset, however. You are surrounded, and you know that for every Zombie you take down with a bash of the bat, more are right behind, and more importantly, in front of you. Having been exiled from New Canton, you must find your own way in this hellish world.
*set strength +7
*choice
#This Runner 5 is a warrior: Try to fight and collect as much as you can hold.
Preferring the brave fighter approach, you raise your baseball bat in a two-handed grip, and smash anything, especially heads, that come in contact with it. Speed is still winning over your strength, but your legs are really starting to tire from such a long run. New Canton sent you with only bread and water for sustance, anything else you had to find on the way and that's not very much.
As the never-ending hored of Zombies approach you, you feel the need to break away from this fight, else you slow down and die.
*choice
#Turn back and head in the direction of New Canton.
You know you can’t head back to New Canton so soon. You know they wouldn’t simply let you back in, even though the reason they exiled you was because you didn’t like Major De Santa’s strict rules. With a birst of speed, you turn around, circling around away from the approaching Zombie horeds. Slowing down, you observe the area around you.
*choice
#Head east to what looks like an abandoned building.
At a fast walk now, you head east to a building in the distance. The constant Zombie growling reminds you why you regret not sticking to the major’s plans. You’re alone, and that could cost you your life. Worse, this is late, when Abel Township would certainly not raise their gates for a person they wouldn’t have the utmost trust for. No, this Runner 5 is a loner. Hopefully not for long, though.
Should you investigate Abel Township more, or forge your own path?
*choice
#Alone, scared, and surrounded by more than one Zombie hored? Do whatever it takes to get into Abel.
This choice under construction.
*finish
#This Runner 5 is cunning: Sneak around the zombs.
Since these Zombies are as slow as a turtle, it isn’t hard for you at all to sneak away from them. Since you are alone, you have only yourself and the fridgad wind distracting the Zombies enough so that you can quietly walk away. They happily ignore you as you go on your merry way. What to do now…
I’ll fix typos later. I get an error when I select the fight option. Also, the sneak option is not present, and I’m trying to figure out why. I think I know what the error for the fight option is for, but if I put it under *choice, I get an error telling me that the language expects choice body. So where can I put the code to raise Strength by seven for the fight option?
Also, I’m trying to figure out how to go back to the “turn back and head to New Canton” choice when selecting the cunning option. It’s supposed to say that I sneak away, then give me the options for either trying Abel or going alone, though I didn’t make that second option available yet.
Thanks for any help, this is my first time with Choicescript.