op2_sdk:disasters

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
op2_sdk:disasters [2016/02/01 04:53] – created vagabondop2_sdk:disasters [2016/12/29 17:55] (current) – [Sample Code] vagabond
Line 5: Line 5:
 All disasters in Outpost 2 are fully supported by the SDK. This section covers Meteors, Electrical Storms, Earthquakes, and Vortices. Volcanoes are handled in the Volcano Section here: [[op2_sdk:Volcanoes]]. All disasters in Outpost 2 are fully supported by the SDK. This section covers Meteors, Electrical Storms, Earthquakes, and Vortices. Volcanoes are handled in the Volcano Section here: [[op2_sdk:Volcanoes]].
  
-When setting a disaster, you are setting when the first warning that the disaster will occur.+When setting a disaster, you are setting when the first warning that the disaster will occur. No disaster can occur at mark 0 (when a scenario first starts). Even if you set a disaster to immediately occur, it actually will not happen until about mark 10-15. The exception is a vortex which can be set to occur immediately.
  
 ===== Meteor ===== ===== Meteor =====
Line 13: Line 13:
 </code> </code>
  
-Stub+There are 3 sizes of meteors available.
  
 ===== Electrical Storm ===== ===== Electrical Storm =====
Line 21: Line 21:
 </code> </code>
  
-Stub+An electrical storm will disappear once its duration has expired. Duration is set as number of marks. If the electrical storm reaches its end tile before the duration expires, it will continue on past the end point.
  
 ===== Earthquake ===== ===== Earthquake =====
Line 29: Line 29:
 </code> </code>
  
-Stub+Magnitude 0 Earthquakes do the least amount of damage. Earthquake magnitudes above about 7 become extremely dangerous. Setting the magnitude to -1 will make the Earthquake last indefinitely but it will not cause any damage.
  
 ===== Vortex ===== ===== Vortex =====
Line 37: Line 37:
 </code> </code>
  
-Stub+If a vortex duration is set to 0, it will continue indefinitely. 
 + 
 +If the vortex reaches its endpoint before its duration expires, it will slightly wobble around the end location for the remainder of its duration. 
 + 
 +If immediate is set to true, the vortex can be made to appear immediately when the scenario starts.
  
 ===== Sample Code ===== ===== Sample Code =====
Line 114: Line 118:
     else if (randNum < 85)     else if (randNum < 85)
     {     {
- CreateEarthquake();+ CreateEarthquake();
     }     }
     else if (randNum < 95)     else if (randNum < 95)
Line 136: Line 140:
  - //Go Back to [[op2_sdk:software_development_kit_sdk|Outpost 2 Mapmaking]]//\\  - //Go Back to [[op2_sdk:software_development_kit_sdk|Outpost 2 Mapmaking]]//\\
  - //Go Back to [[outpost_2:outpost_2|Outpost 2 Main page]]//\\  - //Go Back to [[outpost_2:outpost_2|Outpost 2 Main page]]//\\
- - //Go Back to [[http://wiki.outpostuniverse.org/doku.php?id=start|Wiki Home Page]]//+ - //Go Back to [[http://wiki.outpost2.net/doku.php?id=start|Wiki Home Page]]//
  • op2_sdk/disasters.1454302405.txt.gz
  • Last modified: 2016/02/01 04:53
  • by vagabond