Lesson 3:  Interests & Skill Bar

Additional Interests

How come this behavior didn't mess up what we previously did? Actually 768 and 2327 do the same thing except that one is named 768 to flag it for skills and 2327 is named to flag it for interests. We could have left it alone at 768, but I like to strive for clean coding. And you should as well, because if you don't, somewhere down the road you will run into problems.

OK. Information for Cooking is being stored in Constant 4097:1 and in Constant 4097:2 for Mechanical. But we don't have cooking or mechanical, do we? Change those statements to read for Travel and The 60's, and then change the global calls so they point to our Behavior #4125.

Your behavior should now look like this one:


Fig. 1.40

Now let's go look at Constant 4097 and see what is stated there for 1 and 2.


Fig. 1.41

We've already seen this, but it's still quite Interesting, yes? While we're here, let's add an extra ID for Music. Right click inside the Constants editor window and choose "Add" from the menu.