Results 1 to 17 of 17

Thread: Simba Text Rpg

  1. #1
    Join Date
    Sep 2010
    Location
    Azeroth
    Posts
    395
    Mentioned
    0 Post(s)
    Quoted
    17 Post(s)

    Default Simba Text Rpg

    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???

  2. #2
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

    I'm not sure what you asking for?

  3. #3
    Join Date
    Sep 2010
    Location
    Azeroth
    Posts
    395
    Mentioned
    0 Post(s)
    Quoted
    17 Post(s)

    Default

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

  4. #4
    Join Date
    Oct 2009
    Location
    Stockton, CA
    Posts
    2,040
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    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?
    Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
    Quote Originally Posted by #srl
    10:45 < Toter> daphil when can get sex anyday I want
    10:45 < Toter> he is always on #SRL
    "A programmer is just a tool which converts caffeine into code"

  5. #5
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

    Quote Originally Posted by wantonman View Post
    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

  6. #6
    Join Date
    Sep 2010
    Location
    Azeroth
    Posts
    395
    Mentioned
    0 Post(s)
    Quoted
    17 Post(s)

    Default

    @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?

  7. #7
    Join Date
    Apr 2007
    Posts
    581
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    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.
    Last edited by ShawnjohnSJ; 04-15-2012 at 09:59 PM.

  8. #8
    Join Date
    Oct 2009
    Location
    Stockton, CA
    Posts
    2,040
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by wantonman View Post
    @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.
    Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
    Quote Originally Posted by #srl
    10:45 < Toter> daphil when can get sex anyday I want
    10:45 < Toter> he is always on #SRL
    "A programmer is just a tool which converts caffeine into code"

  9. #9
    Join Date
    Dec 2011
    Location
    Nj
    Posts
    2,341
    Mentioned
    1 Post(s)
    Quoted
    18 Post(s)

    Default

    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!

    For the basics of the basics of pascal, try my TuT. ||Photoshop Editing ||MapleResourceDung Script || Book a flight! BuySellTrip

  10. #10
    Join Date
    May 2008
    Location
    ;)
    Posts
    576
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    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
    Simba Code:
    something := ReadLn()
    case something of
    1://blah
    2://blah
    3://blah
    Simba Code:
    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.

  11. #11
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default

    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).
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

  12. #12
    Join Date
    May 2007
    Location
    England/Liverpool
    Posts
    1,004
    Mentioned
    9 Post(s)
    Quoted
    106 Post(s)

    Default

    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.

  13. #13
    Join Date
    Dec 2011
    Location
    Nj
    Posts
    2,341
    Mentioned
    1 Post(s)
    Quoted
    18 Post(s)

    Default

    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!

    For the basics of the basics of pascal, try my TuT. ||Photoshop Editing ||MapleResourceDung Script || Book a flight! BuySellTrip

  14. #14
    Join Date
    Dec 2011
    Posts
    733
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    Quote Originally Posted by joeygupta View Post
    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
    My scripts: LunarPlanker
    ---
    My Utilities: Cross Platform, Open Source, SPS Path Generator

    Join the Unoficial SRL Skype Group by clicking here, or visiting this thread.

  15. #15
    Join Date
    Apr 2012
    Location
    Cell beside Joe
    Posts
    102
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

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

  16. #16
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default

    Quote Originally Posted by CRU1Z1N View Post
    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.
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

  17. #17
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •