Does this work? (am I doing this right?) |

Ok, I'm fiddling around with the IRM mod and trying to make a 'volume of fire' advantage for ships with huge amounts of guns.
This is what I am doing: (example)
Weapon Space To Hit Modifier Formula---:= ((Get_Design_Specific_Component_Count("Depleted Uranium Cannon")) + 1) - ((([%Range%] - 40) ^ 2) ^ 0.4)----
Does this work? So far in the game I can't see anything change after adding 5 or 10 DUC's to a ship. Is it actually doing something and just not showing me the 'numbers' when I look at the design or right click the component? (ie, numbers changing 'in behind' the actual status screens).
I've checked in the 'targeting' tab, the components tab and the ship itself and the numbers are unchanged.
It also did nothing for this line either:
----Weapon Space Min Damage Modifier Formula((({{[b]":= iif([%Range%]
Re: Does this work? (am I doing this right?)
Submitted by Fyron on Mon, 2007-12-31 14:06.
You have to escape anything that could be construed as HTML with the ASCII codes (eg: & l t ; instead of the < sign directly). Same with brackets IIRC. You might be able to use the code UBB tags to avoid this, but I suspect this retarded Drupal software will screw that up too.




Re: Does this work? (am I doing this right?)
Firstly, I'm guessing your Weapon Space ... Formula contained a carrot, and so the formatted bugged out and cut off the rest of your post. The input format options underneath the post box has an Escaped HTML mode that should prevent that.
About your first problem, that line should be working, but it's a relatively small change per cannon compared to the effects of the range. Try multiplying the effect of the cannon count by 10 or so, and see if it has a more noticeable effect in combat, such as very few misses.
-----
A project a day keeps the deadline away.