TAB - thinBasic Adventure Builder
Would you like to react to this message? Create an account in a few clicks or log in to continue.

TAB - thinBasic Adventure Builder

T.A.B. is an interactive fiction/text adventure program for Windows and made with thinBasic.
 
HomeLatest imagesSearchRegisterLog in
Latest topics
» How was it done? Implementing in-game clocks
Multiple light sources requiring "lighting" I_icon_minitimeToday at 9:54 am by catventure

» How to engage in intelligent conversation with NPCs?
Multiple light sources requiring "lighting" I_icon_minitimeYesterday at 9:01 pm by catventure

» refine player-available gender/name options
Multiple light sources requiring "lighting" I_icon_minitimeMon Nov 18, 2024 6:04 pm by catventure

» Incubation pt 1
Multiple light sources requiring "lighting" I_icon_minitimeSun Nov 17, 2024 4:22 pm by catventure

» Happy New Year 2024!
Multiple light sources requiring "lighting" I_icon_minitimeSun Dec 31, 2023 4:04 pm by catventure

» TAB Version 71
Multiple light sources requiring "lighting" I_icon_minitimeMon Aug 21, 2023 12:17 pm by catventure

» TAB Version 70
Multiple light sources requiring "lighting" I_icon_minitimeSun Oct 02, 2022 1:49 pm by catventure

» TAB Version 70
Multiple light sources requiring "lighting" I_icon_minitimeFri Sep 30, 2022 10:23 pm by catventure

» TAB Version 70
Multiple light sources requiring "lighting" I_icon_minitimeMon May 23, 2022 4:08 pm by catventure


Share | 
 

 Multiple light sources requiring "lighting"

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


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

Multiple light sources requiring "lighting" Empty
PostSubject: Multiple light sources requiring "lighting"   Multiple light sources requiring "lighting" I_icon_minitimeMon Sep 28, 2009 10:21 pm

HI Everyone!

Ive looked through most of the historical entries here but I can't see anything to meet my problem. By the way, Ive just joined after many a long year away in the wilderness, previously I was a CAT adventure creator - but very low level.

Ok - The issue

I have a building which has Gas lighting in each room. The gas lightig will eventually serve 2 purposes (1) light - of course and (2) The source of coal gas inhalation which could be fatal to the player. Im planning a number of rooms where the gas will need to be ignited and will there after be swopped for a light source.

In your opinion WHAT is the most efficient way of doing this ?
Would it be by creating a flag for each room and moving a (static) LIT GAS LAMP (OBJ_Light Source) to wherever the player is with an appropriately loaded flag
OR
Is ther a better way

Gareth
Back to top Go down
catventure
Admin Adventurer
catventure

Male
Number of posts : 410
Age : 72
Location : UK
Humor : Enjoys a laugh!
Adventure Points : 77
Registration date : 2008-06-08

Multiple light sources requiring "lighting" Empty
PostSubject: Re: Multiple light sources requiring "lighting"   Multiple light sources requiring "lighting" I_icon_minitimeTue Sep 29, 2009 4:03 pm

Hi Gareth,

A big welcome to the TAB forum. Thanks for trying the program out and great news that you are considering making a text adventure using it!

Your idea of moving a static lit gas lamp to a room when the gas has been ignited sounds pretty good... I think it possible you might need to use a few flags (one to represent each room so as to flag whether the room has been lit or not) and a coding entry or two so as to move the static lit gaslamp only to a room in which it has been ignited...

Another way would be to mention the gas lamp using a Script 1 entry text which would be appended to the location description instead of using actual objects for the gaslamp... but even in this case I think you would still need to use flags to record the state of the individual gas lamps.

eg:
Script 1
=====
[start]room=1#flag1=0[acts]cmessAn unlit gas lamp is here.#else#room=1#flag1=1[acts]cmessA lit gas lamp is here.[end]

Similar entries for other rooms.

You would need RESPONSE entries to light the lamp for each room and set the corresponding flag when successful...

You could then set another flag with a value for some sort of 'countdown' effect before the gas became dangerous etc... running in Script 2.

That's all I can think of right now - but I will give some more thought to it. In the meantime don't hesitate to let me me know if you come up with anything suitable or have any further questions etc. either through this forum or the email group. If it is decided that a new action or condition is required I will do my best to implement it for you if it helps to aid you in solving this puzzle.

Best wishes,
catventure (Phil)
Back to top Go down
https://adventure.forumotion.com
garethfx
Experienced Adventurer


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

Multiple light sources requiring "lighting" Empty
PostSubject: Re: Multiple light sources requiring "lighting"   Multiple light sources requiring "lighting" I_icon_minitimeTue Sep 29, 2009 7:12 pm

Many many thanks Phil

Yep Im delighted to be back in the fold as it were
Your response was not only timely but greatly appreciated. Im, as we speak digging about some of the examples and planning the "lamp" situation.

The code was of great help - plus the idea of the timer for getting the lamp lit!or be gassed - It had crossed my mind of how I can give the player a shot of adrenalin !

Ill certainly put that in....

many thanks again
Gareth
Back to top Go down
Sponsored content




Multiple light sources requiring "lighting" Empty
PostSubject: Re: Multiple light sources requiring "lighting"   Multiple light sources requiring "lighting" I_icon_minitime

Back to top Go down
 

Multiple light sources requiring "lighting"

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: