TAB - thinBasic Adventure Builder

T.A.B. is an interactive fiction/text adventure program for Windows in Alpha Development and made with thinBasic.
HomeFAQSearchRegisterLog in
Latest topics
» TAB Alpha Version 47 Available
Wed Dec 24, 2008 7:35 pm by catventure

» TAB Alpha Version 46 Available
Fri Nov 28, 2008 5:02 pm by catventure

» Long Nouns and Synonyms
Tue Oct 21, 2008 5:36 pm by catventure

» Container Scripts
Fri Oct 17, 2008 4:28 pm by catventure

» TAB Alpha Version 45 Available
Mon Oct 13, 2008 3:24 pm by catventure

» Greater functionality with a time script
Sat Oct 11, 2008 7:50 am by catventure

» TAB Alpha Version 44 Available
Fri Oct 10, 2008 4:09 pm by catventure

» Container Object error
Wed Oct 08, 2008 4:27 pm by catventure

» IF Comp 2008 Entries
Wed Oct 01, 2008 7:19 pm by catventure

 

door example

View previous topic View next topic Go down 
AuthorMessage
sandyrepope
Apprentice Adventurer


Gender:MalePiscesRat
Age : 60
Joined : 10 Jun 2008
Posts : 35

PostSubject: door example   Sat Aug 02, 2008 8:05 pm

I got the door working by making a two room example. The problem is that I never did figure out how to make it so that the player can only unlock/lock the door if he is carrying the key.

I'll keep working on that.

Catventure, I was wondering.... after I get the example working (player carrying key) would you like to see it? If so, where could I send it and do I need to zip it?

If you would like to look at it now, it would be ok with me.

Thanks
Sandy
Back to top Go down
catventure
Admin Adventurer


Gender:MaleLeoDragon
Age : 56
Joined : 08 Jun 2008
Posts : 132
Location : UK
Humor : Enjoys a laugh!

PostSubject: Re: door example   Sat Aug 02, 2008 8:33 pm

Hi Sandy,

I think I may have made a mistake in the door code in the other post...

"here4" maybe should read "here3" if object 3 is the key...

Anyway better check your game code for that.

here3 - means if the player is carrying or wearing the key or if the key is in the current room

change 'here3' to 'carried3' if the key must specifically be carried by the player to unlock/lock the door.

In that case you must also change the 'absent3' condition to 'notcarr3' in the entries for both rooms as well.

Hopefully this will solve the door problem once and for all - but if you still have problem just post your "door coding entries" below and I will see if I can detect why.

Cheers,
Phil.
_________________
http://tab.thinbasic.com ; Home of the TAB I.F. project.
Back to top Go down
catventure
Admin Adventurer


Gender:MaleLeoDragon
Age : 56
Joined : 08 Jun 2008
Posts : 132
Location : UK
Humor : Enjoys a laugh!

PostSubject: Re: door example   Fri Aug 08, 2008 9:55 am

The problem with the door code was found to be a flaw in the #else# coding and was fixed in Release 40.2 on 6th August.

The door code now works correctly.

Closing this topic.

catventure
_________________
http://tab.thinbasic.com ; Home of the TAB I.F. project.
Back to top Go down

door example

View previous topic View next topic Back to top 
Page 1 of 1

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