Hi guys,
Thank you for your time on this, I'm trying to get it to work in the fashion Mark said, before I look at lag. Unfortunately I've clearly done something wrong because it's not making an expanding ring of anything. It IS making a small splodge in the middle of the science map.
What have I done wrong?
So this bit sets off our supernova from the middle of the map, starting with a cluster of nebulas.
<event id_arme="a00ac493-2824-4c08-9e91-e257b5f2e071">
<if_distance name1="USS Shackleton" name2="Azure G-13" comparator="LESS_EQUAL" value="5000.0" />
<if_variable name="supernova" comparator="NOT" value="1.0" />
<set_variable name="supernova" value="1.0" />
<warning_popup_message message="Oh no! KABOOM!" consoles="MS" />
<create count="20" type="nebulas" startX="50000.0" startY="0.0" startZ="50000.0" radius="novaradius" randomRange="1000" />
<set_timer name="novaradiusexpand" seconds="1" />
</event>
THIS bit is supposed to update the variable "Novaradius" once a second by 1000 metres.
<event id_arme="ad93262d-d3eb-48d7-9464-1fe5c22433e9">
<if_timer_finished name="novaradiusexpand" />
<set_variable name="novaradius" value="novaradius + 1000" />
<set_timer name="createsupernova" seconds="1" />
</event>
This even applies the ring of destruction and creates our bigger ring of nebulas, then calls the event above via the timer (in theory) - I'm certain my syntax is wrong here somewhere.
<event id_arme="3fbcf1f0-811d-42cb-b9d8-b3e1ff727c5b">
<if_timer_finished name="createsupernova" />
<destroy_near type="mines" radius="novaradius" centerX="50000.0" centerY="0.0" centerZ="50000.0" />
<destroy_near type="asteroids" radius="novaradius" centerX="50000.0" centerY="0.0" centerZ="50000.0" />
<destroy_near type="nebulas" radius="novaradius" centerX="50000.0" centerY="0.0" centerZ="50000.0" />
<create count="300" type="nebulas" startX="50000.0" startY="0.0" startZ="50000.0" radius="novaradius + 1000" randomRange="1000" randomSeed="0" />
<set_timer name="novaradiusexpand" seconds="1" />
"We should give him the send-off he deserves. He died saving us all. Prepare a Rocket-Shed for immediate launch."