Quick-Visa
by phkb

Overview
========
This mod does two things. Firstly, if the player doesn't have a citizenship or a valid visa when they arrive in a new system, it will warn the player that a visa is required for docking at system stations.

Additionally, it adds "Quick-Visa Self-Service" stations near the witchpoint, which allow the player to purchase 24h, 48h or 72h visas for the current system, at a substantially inflated price.

Operation
=========
To use the Quick-View Self-Service station, approach the station until you are within 1km of it. At that point, Broadcast Comms options will become available, allowing you to select 1 of three different options: Purchase a 24h visa, purchase a 48h visa, or purchase a 72h visa. Select the desired option using the Broadcast Comms MFD, and transmit. After a few seconds, you should see a response that your visa was approved and the credits have been deducted.

Backstory
=========
It's the bane of many a pilot's life. In a hurry to reach a destination, they launch and jump into a new system, completely forgetting that a visa is required. They jet along the spacelane to the main station, only to discover, to their horror, that they would be denied entry.

Into this dilemma came Quick-Visa, a startup conceived with this one issue in mind. Based in the Galaxy 4 system of Edorqu, the trio of entrepreneurs who funded the initial investment, discovered there could be a solution that was both beneficial to the systems requiring visas, and lucrative enough to fund the massive outlays envisaged. Initial tests confirmed their analysis that pilots would be willing to pay a significant amount over the normal visa cost to avoid the other hassles of not having one.

They began by reaching out, through diplomatic channels, to many of the communist and dictatorship systems in their own corner of the galaxy. Would they be interested in getting additional income, at almost no cost to them, while providing a benefit to incoming traders? Understandably, given those terms, many were willing to participate in a trial.

And so the rollout began. Old communication stations were repurposed, chosen largely because they were so cheap and had enough existing technology on board, given a shiny new coat of paint, and deposited near the witchpoint of some carefully selected systems.

No one could have predicted just how effective they were. Within just a few days, not only had they been able to pay for the stations already purchased and issue massive payments to the governments they were deployed in, they were scrambling to answer all the diplomatic calls they were receiving. Could they deploy the system there? How quickly could they get it set up? 

Money was being thrown at them from a variety of directions, and in a short amount of time the system was rolled out across all the charts. The start-up out-grew it's original offices and moved to a private station of their own design in a far off (and secret) corner of the galaxy, and the money just continued to roll in.

Everyone was happy - the governments, the investors, and, to a certain degree, the pilots who kept paying for the over-priced visas. It was certainly cheaper than getting a fine at the station, and quicker than doing a fuel-scooping run to the sun. 

Requirements
============
The Diplomacy OXP is required, as it is the mod which controls visas and citizenships.
The Broadcast Comms OXP is required to communicate with the Quick-Visa Self-Service stations.

Licence
=======
This work is licensed under the Creative Commons Attribution-Noncommercial-Share Alike 4.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/

Parts of the code were borrowed from Thargoids Fuel Stations OXP.
The station model is taken from Ramirez's Iron Raven OXP.

Version History
===============
1.5
- Added some ball turrets to dissuade aggressors.
- Suppress player messages in condition red.

1.4
- Fixed missing semi-colon in shipdata.plist file.

1.3
- Fixed issue where moving away from the station would remove the BCC links, but not put them back if the player approaches for a second time.
- Quick-Visa stations no longer mass lock the player.
- Made station rotate for more visual interest.

1.2
- Turned of station naming for the Quick-Visa stations.
- Fixed issue where visas purchased through Quick-Visa stations were not being recognised by PlanetFall2 locations.

1.1
- Tweaks to the Quick-Visa Self-Service station model.
- Fixed invalid filename in shipdata.

1.0
- Initial release