triple sphere

Events


Time - Elapsed game time is 1.00 seconds

Conditions

Actions


Set sphereangle[1] = 120.00


Set sphereangle[2] = 0.00


Set sphereangle[3] = 240.00


Set cp = (Position of Blood Mage 0000 <gen>)


For each (Integer A) from 1 to 3, do (Actions)



Loop - Actions




Set spheredistance[(Integer A)] = 100.00




Set cp2 = (cp offset by 100.00 towards sphereangle[(Integer A)] degrees)




Unit - Create 1 sphere for Player 1 (Red) at cp2 facing (Random angle) degrees




Custom script: call RemoveLocation(udg_cp2)




Set spheres[(Integer A)] = (Last created unit)


Custom script: call RemoveLocation(udg_cp)


Set mage = Blood Mage 0000 <gen>


Trigger - Turn on rendermovement <gen>
rendermovement

Events


Time - Every 0.04 seconds of game time

Conditions

Actions


Set sphereangle[1] = (sphereangle[1] + (Random real number between 0.75 and 1.25))


Set sphereangle[2] = (sphereangle[2] + (Random real number between 0.75 and 1.25))


Set sphereangle[3] = (sphereangle[3] + (Random real number between 0.75 and 1.25))


Set cp = (Position of mage)


For each (Integer A) from 1 to 3, do (Actions)



Loop - Actions




Set spheredistance[(Integer A)] = (spheredistance[(Integer A)] + (Random real number between -0.50 and 0.50))




Set cp2 = (cp offset by spheredistance[(Integer A)] towards sphereangle[(Integer A)] degrees)




Unit - Move spheres[(Integer A)] instantly to cp2, facing (Random angle) degrees




Custom script: call RemoveLocation(udg_cp2)


Custom script: call RemoveLocation(udg_cp)