TAB - thinBasic Adventure Builder

T.A.B. is an interactive fiction/text adventure program for Windows in Alpha Development and made with thinBasic.
HomeFAQSearchRegisterLog in
Latest topics
» TAB Alpha Version 47 Available
Wed Dec 24, 2008 7:35 pm by catventure

» TAB Alpha Version 46 Available
Fri Nov 28, 2008 5:02 pm by catventure

» Long Nouns and Synonyms
Tue Oct 21, 2008 5:36 pm by catventure

» Container Scripts
Fri Oct 17, 2008 4:28 pm by catventure

» TAB Alpha Version 45 Available
Mon Oct 13, 2008 3:24 pm by catventure

» Greater functionality with a time script
Sat Oct 11, 2008 7:50 am by catventure

» TAB Alpha Version 44 Available
Fri Oct 10, 2008 4:09 pm by catventure

» Container Object error
Wed Oct 08, 2008 4:27 pm by catventure

» IF Comp 2008 Entries
Wed Oct 01, 2008 7:19 pm by catventure

 

adjusting score

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


Gender:MalePiscesRat
Age : 60
Joined : 10 Jun 2008
Posts : 35

PostSubject: adjusting score   Sun Aug 03, 2008 5: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


Gender:MaleLeoDragon
Age : 56
Joined : 08 Jun 2008
Posts : 132
Location : UK
Humor : Enjoys a laugh!

PostSubject: Re: adjusting score   Sun Aug 03, 2008 6: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
sandyrepope
Apprentice Adventurer


Gender:MalePiscesRat
Age : 60
Joined : 10 Jun 2008
Posts : 35

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

When I put it in script two it started working.

Thanks
Sandy
Back to top Go down

adjusting score

View previous topic View next topic Back to top 
Page 1 of 1

Permissions of this forum:You cannot reply to topics in this forum
TAB - thinBasic Adventure Builder :: TAB FORUMS :: General Forum-