
-----------------------------------
Xarsha
Wed Apr 01, 2015 7:22 pm

Code Skipping/Misinterpreting typing
-----------------------------------
I learned about Turing pretty recently and I'm making a 'choose your own adventure' game. The player is put in a situation, and has four option (a, b, c, and d) of what they want to do. The player is a wizard. They get to choose two spells at the beginning. I'm coding the spell choosing process, and I have the option for the player to ask for detail on a spell by typing 'detail var Spell1 : string
var Spell2 : string
var Mana : int
put "Welcome to the 'Choose Your Own Adventure' Fantasy Game!"
put "In this game, you are a Wizard who is looking for the Tome of High Magic."
put "This Tome is said to contain the greatest magical secrets of the world."
put "You are jus about to set off on your adventure. You may bring a limited number of spells with you."
put "Of course, you have your trusty Migic Missile Spell, but you may bring two other spells from these:"
put "Fireball (a), Lifesteal (b), Teleport (c), and Force Object (d)."
put "Note that ou have a limited amount of mana you can use; you only have 10 mana."
put "each spell has a different mana cost."
put "If you require more information on a spell, type 'detail 

-----------------------------------
Dreadnought
Thu Apr 02, 2015 11:55 am

Re: Code Skipping/Misinterpreting typing
-----------------------------------
get spell1: *

If you want to know more about [tdoc]get[/tdoc] I suggest looking at the documentation. It can be a bit difficult to understand at first, but once you get used to the style its actually very descriptive.
