Basic to Ruby help

So I used to be decent a Q,and GW Basic and would like a little help with some simular formulas.

I will type them up in basic format and if you could help me I will then be able to do most scripting myself.

I know how to use the wizzard to make text with different options but I would like to know how to actully script it so i can convert it to hidden values like starting town is in the same location on the map but dependiing on your race the town is a different toolset ect. .

PS... I am a little rusty so I might misplace certian things like" ; ect.

First would be an print,input if then statement.

10  Print "What is your class?"

20  input "               " =x

30 if x = tribesman then go to line 70

31 if x =Pirate then go to line 90

32 if x = snow clan then go to line 60

40 print "You chose lame fairy"

41 when entering location "liosberg" spawn town =X

42 end

60 print "you chose Snow Clan"

61when entering location "liosberg" spawn town =X

62 end

70 print "you chose Tribesman"

71when entering location "liosberg" spawn town =X

72 end

90 print "you chose Pirate"

91when entering location "liosberg" spawn town =X

92 end

Original thread: https://forums.rpgmakerweb.com/threads/basic-to-ruby-help.23498/