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 | 
 

 Character movements and door

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: Character movements and door   Mon Jul 30, 2012 7:15 pm

Phil - just checking as Im sure Ive seen it somewhere either here or in CAT

Am I right ...... Characters can only move (when their route is placed in the walk=xyz) in directions specified in the 'exit connections' area of the locations data set. They cannot move where the locations are opened in the response table i.e. connect2=southto1

If that is the case is there a work around so that when a player opens a door that a is in the walk area of a character that the character then walks through that "doorway".

hope Ive made that lot clear?


Gareth
Back to top Go down
View user profile
catventure
Admin Adventurer
avatar

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

PostSubject: Re: Character movements and door   Mon Jul 30, 2012 8:05 pm

Hi Gareth,
Yes you are right. If you created a a sensible walk pattern using the exits initially created in the Location Editor then the character will not deviate from that pattern during the game even if you open up a new exit in a room where that character is.

However a random moving character moves according to the latest exits available in a room so might feasibly use the newly opened exit and move through it. Same if a Character is set to 'follow you' and you go through a newly made exit - it will follow you through.

But remember you can change/rewrite the state of a walk pattern during a game using the "pattchar" actions

pattcharn1=X$
pattcharn2=X$

pattcharX=Y$ - change a move pattern of a Character
eg: pattchar1=random ; pattchar3=p,p,p,2,1 ; pattchar2=static ; pattchar16=follow

Also you can enter a special pattern for a random moving character to prevent or prohibit it entering location(s) by creating a pattern in the Character Editor move pattern field eg:

x13x15x

(Char can move anywhere except by any exits leading to rooms 13 or 15)

If you change a pattern to say:

pattchar3=x56x

It means that character will now be set to random but it will be unable to enter location 56.

Hope that helps.

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: Character movements and door   Tue Jul 31, 2012 4:12 pm

Hi Phil.. Yep thought Id got the restriction right.

About the pattchar3 command.
If I set a pattern against this tied to the flag of the door open/close Im assuming that the character will "walk" it fully and stay in its last loaction when the flag shows door closed?


also where is this comman best used in the response table as its the players last action that will trigger it i.e. open door.

Gareth
Back to top Go down
View user profile
catventure
Admin Adventurer
avatar

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

PostSubject: Re: Character movements and door   Tue Jul 31, 2012 5:41 pm

Well if you close an exit to a location that is currently being used as part of a walk pattern by a character - the character will still move thru the exit as if were not closed... This probably you do not want to happen so ehen you close the exit you may need to reset/change or amend the characters pattern to disallow movement that way using the pattcharX command...

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




PostSubject: Re: Character movements and door   

Back to top Go down
 

Character movements and door

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: