SRL Archive - OSR Help

Simba Text Rpg


wantonman

2012-04-15 17:42:32

Hello i am interested in making a text adventure and id prefer it on simba… may someone give me advise as to how to display and also have input and stuff for commands???

Abu

2012-04-15 17:43:29

I'm not sure what you asking for?

wantonman

2012-04-15 17:44:47

A text rpg… what function can i use that will wait for me to enter a command… i havent found any…

Sex

2012-04-15 17:46:21

You aren't being very clear. What method is being used to enter a command? You can make a form with a text box and a canvas or something?

Abu

2012-04-15 17:46:29

From: wantonman
A text rpg… what function can i use that will wait for me to enter a command… i havent found any…


Check the Simba Documentation and the SRL5 Documentation

wantonman

2012-04-15 17:55:25

@sex yes but would that be parcticle as to an entire text rpg? is there any simple console commant-type interface i can use???

what if i have two option go left or go right? simba needs to either accept left or right… and thats it… c++ might be better huh?

ShawnjohnSJ

2012-04-15 17:55:56

You will want to learn everything about Forms and Events. The way you will "wait" for commands is to wait for events.

By the way, reading the SRL docs won't help you with making a text-based rpg.

Sex

2012-04-15 19:30:58

From: wantonman
@sex yes but would that be parcticle as to an entire text rpg? is there any simple console commant-type interface i can use???

what if i have two option go left or go right? simba needs to either accept left or right… and thats it… c++ might be better huh?


No, you would be better off using a different language. We don't have anything like curses.

Rezozo

2012-04-15 20:50:17

I don't know about making it through simba, as regular readln's do not function, but text forms do.
You should make it the old fashion - pascal way! They are really time consuming, boring and copy-pasting(ish), but they get the job done! :)

nickrules

2012-04-15 20:52:44

It's not too practical in simba, but by no means impossible, or all that challenging (though perhaps a bit tedious). Anyways, you could use
something := ReadLn()
case something of
1://blah
2://blah
3://blah
 while not iskeydown() do wait(100) //then have various options that each key corresponds to
or a form, which you can learn how to make over in the scripting tutorials section.

Daniel

2012-04-17 06:58:49

A text RPG (a.k.a Multi-User Dungeon (M.U.D.))? Very possible in almost every language :)

Google should provide you with a wealth of examples in the Pascal (and others) programming language (which you can later apply to Simba).

Mark

2012-04-17 08:35:38

Use the new delphi xe2. Pascal was born from delphi so language is just the same has an easy to use IDE providing fast production of simple apps and games.
With this program you could just use an edit bot and keep checking it for entered text.

But I also recommend looking into databases and msql if your wanting to make it online research make notes of what needs to be done and work on one at a time be patient don't look for the easy option have a look on 3Dbuzz I learned a lot when I started from there videos I'm guessing they have a lot more to offer now.
Anyway good luck and don't give up.

Rezozo

2012-04-17 15:55:32

Made a Text adventure game recently, only 3 rooms worth though. Made it through pascal. If you need help, feel free to ask.

Remember though, ALOT of If-Then-Else statements!

m34tcode

2012-04-17 15:57:07

From: joeygupta
Made a Text adventure game recently, only 3 rooms worth though. Made it through pascal. If you need help, feel free to ask.

Remember though, ALOT of If-Then-Else statements!


You could use game states, and make the rooms objects, that way the current game state can be calculated. ;]

less ifs, and more flexible

Oxygen

2012-04-17 16:51:59

I would love to test this if and when you complete this!

Daniel

2012-04-18 07:30:38

From: CRU1Z1N
Use the new delphi xe2. Pascal was born from delphi so language is just the same has an easy to use IDE providing fast production of simple apps and games.
With this program you could just use an edit bot and keep checking it for entered text.

But I also recommend looking into databases and msql if your wanting to make it online research make notes of what needs to be done and work on one at a time be patient don't look for the easy option have a look on 3Dbuzz I learned a lot when I started from there videos I'm guessing they have a lot more to offer now.
Anyway good luck and don't give up.


What?? lol.

NCDS

2012-04-18 08:48:02

You could just as easily use FPC if you'd like to use Pascal, then it's as simple as readln/writeln.

Simba also has the MessageBox and MessageDlg commands which you may find useful.