Forged Alliance Forever Forged Alliance Forever Forums 2013-03-28T19:50:05+02:00 /feed.php?f=39&t=3447 2013-03-28T19:50:05+02:00 2013-03-28T19:50:05+02:00 /viewtopic.php?t=3447&p=36048#p36048 <![CDATA[Re: Resource Maintenance Modding Question]]>
I'm trying to impose energy maintenance for units as soon as they are operational (finished being built).

Statistics: Posted by Nottonius — 28 Mar 2013, 19:50


]]>
2013-03-28T06:30:27+02:00 2013-03-28T06:30:27+02:00 /viewtopic.php?t=3447&p=35966#p35966 <![CDATA[Re: Resource Maintenance Modding Question]]>
But I'm probably wrong. What exactly is it you're trying to do?

Statistics: Posted by MushrooMars — 28 Mar 2013, 06:30


]]>
2013-03-28T05:21:05+02:00 2013-03-28T05:21:05+02:00 /viewtopic.php?t=3447&p=35962#p35962 <![CDATA[Resource Maintenance Modding Question]]>
Question: Is it possible to enforce mandatory energy maintenance (without a toggle button) for a unit that normally does not have maintenance.

Economy = {
MaintenanceConsumptionPerSecondEnergy = 200, #for radar
},

I have been able to enable energy maintenance through the implementation of the toggle buttons (toggle radar). When a unit is created at the factory, however, radar is active but the energy maintenance is NOT. I can click the toggle radar button to turn the radar off and when I turn the radar on again, THEN the energy maintenance is active. This is not practical, of course, as the player simply would never turn the radar off upon being built.

I saw that a cybran stealth plane has code to disable its stealth upon completion at the factory. Looks like the code is in the unit's script file so I am worried that I would have to enable maintenance by copying every unit folder and its contents to modify the scripting file (I'm relatively unskilled).

Any help is appreciated.

Thanks!

Statistics: Posted by Nottonius — 28 Mar 2013, 05:21


]]>