Addunitevent

Discuss and post your mods and scenarios here for others to download.

Moderator: Vic

Post Reply
Grymme
Posts: 1776
Joined: Sun Dec 16, 2007 5:06 pm
Contact:

Addunitevent

Post by Grymme »

Hi

I have a small problem with an event in my civil war scenario. It seems that each "place leader event" adds 2 units. I would be very gratefull if someone could help me with why this happens and a programming solution.

I have a suspicion that it adds units during both players turns, but not sure.



Image
Attachments
kod.jpg
kod.jpg (46.53 KiB) Viewed 88 times
My Advanced Tactics Mod page
http://atgscenarios.wordpress.com

30+ scenarios, maps and mods for AT and AT:G
rickier65
Posts: 14253
Joined: Thu Apr 20, 2000 8:00 am

RE: Addunitevent

Post by rickier65 »

ORIGINAL: Grymme

Hi

I have a small problem with an event in my civil war scenario. It seems that each "place leader event" adds 2 units. I would be very gratefull if someone could help me with why this happens and a programming solution.

I have a suspicion that it adds units during both players turns, but not sure.



Image


I think you need to enclose the two exec (for the msg and the addunit), between a checkturn end check block:

CHECK: checkround == 2
CHECK: checkturn == 1
Execmessage(etc etc etc
Execaddunit(etc etc etc
ENDCHECK
ENDCHECK

Although in your turn 2 it looks like youre sending a message to regime 0 but adding a unit to regime 1.

But havent done this in a while so I might be reading it wrong.

Rick

(I tried indenting the code block - but it lost it's formating. Sorry
tweber
Posts: 1411
Joined: Wed Jun 27, 2007 1:32 pm

RE: Addunitevent

Post by tweber »

How is the event checked?  If it is either an early or late turn check, then it would appear twice (provided you have 2 active regimes).  If you change to a round check, it should only happen once.
dkong
Posts: 77
Joined: Tue Jun 24, 2008 9:30 pm

RE: Addunitevent

Post by dkong »

man....how did u guys learn how to use the event editor so effectively. I am still kinda lost..... Is there any extra documentation that can help other than the one posted at the top of the forum?
DK
rickier65
Posts: 14253
Joined: Thu Apr 20, 2000 8:00 am

RE: Addunitevent

Post by rickier65 »

ORIGINAL: dkong

man....how did u guys learn how to use the event editor so effectively. I am still kinda lost..... Is there any extra documentation that can help other than the one posted at the top of the forum?

check out the community site there is a docs section there.


http://www.advancedtactics.org/

rick
Grymme
Posts: 1776
Joined: Sun Dec 16, 2007 5:06 pm
Contact:

RE: Addunitevent

Post by Grymme »

Thanks guys. Changing the checkturn to checkround seems to have taken care of it.
 
DKong: I suck at using the event editor. But im quite persistent. My advice is to look at the events of other scenarios. For example if you look at the WAW-events youll have things to try out for several months.
My Advanced Tactics Mod page
http://atgscenarios.wordpress.com

30+ scenarios, maps and mods for AT and AT:G
Post Reply

Return to “Mods and Scenarios”