Forged Alliance Forever Forged Alliance Forever Forums 2015-06-23T03:37:31+02:00 /feed.php?f=41&t=10070 2015-06-23T03:37:31+02:00 2015-06-23T03:37:31+02:00 /viewtopic.php?t=10070&p=101892#p101892 <![CDATA[Re: How to catch build event]]>

Statistics: Posted by Phelom — 23 Jun 2015, 03:37


]]>
2015-06-20T09:44:30+02:00 2015-06-20T09:44:30+02:00 /viewtopic.php?t=10070&p=101776#p101776 <![CDATA[Re: How to catch build event]]> http://supcom.wikia.com/wiki/LUADOC_1.5.3596

Best documentation is browsing through the game code (in gamedata/lua.scd) and grep:ing stuff

Statistics: Posted by Crotalus — 20 Jun 2015, 09:44


]]>
2015-06-14T04:37:13+02:00 2015-06-14T04:37:13+02:00 /viewtopic.php?t=10070&p=101453#p101453 <![CDATA[Re: How to catch build event]]> Statistics: Posted by quark036 — 14 Jun 2015, 04:37


]]>
2015-06-13T14:27:01+02:00 2015-06-13T14:27:01+02:00 /viewtopic.php?t=10070&p=101428#p101428 <![CDATA[Re: How to catch build event]]>
What is making me sad is that i found any documentation or code reference about SupCom API... this mean that we can not find what we're looking for..

Thanks

Statistics: Posted by Phelom — 13 Jun 2015, 14:27


]]>
2015-06-13T13:27:21+02:00 2015-06-13T13:27:21+02:00 /viewtopic.php?t=10070&p=101427#p101427 <![CDATA[Re: How to catch build event]]> http://wiki.faforever.com/index.php?tit ... _Scripting

Statistics: Posted by speed2 — 13 Jun 2015, 13:27


]]>
2015-06-13T13:25:46+02:00 2015-06-13T13:25:46+02:00 /viewtopic.php?t=10070&p=101426#p101426 <![CDATA[Re: How to catch build event]]> No doc, no good tutorial.. nothing to help me doing first steps in map scripting... :(

Ok i'm a developper, but i never worked with lua before... i want to say that i'm not a fan who wants write bribs or do cpy/past... i would like to really create cool stuffs... mods, special maps.. challenges...

So if any expert in SupCom scripting give a starting help i'll appreiate it :)
Thank you advance

Statistics: Posted by Phelom — 13 Jun 2015, 13:25


]]>
2015-06-13T00:02:42+02:00 2015-06-13T00:02:42+02:00 /viewtopic.php?t=10070&p=101404#p101404 <![CDATA[Re: How to catch build event]]> Statistics: Posted by Myxir — 13 Jun 2015, 00:02


]]>
2015-06-12T22:48:13+02:00 2015-06-12T22:48:13+02:00 /viewtopic.php?t=10070&p=101402#p101402 <![CDATA[Re: How to catch build event]]>
Code:
WARNING: BeginSession() failed: ...d alliance\gamedata\lua.scd\lua\scenariotriggers.lua(366): attempt to call method `AddOnUnitBuiltCallback' (a nil value)
         stack traceback:
            ...d alliance\gamedata\lua.scd\lua\scenariotriggers.lua(366): in function `CreateUnitBuiltTrigger'
            ...ce\maps\survival contest\survival contest_script.lua(67): in function `OnStart'
            ...ogramdata\faforever\gamedata\lua.nx2\lua\siminit.lua(147): in function <...ogramdata\faforever\gamedata\lua.nx2\lua\siminit.lua:138>
            ...ogramdata\faforever\gamedata\lua.nx2\lua\siminit.lua(291): in function `BeginSession'

Statistics: Posted by Phelom — 12 Jun 2015, 22:48


]]>
2015-06-12T21:01:23+02:00 2015-06-12T21:01:23+02:00 /viewtopic.php?t=10070&p=101400#p101400 <![CDATA[Re: How to catch build event]]> Statistics: Posted by Phelom — 12 Jun 2015, 21:01


]]>
2015-06-12T20:06:29+02:00 2015-06-12T20:06:29+02:00 /viewtopic.php?t=10070&p=101396#p101396 <![CDATA[Re: How to catch build event]]>
How do i define units ?

Statistics: Posted by Phelom — 12 Jun 2015, 20:06


]]>
2015-06-12T20:05:21+02:00 2015-06-12T20:05:21+02:00 /viewtopic.php?t=10070&p=101395#p101395 <![CDATA[Re: How to catch build event]]> Statistics: Posted by speed2 — 12 Jun 2015, 20:05


]]>
2015-06-12T19:52:21+02:00 2015-06-12T19:52:21+02:00 /viewtopic.php?t=10070&p=101393#p101393 <![CDATA[Re: How to catch build event]]>

Even if i call BroadcastMSG in OnStart function

Code:
function OnStart(self)
   
   ScenarioFramework.CreateUnitBuiltTrigger( myCB, unit, categories.FACTORY * categoriesTECH1 )
end

function myCB()
   
   BroadcastMSG("Well done !", 8);
   
end


Statistics: Posted by Phelom — 12 Jun 2015, 19:52


]]>
2015-06-12T19:40:59+02:00 2015-06-12T19:40:59+02:00 /viewtopic.php?t=10070&p=101392#p101392 <![CDATA[Re: How to catch build event]]> Statistics: Posted by Phelom — 12 Jun 2015, 19:40


]]>
2015-06-12T18:35:11+02:00 2015-06-12T18:35:11+02:00 /viewtopic.php?t=10070&p=101388#p101388 <![CDATA[Re: How to catch build event]]>
Code:
BroadcastMSG = function(MSG, Fade, TextColor)
   PrintText(MSG, 20, TextColor, Fade, 'center') ;   
end

then used later in some function
Code:
BroadcastMSG("Well done, but can you do better?", 30);

Statistics: Posted by speed2 — 12 Jun 2015, 18:35


]]>
2015-06-12T18:24:28+02:00 2015-06-12T18:24:28+02:00 /viewtopic.php?t=10070&p=101387#p101387 <![CDATA[Re: How to catch build event]]> Statistics: Posted by quark036 — 12 Jun 2015, 18:24


]]>