sandyrepope Apprentice Adventurer
   Age : 60 Joined : 10 Jun 2008 Posts : 35
 | Subject: 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 |
|
catventure Admin Adventurer

   Age : 56 Joined : 08 Jun 2008 Posts : 132 Location : UK Humor : Enjoys a laugh!
 | Subject: 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. |
|
sandyrepope Apprentice Adventurer
   Age : 60 Joined : 10 Jun 2008 Posts : 35
 | Subject: Re: adjusting score Sun Aug 03, 2008 8:21 pm | |
| When I put it in script two it started working.
Thanks Sandy |
|