What is a space battle game without some spaceships!? In The Schemaverse, ships can be used to discover, attack, defend and mine. Each ship is a generic skeleton that you can strategically upgrade aspects of to build it for the purpose you need. To build a ship, it will cost you 1000 from your player's balance.
All ships in the system have the following attributes.
Ship ID Integer
This is simply a unique identifier for the ship.
Player ID Integer
This is the ID of the player who owns the ship.
Fleet ID Integer
This value can be used to store any number freely as you see fit. The suggested use is for grouping ships meant to perform like actions.
Name Character Varying
Every ship can be assigned a name. They do not need to be unique and they can be updated as much as you want. Name them something fun, or name them by their purpose to help you keep yourself organized.
Current Health & Max Health Integer, Starting Value: 100, Max Value: 1000
How much more damage the ship can take and what is the ship's max value it can be repaired to. The current health can be increased by using the REPAIR( ) action and the max health of a ship can be increased by spending money with the UPGRADE( ) function.
Last Living Tic Integer
Once your health becomes zero, this value stops increasing. If this ship is not repaired for 3 tics, it will explode and be no longer usable.
Current Fuel & Max Fuel Integer, Starting Value: 1100, Max Value: 200000
How much fuel the ship currently has on board and how much total the tank can hold. The ship can be refueled completely by using the REFUEL_SHIP( ) function (as long as you have fuel in your player's Fuel Reserve). You can increase the fuel tank size (Max Fuel) by spending money with the UPGRADE( ) function.
Range Integer, Starting Value: 300, Max Value: 5000
This value denotes how far a ships interactions can span from the location they sit on. This includes detecting nearby enemy ships, performing actions against planets within this range and performing actions against other ships within range. This value can be increased by spending money with the UPGRADE( ) function
Attack, Defense, Engineering & Prospecting Integer, Starting Value: 5, Collective Max: 500
These four ship attributes all define how well your actions will perform. Attack will help your ATTACK( ), Defense will help when another ship ATTACK( )'s you, Engineering will increase your ability to REPAIR( ) ships and Prospecting will increase the fuel rewarded on a successful MINE( ) action. The sum of all of these values together cannot be greater than 500 but this can be distrubuted across the four attributes in any way you wish.
Last Action Tic & Last Move Tic Integer
These values are used by the system to assure a ship does not perform more than one action per tic. As a player, you can use these values to assure you are properly using your all the resources at your disposal.
This is the (x,y) coordinates where the ship currently resides.
This is the (x,y) coordinates where the ship will try to stop within range of. The ship may miss this point if it does not have enough fuel to slow down in time.
This is a value between 0 and 360 that represents which way the ship is facing. For an in depth explanation on this and all movement related values please see the Movement article.
Speed & Max Speed Integer, Starting Max Speed: 1000, Maximum Maximum Value: 800000
These values represents how far your ship is currently travelling per Tic as well as the top speed it can accomplish. Your speed can be increased or decreased as long as you have the fuel to power the thrust required to make the change. The ships Max Speed can also be increased by spending money with UPGRADE(). For an in depth explanation on this and all movement related values please see the Movement article.
Target Direction Integer
This value can be set to move your ship in a certain direction. The ship will continue to get closer and closer to this value each Tic as long as it has the fuel to do so. For an in depth explanation on this and all movement related values please see the Movement article.
Target Speed Integer
This value can be set to accelerate or decelerate the ship to this desired value. The ship will continue to get closer and closer to this value each Tic as long as it has the fuel to do so.For an in depth explanation on this and all movement related values please see the Movement article.
Ship State: Action and Action Target Character(30), Integer
These values are used to store state for each ship. Set the action to either ATTACK, REPAIR, or MINE and the Target ID to the Ship ID or Planet ID this action is to occur against and the action will automatically be performed each Tic. The regular rules for these actions still apply as if they were called manually.