Posted: Sun Mar 16, 2008 3:40 pm
You mean like variable constantsAhruman wrote:Maybe we should add a third one for “really really random” things…
For information and discussion about Oolite.
https://bb.oolite.space/
You mean like variable constantsAhruman wrote:Maybe we should add a third one for “really really random” things…
Code: Select all
{
"0 141" = {
"description" = "This planet is a dull place. The headquarters of shipbuilder Taranis Corp is in high orbit above it.";
"station" = "taranis_sysstation";
"script_actions" = (
"checkForShips: taranis",
{
conditions = ("shipsFound_number lessthan 1");
do = ("addShipsAtPrecisely: taranis 1 pwm 147000 -30000 60000");
},
"checkForShips: taranis_frigate",
{
conditions = ("shipsFound_number lessthan 1");
do = (
"set: taranis_frigate_d100 [d100_number]",
{
conditions = ("taranis_frigate_d100 equal 1");
do = ("addShipsAtPrecisely: taranis_frigate 1 pwm 145000 -29000 60500");
},
{
conditions = ("taranis_frigate_d100 equal 2");
do = ("addShipsAtPrecisely: taranis_frigate 1 pwm 250024.81 25.77 -102991.52");
},
{
conditions = ("taranis_frigate_d100 equal 3");
do = ("addShipsAtPrecisely: taranis_frigate 1 pwm 178372.66 -9495.88 142342.08");
},
{
conditions = ("taranis_frigate_d100 equal 4");
do = ("addShipsAtPrecisely: taranis_frigate 1 pwm 41048.76 33024.20 -3352.26");
},
{
conditions = ("taranis_frigate_d100 equal 5");
do = ("addShipsAtPrecisely: taranis_frigate 1 pwm 178919.30 -39904.60 73889.03");
},
"reset: taranis_frigate_d100"
);
},
"checkForShips: taranis_billboard",
{
conditions = ("shipsFound_number lessthan 1");
do = ("addShipsAtPrecisely: taranis_billboard 1 pwm 134090.75 -21957.00 55025.19");
},
);
};
}
Code: Select all
{
conditions = ("taranis_frigate_d100 lessthan 2");
do = ("addShipsAtPrecisely: taranis_frigate 1 pwm 145000 -29000 60500");
else = (
"subtract: taranis_frigate_d100 1",
{
conditions = ("taranis_frigate_d100 lessthan 2");
do = ("addShipsAtPrecisely: taranis_frigate 1 pwm 250024.81 25.77 -102991.52");
else = (
"subtract: taranis_frigate_d100 1",
{
conditions = ("taranis_frigate_d100 lessthan 2");
do = ("addShipsAtPrecisely: taranis_frigate 1 pwm 178372.66 -9495.88 142342.08");
else = (
"subtract: taranis_frigate_d100 1",
{
conditions = ("taranis_frigate_d100 lessthan 2");
do = ("addShipsAtPrecisely: taranis_frigate 1 pwm 41048.76 33024.20 -3352.26");
else = (
"subtract: taranis_frigate_d100 1",
{
conditions = ("taranis_frigate_d100 lessthan 2");
do = ("addShipsAtPrecisely: taranis_frigate 1 pwm 178919.30 -39904.60 73889.03");
},
);
},
);
},
);
},
);
},
UPS could be to large to start with. You could look here:3. If I have to use the standard "mission screen" set-up, what happens if two missions are offered at the same time? (I already have a mission beginning at Taranis.)
4. What would be the best OXP to look at for guidance? (I'm guessing UPS.)
No, you can't use anything else but the mission screen.Roberto wrote:OK, I have two things left to do. The first of these may be fairly easy or frustratingly difficult - I don't know yet. Basically, I want players to be randomly offered Taranis-related delivery jobs in Lerelace and the surrounding systems. Nothing fancy - just "deliver item X to location Y within Z days". Because they'll be so simple, ideally I'd like these to appear on the "Carrier Market" screen. My questions:
1. Is it possible to use this screen?
2. If so, can I do it without replacing any of the in-game cargo contracts?
3. If I have to use the standard "mission screen" set-up, what happens if two missions are offered at the same time? (I already have a mission beginning at Taranis.)
4. What would be the best OXP to look at for guidance? (I'm guessing UPS.)
Code: Select all
<key>taranis_delivery_offer</key>
<string>Commander [commander_name], would you be willing to make a delivery on behalf of Taranis Corp? If you could deliver [taranis_delivery_item] to [taranis_delivery_planet] within [taranis_delivery_time], the company would pay you [taranis_delivery_fee].</string>
Code: Select all
<key>level_one_mark_advert</key>
<string>mission_random_hits_seedy_spacebar_name\n--------------------------------------------------------------------------------------------------------------------------\nPOSTED BY : mission_random_hits_assassination_board_poster_title %R mission_random_hits_assassination_board_poster_name from the mission_random_hits_assassination_board_poster_system System.\nSUBJECT : [mission_random_hits_assassination_board_subject]\n\nmission_random_hits_assassination_board_part1 mission_random_hits_mark_first_name mission_random_hits_mark_nick_name [mission_random_hits_mark_second_name] is mission_random_hits_mark_race_part1 [mission_random_hits_mark_race_part2] [mission_random_hits_assassination_board_part2]. mission_random_hits_assassination_board_part3 mission_random_hits_mark_ship_description [mission_random_hits_mark_ship], mission_random_hits_assassination_board_part4 mission_random_hits_mark_system System. mission_random_hits_assassination_board_part5 mission_random_hits_mark_fee Credits mission_random_hits_assassination_board_part6 mission_random_hits_mark_gender mission_random_hits_assassination_board_part7\n\nREPLIES TO : [mission_random_hits_assassination_board_address1] [mission_random_hits_assassination_board_poster_name]@[mission_random_hits_assassination_board_address2]\n--------------------------------------------------------------------------------------------------------------------------\nCurrently viewing [assassination_board_job_name] mission_random_hits_page of 3. [assassination_board_easykill]</string>