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
» Happy New Year 2024!
adjusting score I_icon_minitimeSun Dec 31, 2023 4:04 pm by catventure

» TAB Version 71
adjusting score I_icon_minitimeMon Aug 21, 2023 12:17 pm by catventure

» TAB Version 70
adjusting score I_icon_minitimeSun Oct 02, 2022 1:49 pm by catventure

» TAB Version 70
adjusting score I_icon_minitimeFri Sep 30, 2022 10:23 pm by catventure

» TAB Version 70
adjusting score I_icon_minitimeMon May 23, 2022 4:08 pm by catventure

» TAB Version 70
adjusting score I_icon_minitimeSat Apr 30, 2022 11:15 am by catventure

» TAB Version 70
adjusting score I_icon_minitimeSat Apr 23, 2022 2:32 pm by catventure

» TAB Version 68 Update
adjusting score I_icon_minitimeTue Mar 15, 2022 4:18 pm by catventure

» TAB Version 68 Update
adjusting score I_icon_minitimeFri Mar 11, 2022 8:47 pm by catventure


Share | 
 

 adjusting score

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

adjusting score Empty
PostSubject: adjusting score   adjusting score I_icon_minitimeSun Aug 03, 2008 6:15 pm

I can't seem to get the score to change. I'd like to add 10 to the score when the key is picked up.

Here is what I'm trying(key is obj 3):

Quote :
[start]flag3=0#carried3[acts]cmessYour score went up!#score+10#flag3=1[end]

Is there something wrong with this line?

Thanks
Sandy
Back to top Go down
catventure
Admin Adventurer
catventure

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

adjusting score Empty
PostSubject: Re: adjusting score   adjusting score I_icon_minitimeSun Aug 03, 2008 7:17 pm

Hi Sandy,

That code looks OK and should add 10 to the score when the key becomes carried for the first time... which is correct!

Did you put the coding entry into Script 2?

I say this because it will not work in Responses - as they are only for entries that have "words conditions"...

Events without words conditions belong in Script 2 - which is called immediately after doing a Response entry.

Script 1 entries are similar but are only looked at when a location is described...

Please check your entry is in Script 2.

The "score+X" action is working normally.

Regards,
Phil.
Back to top Go down
https://adventure.forumotion.com
sandyrepope
Apprentice Adventurer


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

adjusting score Empty
PostSubject: Re: adjusting score   adjusting score I_icon_minitimeSun Aug 03, 2008 9:21 pm

When I put it in script two it started working.

Thanks
Sandy
Back to top Go down
Sponsored content




adjusting score Empty
PostSubject: Re: adjusting score   adjusting score I_icon_minitime

Back to top Go down
 

adjusting score

View previous topic View next topic Back to top 
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: