Page 2 of 2

RE: Event Code

Posted: Tue Oct 04, 2011 1:53 pm
by Goodmongo
I am planning to try and get deeply involved in some mods.  Is there a list of the entire API anywhere?  I'm especially interested in all the function calls with a description of the parameters required for each one.
 
For example the basic ExecMessage(0, -1, -1,-1) has four parameters.  Is there documentation where each parameter is explained?
 
I did a search of the ATG Wiki site but did not see a link to all the various functions.  I am reading through all the FAQ's and tutorials but so far have not found it.  Thanks in advance.

RE: Event Code

Posted: Tue Oct 04, 2011 8:06 pm
by lancer
G'day,

Documentation is scratchy.

You can try the orginal AT manual (comes with ATG) for descriptions of the original set of functions.

All the new ones added into ATG and patched thereafter are best figured out by going into the editor and looking at the explanations and tool tips that arise when you go to use them.

Most of them are straightforward. A few aren't but they are ones that are rarely used.

Cheers,
Lancer

RE: Event Code

Posted: Wed Oct 05, 2011 1:06 am
by Goodmongo
Thanks Lancer. I did find the original manual but it sure would have been easier and nicer to see the functions and rule variable also in one nice manual.

Off the top of your head do you know if I can change the AP's of a specific unit or change their entrenchment value? Also, can ZOC's be changed at all?

RE: Event Code

Posted: Wed Nov 30, 2011 6:41 am
by lion_of_judah
I need some help please for my Ivorian civil war scnenario. I would like to program an event that will be used one time only for the Government " Cote D'Ivorie" and the rebels " North Cote D'Ivorie. Say on April 3rd 2003 either side askes for a cease-fire, the government plays their card, and the rebels accept or even better it is forced upon both sides via the UN. thus giving both sides time to re-equip and arm their forces then when the time is ready either side just declares war again. Now since I suck at programming, I will need some help, so any help what soever will so be appreciated.

RE: Event Code

Posted: Fri Sep 30, 2016 12:59 am
by Strategiusz
How to set names for those options and make them reacting on clicking? I have managed with making simple events.

Image

EDIT

OK, I found the names. They are in Settings -> GameSlots.

EDIT 2

OK, I can run those events after checking GameVar > 0.

But there is some strange "+" button named "click to change the event coupled to this variant". It looks like it doesn't work. But it looks like it is not necessary to work.

RE: Event Code

Posted: Fri Nov 11, 2016 2:48 pm
by ernieschwitz
EDIT 2

OK, I can run those events after checking GameVar > 0.

But there is some strange "+" button named "click to change the event coupled to this variant". It looks like it doesn't work. But it looks like it is not necessary to work.

It does work, i used it by mistake once. You can program the game to execute an event when the option is chosen. Not sure why one would do that, since it when deselected is not un-executed. But I guess you could use it to incrementally increase a value.

The ordinary way you want these select boxes to work, is that they change a value when selected, say from 0 to 1, and then you make an event at startup (or later) and check the value, and then do whatever you chose.