I am trying to get the click on control colors thing down using the sci1.1 template. I think I have it all figured out but there is one piece that I don't know what it is... and it isn't quite working.
So in the message file, we add a new Noun. In this case N_PLATFORM and save it (in this case noun 3)
Then we go down to the Message details and select our noun, select the verb and enter the message text and hit commit. All other values condition, sequence, talker are left at their default.
Next we go to our room script. It looks like we need to use the cueobj script so that is done.
We need to create an instance of feature, and set a few values
(instance platform of Feature
(properties
x 140
y 156
noun N_PLATFORM
onMeCheck $0002
)
)
The x and y values give a point of reference, so if Ego isn't facing the looked at area, then he will turn. The noun is defined as our messages noun and the control color is set to Navy.
Now, all that is left is basically to init the platform instance.
(platform:init()setOnMeCheck(1 2)) // KQ6 init's the instances a bit differently, but that syntax causes an oops error.
//(platform:init()setOnMeCheck(1 $0002))
Now looking at the feature class in the cueobj script, the first parameter is used by the setonmecheck method. It looks like $6789, 2, 1 are the available option. Everything I have seen in SQ5 source so far is showing param1 as 1 so that is what I used. But I don't really understand I guess what param2 does in all of this... and it makes me wonder if whatever it is I am missing is what is keeping this from working like it should
// From cueobj.sc
(method (setOnMeCheck theOnMeCheck theOnMeCheck_2)
(var temp0)
(switch (theOnMeCheck)
(case $6789
= onMeCheck theOnMeCheck
= state (& state $fffb)
)
(case 2
= onMeCheck theOnMeCheck_2[0]
= state (& state $fffb)
)
(case 1
= temp0 (= onMeCheck 0)
(while (< temp0 (- paramTotal 1))
= onMeCheck (| onMeCheck theOnMeCheck_2[temp0])
++temp0
)
= state (| state $0004)
)
)
)