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 | 
 

 adjusting score

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


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

PostSubject: adjusting score   Sun 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
View user profile
catventure
Admin Adventurer
avatar

Male
Number of posts : 376
Age : 64
Location : UK
Humor : Enjoys a laugh!
Adventure Points : 52
Registration date : 2008-06-08

PostSubject: Re: adjusting score   Sun 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.

_________________
http://tab.thinbasic.com ; Home of the TAB I.F. project.
Back to top Go down
View user profile http://adventure.rpgdynasty.com
sandyrepope
Apprentice Adventurer


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

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

When I put it in script two it started working.

Thanks
Sandy
Back to top Go down
View user profile
Sponsored content




PostSubject: Re: adjusting score   

Back to top Go down
 

adjusting score

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: