Garage - Storing Ships
Posted: Sat Nov 13, 2010 3:38 pm
I've seen several (good) mission ideas where people were asking if there was a way to store the current ship of a player, give them a specific ship for the missions, and after the missions had finished give them back the original ship.
The answer has always been that Oolite does not have a mechanism for 'parking' ships.
I have an idea how this MIGHT be made possible.
preparation
create a shipdata.plist with entries like these :
Also add 1 entry for the temporary ship
create a shipyard.plist for all parked ships :
add 1 entry for temporary ship, techlevel xyz-1
create 2 stations :
Garage1 with techlevel xyz-1
Garage2 with techlevel xyz
Both should not be placed anywhere
end of preparation
----------------------
Mission Start :
player gets screen asking if they are interested to execute the missions :
If yes,
store ship type and equipment using mission vars
store player money temporary
place garage1 station in system and have player dock there automatically
player sells his ship
player buys temporary ship
reset player money to original amount
dock player to main station, remove garage1 station
Player completed mission(s)
store player money temporary
create garage2 station, have player dock there
player sells temporary ship
player buys his original ship type
dock player to main station once they have bought back their original ship
remove garage2 station
restore equipment for original ship (award.equipment)
restore player money
Missions completed = true
Player continues with his original ship and equipment
Would this be possible with the current (1.74.2) / next stable version OXP options ?
Can it be done in a simpler way ?
The answer has always been that Oolite does not have a mechanism for 'parking' ships.
I have an idea how this MIGHT be made possible.
preparation
create a shipdata.plist with entries like these :
Code: Select all
"cobra3-player-parked" =
{
like_ship = "cobra3-player";
}
create a shipyard.plist for all parked ships :
Code: Select all
"cobra3-player-parked"
{
chance =1;
price = 1;
techlevel = xyz;
// any techlevel that does not occur in the game / oxp would work
}
add 1 entry for temporary ship, techlevel xyz-1
create 2 stations :
Garage1 with techlevel xyz-1
Garage2 with techlevel xyz
Both should not be placed anywhere
end of preparation
----------------------
Mission Start :
player gets screen asking if they are interested to execute the missions :
If yes,
store ship type and equipment using mission vars
store player money temporary
place garage1 station in system and have player dock there automatically
player sells his ship
player buys temporary ship
reset player money to original amount
dock player to main station, remove garage1 station
Player completed mission(s)
store player money temporary
create garage2 station, have player dock there
player sells temporary ship
player buys his original ship type
dock player to main station once they have bought back their original ship
remove garage2 station
restore equipment for original ship (award.equipment)
restore player money
Missions completed = true
Player continues with his original ship and equipment
Would this be possible with the current (1.74.2) / next stable version OXP options ?
Can it be done in a simpler way ?