Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
op2_sdk:disasters [2016/10/12 21:32] – external edit 127.0.0.1 | op2_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, | All disasters in Outpost 2 are fully supported by the SDK. This section covers Meteors, Electrical Storms, Earthquakes, | ||
- | 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: | ||
</ | </ | ||
- | Stub | + | There are 3 sizes of meteors available. |
===== Electrical Storm ===== | ===== Electrical Storm ===== | ||
Line 21: | Line 21: | ||
</ | </ | ||
- | 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: | ||
</ | </ | ||
- | 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: | ||
</ | </ | ||
- | 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) |