Forged Alliance Forever Forged Alliance Forever Forums 2012-11-25T04:25:21+02:00 /feed.php?f=2&t=2400 2012-11-25T04:25:21+02:00 2012-11-25T04:25:21+02:00 /viewtopic.php?t=2400&p=23522#p23522 <![CDATA[Re: Modding help]]>
local costMultiplier = 0.5
local techThreeArtilleryUnits = {}

--loop through the blueprints and add to techThreeArtilleryUnits
for id,bp in all_bps.Unit do
local fArt = false
local fStrat = false
local fT3 = false
for k,v in bp.Categories do
if v == 'ARTILLERY' then
fArt = true
elseif v == 'STRATEGIC' then
fStrat = true
elseif v == 'TECH3' then
fT3 = true
end
end
if fArt and fStrat and fT3 then
techThreeArtilleryUnits[id] = bp
end
end
--Where the units are altered
for id,bp in techThreeArtilleryUnits do
bp.Economy.BuildCostEnergy = bp.Economy.BuildCostEnergy * costMultiplier
bp.Economy.BuildCostMass = bp.Economy.BuildCostMass * costMultiplier
end
end

Statistics: Posted by NotAsian — 25 Nov 2012, 04:25


]]>
2012-11-20T13:33:27+02:00 2012-11-20T13:33:27+02:00 /viewtopic.php?t=2400&p=23307#p23307 <![CDATA[Re: Modding help]]>
Lyr wrote:
http://forums.gaspowered.com/viewforum.php?f=7&sid=e557ff300e9c5789334887e030e55eff

The Moho mod talk forums is a relative treasure trove of useful information.

[EDIT]: http://forums.gaspowered.com/viewforum.php?f=19

This link will actually be mroe helpful with the nuts and bolts. Scuse.

EDIT2: If you want some help just reading lua, http://www.lua.org/manual/


Myxir wrote:
a lot of functions used in supcom fa (patch 3599, but they probably haven't changed at all until now)
http://supcom.wikia.com/wiki/LUADOC_1.5.3599


Thanks :D

Statistics: Posted by NotAsian — 20 Nov 2012, 13:33


]]>
2012-11-19T12:41:24+02:00 2012-11-19T12:41:24+02:00 /viewtopic.php?t=2400&p=23248#p23248 <![CDATA[Re: Modding help]]> http://supcom.wikia.com/wiki/LUADOC_1.5.3599

Statistics: Posted by Myxir — 19 Nov 2012, 12:41


]]>
2012-11-19T06:46:08+02:00 2012-11-19T06:46:08+02:00 /viewtopic.php?t=2400&p=23238#p23238 <![CDATA[Re: Modding help]]> http://forums.gaspowered.com/viewforum. ... e030e55eff

The Moho mod talk forums is a relative treasure trove of useful information.

[EDIT]: http://forums.gaspowered.com/viewforum.php?f=19

This link will actually be mroe helpful with the nuts and bolts. Scuse.

EDIT2: If you want some help just reading lua, http://www.lua.org/manual/

Statistics: Posted by Lyr — 19 Nov 2012, 06:46


]]>
2012-11-18T15:29:40+02:00 2012-11-18T15:29:40+02:00 /viewtopic.php?t=2400&p=23224#p23224 <![CDATA[Modding help]]> Thanks for your help

Statistics: Posted by NotAsian — 18 Nov 2012, 15:29


]]>