Thanks.
script.plist:
Code: Select all
{
"questions" = (
{
conditions = ( "galaxy_number equal 3",
"dockedAtMainStation_bool equal YES",
"missionChoice_string undefined" );
do = ( setGuiToMissionScreen,
"addMissionText: questions_test",
"setMissionChoices: questions_yesno" );
},
{
conditions = ( "galaxy_number equal 3",
"dockedAtMainStation_bool equal YES",
"missionChoice_string equal YES" );
do = ( "resetMissionChoice",
"setMissionDescription: question1" );
},
{
conditions = ( "galaxy_number equal 3",
"dockedAtMainStation_bool equal YES" );
do = ( setGuiToMissionScreen,
"addMissionText: questions_test2",
"setMissionChoices: questions_yesno2" );
},
{
conditions = ( "galaxy_number equal 3",
"dockedAtMainStation_bool equal YES",
"missionChoice_string equal YES" );
do = ( "resetMissionChoice",
"setMissionDescription: question2" );
},
);
}
missiontext.plist:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>questions_test</key>
<string>Is this question thing working?</string>
<key>questions_yesno</key>
<dict>
<key>YES</key>
<string>Certainly looks that way.</string>
<key>NO</key>
<string>Not a chance.</string>
</dict>
<key>question1</key>
<string>Okay, past first question okay</string>
<key>questions_test2</key>
<string>can I ask a second question?</string>
<key>questions_yesno2</key>
<dict>
<key>YES</key>
<string>If you insist.</string>
<key>NO</key>
<string>Not a chance.</string>
</dict>
<key>question2</key>
<string>Okay, past second question okay</string>
</dict>
</plist>