So far my planetinfo.plist looks like this....
But the conditional statement doesn't work.. What's wrong?!? The output from stderr is...{
"tianve_pulsar" = {
position = "pwm -537195 138382 995170";
radius = 500;
orientation = "1.0 1.0 0.0 0.0";
texture = "tianve_pulsar.png";
seed = "1 2 3 4 5 6";
"polar_color_factor" = 0.2;
"rotational_velocity" = 10;
};
"0 246" = {
"description" = "Tianve is most noted for its famous pulsar, the top tourist attraction in the North East quadrant. Visiting by Liner is recommended, but rental vessels are available as a cheaper option. Tianve is also home to the famous Elite Combateer 'Rebecca Weston' (Details can be found in the Oolite Novella, Status Quo). Zero-Gee Cricket is banned on Tianve at the request of the native feline population.";
"sky_blur_alpha" = "0.85";
"sky_blur_cluster_chance" = "0.55";
"sky_blur_scale" = "25";
"script_actions" = (
debugOn,
"addShipsAtPrecisely: station-pulsar 1 pwm -527974 137501 979090",
"addShipsAtPrecisely: tianveliner-moving 4 pwm 17900 88100 30100",
"addShipsAtPrecisely: tianveliner-moving 4 pwm -17331 88768 88481",
"addShipsAtPrecisely: tianveliner-moving 4 pwm -266833 112575 523650",
"addShipsAtPrecisely: tianveliner-moving 4 pwm -527974 137501 979090",
"addShipsAtPrecisely: tianveliner-moving 4 pwm -527792 127345 1006790",
"addShipsAtPrecisely: trader 15 pwm -546257 138914 1011767",
"addShipsAtPrecisely: shuttle 10 pwm 17100 88593 30457",
"addShipsAtPrecisely: tianveliner-stationary 1 pwm 17900 88100 30100",
"addShipsAtPrecisely: tianveliner-stationary 1 pwm 17940 88300 30180",
"addShipsAtPrecisely: tianveliner-stationary 1 pwm 17980 88500 30260",
"addShipsAtPrecisely: tianveliner-stationary 1 pwm 18020 88700 30320",
"addShipsAtPrecisely: tianveliner-stationary 1 pwm 18060 88900 30400",
"addShipsAtPrecisely: tianveliner-stationary 1 pwm 18100 89100 30480",
"addShipsAtPrecisely: tianveliner-stationary 1 pwm 18140 89300 30560",
"addShipsAtPrecisely: tianveliner-stationary 1 pwm 18180 89500 30640",
"addMoon: tianve_pulsar",
{
"welcome_to_tianve" = (
{
conditions = (
"status_string equal STATUS_LAUNCHING"
);
do = (
"commsMessage: Welcome to Tianve, Commander!"
);
}
);
},
debugOff
);
};
}
Could somebody write me a nested statement that says "Welcome to Tianve, Commander" when you launch or arrive via witchspace?2008-10-14 21:43:53.406 oolite.exe[688] [script.debug.syntax.badConditional]: SCRIPT ERROR no 'conditions' in {welcome_to_tianve = ({conditions = ("status_string equal STATUS_LAUNCHING"); do = ("commsMessage: Welcome to Tianve, Commander!"); }); } - returning YES.
Cheers,
Drew.