Custom artillery weapon crash just before firing.
Posted: Sat Nov 26, 2016 6:11 pm
Unfortunately it took me two days to figure out the cause of the crash, I finally realize that the crash is caused when the number of shots exceeds the amount of rooms the enemy ship has. For example, my artillery beam has 6 shots and whenever it came across a ship with 5 or less rooms it would crash the game just before firing.
So my question is, is there any way to set the <shots></shots> parameter to be set something like this:
if 6 => enemyRoomCount then set shots to 6
else
set shots to enemyRoomCount
I don't have much experience with xml so I'm not sure if anything like this is possible but if it is can someone let me know.
So my question is, is there any way to set the <shots></shots> parameter to be set something like this:
if 6 => enemyRoomCount then set shots to 6
else
set shots to enemyRoomCount
I don't have much experience with xml so I'm not sure if anything like this is possible but if it is can someone let me know.