Text RPG Parser?

Mar 12, 2013 at 8:59pm
I have been learning C++ for some time now, and would like to take a shot at making a text-based rpg. I have made a text rpg with choices (not a parser) but would like to make a text parser for this game. Like:

There is a sword. What do you do?
> Take sword
You took the sword


How would you suggest I go about making something like this?
Mar 12, 2013 at 9:14pm
closed account (Dy7SLyTq)
make a list of verbs you would allow, such as take, attack, look, etc, and look for them as sub strings. theres probably a better way though
Mar 13, 2013 at 5:36pm
I guess I would just like a how-to on it...because I don't really know how to code it.
Mar 14, 2013 at 2:50pm
1
2
3
goto Google.com
cin >> "text based rpg in c++ tutorial"
cout << ManyLinks


A bit of advice: Don't bother with an RPG until you're comfortable with C++ OOP.
Last edited on Mar 14, 2013 at 2:54pm
Topic archived. No new replies allowed.