Lesson 3:  Interests & Skill Bar

Additional Interests

This is the behavior for music, and as you can see it is trying to store music in the container for Travel storage. This won't do at all. Earlier we peeked inside Constant 4097 and saw there were only 4 ID's there and that they were already in use. This music one will have to be stored in Constant 4097:4 which we will create in just a moment. Right now, let's change that 4097:1 to 4097:4.

Select statement 2 where the first reference to the Constant is found and then look at the Data box:


Fig. 1.37

The number you see in Parameter 4 ("129") equals to 4097:1. Put your cursor in Parameter 4 and replace the number 129 with 130, and then look at statement 2.

See what happened? Now you have Constant 4097:2. So, since we want to end up with 4097:4, we're going to have to type 132 into Parameter 4 to get 4097:4. Go ahead and do that.

Next we want to do the same thing to statement #5 for our second reference to the incorrect Constant. Select statement #5, and in the Data box, type in 132 in Parameter 2. Parameter 4 is for relationship to object (what is being stored - music) and Parameter 2 is for the object's attribute (what is going to store - music interest point).

Write that down. 4097:4 is for music.

We also need to fix things up in the Politics behavior, so open up #4128 next, and rewrite it. Make the Constants in the behavior point to 4097:5. Make sure you jot down that 4097:5 is for Politics.

It's time to do some more discovering, so go to good ole Behavior #4109: "Add Points" and open it up making sure it has been rewritten.