is this a "how to" thread on disasters, or another "i can do it better" mission-discussion ? :P
------------------------
Anyway; for the coders:
How-to (take a quake for example):
SCRIPT_API void Quake()
{
TethysGame::SetEarthquake(57+TethysGame::GetRand(90),1+TethysGame::GetRand(100),1);
}
This code comes from one of my missions, so i'd like to argue with Baikon, that i don't set regions for my disasters. It creates a random quake in the region MAP_RECT(57,1,147,101) -> in game coordinates (26,0,116,100).
Call this procedure from a random-timed trigger, and you have a completely random quake set up for a map region.
// Create random quake every 40-60 marks:
CreateTimerEvent(1,0,4000,6000,"Quake");