07-20-2012, 03:50 PM
I think he wants a text-based roleplay game. If so, I would suggest using Console Application.
In the beginning you should have something like this:
[code2=vbnet]Module Module1
Sub Main()
Console.Title = "My Text-Based Roleplay Game"
Console.WriteLine("Hello, there. What is your name?")
Console.Write("My name is ")
Dim Name As String = Console.ReadLine()
Console.WriteLine("That is a nice name!")
'TODO: Continue conversation to make a character.
Console.ReadLine()
End Sub
End Module[/code2]
Just continue the conversation to complete a character creation and then move on to making the actual game. You could use bunch of IF statements to determine what will happen after the player makes decisions. For example:
[code2=vbnet]Module Module1
Sub Main()
Console.Title = "My Text-Based Roleplay Game"
Console.WriteLine("You were walking down the dark street in midnight.")
Console.WriteLine("When all of a sudden, a man with the mask over his face")
Console.WriteLine("pulls out the pistol on you and attempts to rob you.")
Console.WriteLine()
Console.WriteLine("What will you do?")
Console.WriteLine("1) Try to run away.")
Console.WriteLine("2) Attempt to kick the thug to take his pistol.")
Console.WriteLine("3) Give the cash to thug.")
Dim Decision1 As Integer = Console.ReadLine()
Console.WriteLine()
Select Case Decision1
Case 1
Console.WriteLine("The thug starts shooting at you. A second later, you've been shot in the head.")
Case 2
Console.WriteLine("You succeeded punching the thug in the nuts, but failed to take the control over the pistol.")
Console.WriteLine("You've been shot near the heart area and you are bleeding out.")
Case 3
Console.WriteLine("You gave the money to thug, he punched you in the face which made you faint.")
Console.WriteLine("A few hours later, you woke up in the hospital with the broken nose.")
End Select
Console.ReadLine()
End Sub
End Module[/code2]
Hopefully this gave you an idea on how to make a small text-based roleplay game. If you don't want text-based RPG, then ignore this post.
And yeah, I know this is in Request a Video section, but I wrote a small tip, not a whole RPG.
In the beginning you should have something like this:
[code2=vbnet]Module Module1
Sub Main()
Console.Title = "My Text-Based Roleplay Game"
Console.WriteLine("Hello, there. What is your name?")
Console.Write("My name is ")
Dim Name As String = Console.ReadLine()
Console.WriteLine("That is a nice name!")
'TODO: Continue conversation to make a character.
Console.ReadLine()
End Sub
End Module[/code2]
Just continue the conversation to complete a character creation and then move on to making the actual game. You could use bunch of IF statements to determine what will happen after the player makes decisions. For example:
[code2=vbnet]Module Module1
Sub Main()
Console.Title = "My Text-Based Roleplay Game"
Console.WriteLine("You were walking down the dark street in midnight.")
Console.WriteLine("When all of a sudden, a man with the mask over his face")
Console.WriteLine("pulls out the pistol on you and attempts to rob you.")
Console.WriteLine()
Console.WriteLine("What will you do?")
Console.WriteLine("1) Try to run away.")
Console.WriteLine("2) Attempt to kick the thug to take his pistol.")
Console.WriteLine("3) Give the cash to thug.")
Dim Decision1 As Integer = Console.ReadLine()
Console.WriteLine()
Select Case Decision1
Case 1
Console.WriteLine("The thug starts shooting at you. A second later, you've been shot in the head.")
Case 2
Console.WriteLine("You succeeded punching the thug in the nuts, but failed to take the control over the pistol.")
Console.WriteLine("You've been shot near the heart area and you are bleeding out.")
Case 3
Console.WriteLine("You gave the money to thug, he punched you in the face which made you faint.")
Console.WriteLine("A few hours later, you woke up in the hospital with the broken nose.")
End Select
Console.ReadLine()
End Sub
End Module[/code2]
Hopefully this gave you an idea on how to make a small text-based roleplay game. If you don't want text-based RPG, then ignore this post.
And yeah, I know this is in Request a Video section, but I wrote a small tip, not a whole RPG.
Also known as Rocketalypse.
System.out.println("I prefer Java.");
System.out.println("I prefer Java.");