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 | 
 

 Dim lighting but not too dark to see -

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: Dim lighting but not too dark to see -   Wed Sep 30, 2009 9:21 pm

Following on from my last post I thought Id checkout this problem to see it you guys have tried it.......

Basically player enters room. I flagged the room "! dark" but I tried in both script 1 and 2 to make the room have half light so that ......... I just wanted the code to be triggered by the flag 51=0 (a gas lamp not lit or turned on) and allow the player to get some room info

LOC 6 - discribing dim room
[start]room=6#flag51=0#[acts]cmess In the dim light from the street you can bearly make out a large room.[end]

I would then still want the message that "a gas lamp is here " but I think i'll add that bit into the CMESS which will be better as its either lamp turned off - no light Or lamp turned on - room full of gas - no light at this stage. I then hoped that by turning the gas on and lighting, Id swop the gaslamp for a LIT gaslamp - This I can do and Ive coded that without an issue its just the initial access to the room that tripped my up

Ive tried it a few differing ways but I guess Im to close to the error I'm making

Any advice ?

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: Dim lighting but not too dark to see -   Wed Sep 30, 2009 9:49 pm

Hi Gareth,

It seems you've found an anomaly in TAB that I was not aware of! Nobody had reported or tried before. scratch
When TAB describes a location which is flagged as DARK in the Location Editor eg: !DARK ROOM - any exits, objects or characters present are not listed which is correct. However before deciding that they are not to be printed TAB is not checking the SCRIPT1 entries as is normal for any other normal location describe...

Sorry for confusion - but thanks for bringing it to light. I can easily rectify this to make it do so.

When I've done it you could easily amend the System Message 78 to read something like:
"It's quite dark in here. You can't see very well."

And then from Script 1 do what you wanted with the dim room thing-

[start]room=6#flag51=0[acts]cmessIn the dim light you can make out an old, unlit gas lamp.[end]

rem: above entry only gets done when room 6 is dark and flag 51 is equal to 0 (signifying the gas lamp in this room is not lit)

A response entry to deal with lighting the lamp should be made and contain a "flag51=1" action to stop the 'dim light and unlit gas lamp' cmess appearing any more and the "lit gaslamp" lightsource object should be made to appear in that room eg. "createX" action or similar object move action - thus now allowing location 6 normal location description to be revealed due to lightsource being present...

Therefore you would only need ONE "lit gas lamp" OBJECT - but would need to ensure it is placed in all rooms where the relevant flag was set to 1 (gas lamp lit by player in dark room)

I think this will be of help to you - what u think?

UPDATE: I tried it out and worked ok.

It's quite dark in here. You can't see very well.
In the dim light you can just make out an old, unlit gas lamp.

catventure.

_________________
http://tab.thinbasic.com ; Home of the TAB I.F. project.
Back to top Go down
View user profile http://adventure.rpgdynasty.com
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: Dim lighting but not too dark to see -   Wed Sep 30, 2009 10:49 pm

Hi Gareth,

I have posted a TAB revision update (Alpha 51.1) to the TAB site with the bugfix.

http://tab.thinbasic.com/

Cheers,
Phil.

PS. Don't forget to save your work data somewhere safe before deleting old TAB folder Laughing

_________________
http://tab.thinbasic.com ; Home of the TAB I.F. project.
Back to top Go down
View user profile http://adventure.rpgdynasty.com
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: Dim lighting but not too dark to see -   Thu Oct 01, 2009 9:13 am

Gareth, the following exist but I have discovered they are omitted from the "language.txt" file relating to lightsource objects conditions.

objn1lit - is object noun 1 a lightsource?
objn2lit
objn1notlit - is object noun 1 not a lightsource?
objn2notlit
litX - is object X a lightsource?
notlitX - is object X not a lightsource?

Might be of use to you.
They will be added to the file for the next release.

catventure.

PS. The following conditions may also be useful:

dark - true if player in any dark location
notdark - true if player is not in a dark location

_________________
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: Dim lighting but not too dark to see -   Thu Oct 01, 2009 1:15 pm

That was EXCELLENT!

The concept of lit and not lit obs is great - and speeds the programming as well.

Im trying out the the dim room scenario tonight - any issues and I'll feedback - I have downloaded 5.2.

Oh by the way............................ I'm back 2 days and causing trouble already sorry! :-)

Thanks again for the help

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: Dim lighting but not too dark to see -   Sat Oct 03, 2009 5:32 pm

Hi Gareth,

No. It is no trouble. You helped solve an important anomaly which had been undiscovered for some time in TAB so that is a good thing.
Good luck with your light/dark scenario.

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
Sponsored content




PostSubject: Re: Dim lighting but not too dark to see -   

Back to top Go down
 

Dim lighting but not too dark to see -

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: