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
light source I_icon_minitimeToday at 9:54 am by catventure

» How to engage in intelligent conversation with NPCs?
light source I_icon_minitimeYesterday at 9:01 pm by catventure

» refine player-available gender/name options
light source I_icon_minitimeMon Nov 18, 2024 6:04 pm by catventure

» Incubation pt 1
light source I_icon_minitimeSun Nov 17, 2024 4:22 pm by catventure

» Happy New Year 2024!
light source I_icon_minitimeSun Dec 31, 2023 4:04 pm by catventure

» TAB Version 71
light source I_icon_minitimeMon Aug 21, 2023 12:17 pm by catventure

» TAB Version 70
light source I_icon_minitimeSun Oct 02, 2022 1:49 pm by catventure

» TAB Version 70
light source I_icon_minitimeFri Sep 30, 2022 10:23 pm by catventure

» TAB Version 70
light source I_icon_minitimeMon May 23, 2022 4:08 pm by catventure


Share | 
 

 light source

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


Male
Number of posts : 35
Age : 76
Adventure Points : 0
Registration date : 2008-06-10

light source Empty
PostSubject: light source   light source I_icon_minitimeFri Aug 22, 2008 2:41 pm

Is there a way to switch the light source on and off? What I mean is how to have a light source such as a torch and then when it is used up have it changed to not being a light source.

Thanks
Sandy
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

light source Empty
PostSubject: Re: light source   light source I_icon_minitimeFri Aug 22, 2008 5:14 pm

Hi Sandy,

I'm afraid there are no action commands present in TAB yet for changing the lightsource status of an object.
In other words if you assign a lightsource attribute to an object in the Object Editor then there is not a way to turn that off during the game.
However, this is something new I can think about implementing for the next release...

One thing you can do is to remove the "lantern" from the game when it is used up by using an action such as 'destroyX' or 'objlocX=0'

Alternatively you could create 2 lantern objects.

For instance a 'lit lantern' and an 'unlit lantern' and use the procedure similar to the "torch" example in the below forum topic.
This requires a bit of extra coding though so please read it carefully.

https://adventure.forumotion.com/general-forum-f1/darkness-and-lightsource-t21.htm

Regards,
catventure.
Back to top Go down
https://adventure.forumotion.com
 

light source

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: