TAB - thinBasic Adventure Builder

T.A.B. is an interactive fiction/text adventure program for Windows and made with thinBasic.
 
HomeFAQSearchUsergroupsRegisterLog in
Latest topics
» TAB Version 66 Available
Mon Sep 26, 2016 12:02 pm by catventure

» TAB Version 65 Available
Mon Feb 23, 2015 12:04 pm by catventure

» Incubation pt 1
Wed Apr 24, 2013 9:24 am by Kabrinski

» Charecter movements - doors
Wed Mar 20, 2013 2:55 pm by garethfx

» Member feedback on game planning
Sun Mar 03, 2013 1:47 pm by garethfx

» Still alive - just!
Thu Feb 28, 2013 11:34 am by catventure

» TAB 64 crashes ...
Mon Aug 20, 2012 11:31 am by acko

» Idea on addition to object being container
Sat Aug 18, 2012 3:49 pm by catventure

» sizex=y action ...
Thu Aug 09, 2012 11:29 am by catventure


Share | 
 

 Charecter movements - doors

View previous topic View next topic Go down 
AuthorMessage
garethfx
Experienced Adventurer


Male
Number of posts : 85
Age : 59
Location : Wales
Humor : Nothing like having a good laugh - oh and a pint!
Adventure Points : 53
Registration date : 2009-09-28

PostSubject: Charecter movements - doors   Sun Mar 17, 2013 11:45 am

Hi Phil.

Just a small question - advice.

I love doors in games but Ive noticed (unless Ive not done it right) that charecters alowed to wander freely in certain areas (we'll say lacations 50 to 70, room locations in a house) . If teh doors require the player to open and close these the charector will not travel these areas themselves as though they were able to open and close them. Is there a way around this in code that can allow a charector to move amid rooms dealing with the doors as if in real life (or appear to be able to do it as in real life). Or would it be best practice just to remove the "door" transitions from the Response table (i.e.#connect1=northto2#connect2=southto1 etc).
Its not a big deal not to have doors to interact with it just a personal thing I suppose
Back to top Go down
View user profile
catventure
Admin Adventurer
avatar

Male
Number of posts : 376
Age : 64
Location : UK
Humor : Enjoys a laugh!
Adventure Points : 52
Registration date : 2008-06-08

PostSubject: Re: Charecter movements - doors   Tue Mar 19, 2013 9:12 am

garethfx wrote:

I love doors in games but Ive noticed (unless Ive not done it right) that charecters alowed to wander freely in certain areas (we'll say lacations 50 to 70, room locations in a house) . If teh doors require the player to open and close these the charector will not travel these areas themselves as though they were able to open and close them. Is there a way around this in code that can allow a charector to move amid rooms dealing with the doors as if in real life (or appear to be able to do it as in real life). Or would it be best practice just to remove the "door" transitions from the Response table (i.e.#connect1=northto2#connect2=southto1 etc).
Its not a big deal not to have doors to interact with it just a personal thing I suppose

Hmm... Good question Gareth Smile
I suppose that if you ALLOWED the connections between the rooms containing doors in the Locations Editor that the characters will then not be restricted by any such "closed doors" between adjacent rooms. This would therefore solve your character moving problem.

You could then handle the Player's movement for a closed door exit in a room by setting movement restrictions if the player tried to go that way by handling that in the RESPONSES list and using of course a FLAG! So for example, if you had a "closed door leading north" in your room description a character may well travel that way unhindered if it were travelling "randomly" - however the player would need to open the door initially before the access was available for him/her in that direction - again use of flag(s) required.

A drawback would be the exit listing would state an exit led north (even though it were blocked to the player by a closed door). Then again you get round that too by turning exits off globally with the "exitsoff" action and handle describing the exits in the location/room descriptions themselves. Something to think about...

====

You are in a room. A door leads north.

Exits lead: north and south.

The butler leaves moving north.

>go north

The door is closed.

>open door

OK.

>go north

You are in another room. A door leads south.

Exits lead: east and south.

The butler travels south.

============


Regards,
Phil.

_________________
http://tab.thinbasic.com ; Home of the TAB I.F. project.
Back to top Go down
View user profile http://adventure.rpgdynasty.com
garethfx
Experienced Adventurer


Male
Number of posts : 85
Age : 59
Location : Wales
Humor : Nothing like having a good laugh - oh and a pint!
Adventure Points : 53
Registration date : 2009-09-28

PostSubject: Re: Charecter movements - doors   Wed Mar 20, 2013 2:55 pm

Ive made a copy of the game x 2 as the near final versions (minus graphics). I thought about thisin the same way you did here, leaving the locations routes in to allow the charecter to travel and then use the individual charecter movement command to add a little more control.
The issue of the Location report stating that there is a exit N - E etc may not be a problem as technically there ARE exits there, just a door in the way controlled by the Response editor and some flags.
If secret doors are in play and a charecter needs to appear in the secret room I suppose I can use a flag and transport them there and out again with some commands.

We'll see what transpires with some trial and error

Thanks Phil
Back to top Go down
View user profile
Sponsored content




PostSubject: Re: Charecter movements - doors   

Back to top Go down
 

Charecter movements - doors

View previous topic View next topic Back to top 

 Similar topics

+
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
TAB - thinBasic Adventure Builder :: TAB FORUMS :: General Forum-
Jump to: