SCI Programming.com
Welcome, Guest. Please login or register.
June 29, 2017, 06:46:44 AM
Home  >  Tutorials  >  Chapter 9: Prepare the Text for our Point and Click Defaults
Chapter 9: Prepare the Text for our Point and Click Defaults

And to think that prior to Chapter 3 of this tutorial, you may have never before made use of any text resources, but now and when we actually get to coding the rooms, they are going to become your very best friends.


Text Resources for Our Inventory

Now, I realise that without actually seeing the code that is going to be accessing this resource, you might not believe that we are actually going to use them, trust me on this one, I am pretty sure that you will. If not, you can always come in later and change these to something else if you don't like what I have everything set up to do. This text resource is going to handle most of the default clicks, or clicks on things that aren't handled by the room's scripts, mainly clicks on ego help, and whatnot.

Open up a new text resource and let's begin with our help statements.


  1. Welcome to %s . A point and click adventure.
  2. To control your characters interactions, select the disired action from the action menu. Walk, talk, look, get are all represented by icons and clicking on one will change your cursor accordingly.
  3. To use an inventory item, you must first open the inventory screen and select it from the items you are carrying. Clicking on the backpack icon will open the inventory screen.
  4. The system menu allows you to save, load, restart, quit, or change your speed and volume settings. You can reach the system screen by clicking on the center blue sphere of the menu graphic.
  5. To return the menu to actions simply click the smaller blue sphere to the left of the system menu option.
  6. Hope this has been helpful, enjoy playing %s!

Just to make sure, you have plenty of room to add in more help messages if you feel you need them, we are going to go ahead and add in a few empty lines just so you won't have to rearrange things in the future. The next line that we are actually going to start using is going to be line 10, so if you want, go ahead and just enter a space or whatever in lines 6 through 9 just in case.

Now, let's go ahead and add in a few lines for random "action" clicks on the ego.


  1. What a handsome fellow!
  2. Vanity is never an attractive trait.
  3. That's strange, I don't remember ever putting these clothes on.
  4. Talking to yourself has rarely ever been considered a good sign.
  5. Do you really think that you would find yourself that interesting?
  6. "Hi there me, How am I doing?"
  7. You sir, are no Michael Jackson, keep yoour hands off yourself.
  8. When I think about you I touch myself.
  9. You quickly adjust your clothes. Afterall who knows, there may be some fly young hotties in the next room.
  10. Whatever you are trying to do to yourself, knock it off
  11. I'm not really sure if I would want to use that on myself.
  12. Oh yeah, stick it my ear. That's a good idea.
  13. Your brilliant use for that in this way clearly illustrates that you are in a league of your own. So much so, that I am not even going to allow it, try something else.
  14. I am not even sure how I could use that there.
  15. Hmm, interesting idea... but I think we would need a permit.

That takes care of all of our clicks on the ego and random item clicks in room, I have the point and click script set up to randomly pick from three possible responses for each action, look, talk, hand, items. Now, we need to handle the texts for our "system" options, basicly the statements that are printed along with the quit and restart dialogs.


  1. Are you serious? You really want to start all the way back at the beginning again?
  2. Do you really want to quit?

That is all we need out of this text resource for our tutorial, save this as number 950.

Now, While we are creating texts, let's go ahead and start off with Room 1's text resource. As the point and click script is currently written, you will need a seperate text resource for each room. The room number should correspond to the text resource number, so room 1 will require text resource 1.

The default clicks handled by the point and click script require that line 0, 1, and 2, be set up as the rooms default clicks (or clicks on stuff that is not handled in the rooms script specifically) as the following actions look, talk, and get.

So for instance, clicking on nothing with the look cursor will print text resource line 0, the general description of the room.

Open up another new text resource and enter this stuff.


  1. You find yourself standing in the great white void of room 1's nothingness.
  2. Yelling into the void, you are greeted with an eerie silence, if only there was someone here to talk to.
  3. Reaching out, you find, as many philosopher's have over the centuries, just how hard it is to grasp true nothingness.

Since this resource is going to be used for room 1, save it as resource number 1.

Alright, that is that, we now have two text resources for our point and click room. Remember 950 holds all of the texts which are needed for the piont and click menu itself, while text resource 1 holds all of the texts for room 1 specifically. As you add in more rooms, room 2 will try to access text resource 2 and so on.

That sums up our creation of our Point and Click Text resources!
<< Prev Back to Tutorials Next >>

The SCI Programming Community
Copyright © 2007 - 2017, All Rights Reserved.