I'm trying to make a ZORK (txt) RPG. But I don't really have a starting point. The first thing that comes up is...
You find yourself at a fork in the road.
Left or Right
But I don't know what to do in the edit box. I want to set it up like...
CODE
If (a = "right")
{Label1->Caption = "You find yourself at a stream";
Label2->Caption = "Cross stream";
Label3->Caption = "Follow Stream";}
else
{Label1->Caption = "You come to a town";
Label2->Caption = "Go into town";
Label3->Caption = "Go around town";}
But from there on I'm stuck. I don't know how to get the edit box to reconize it as text either.
CODE
a = Edit1->Text.To
Then I'm lost. Or do I just leave it as text? Or do I type Text.ToText; ?
And once I've ran through the first code, what do I type for the next set? Would I just type
CODE
if (a = "Cross stream")
{Label1->...
Label2->...
Label3->...}
if (a = Go into town)
{Label1->Caption = .....
Label2......
Label3......}
if (a = "Follow stream)
......................
if (a = "Go around town)
...................
Not a school assignment, so it doesn't have to be
that neat looking. The code can get a little sloppy looking. (As long as it doesn't affect the performance)