Trouble with Action Cards

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

Moderator: Vic

Post Reply
GaryChildress
Posts: 6933
Joined: Sun Jul 17, 2005 3:41 pm
Location: The Divided Nations of Earth

Trouble with Action Cards

Post by GaryChildress »

Trying to set up action cards in a blank scenario and can't figure out what I'm doing wrong. I've attached the scenario if anyone wants to check it out.

It's just a test scenario at this point. I created two action cards, one to buy an infantry division and the other to buy a tank division. I created a "deal cards" event and a create unit event for both cards. Problem is when I try to play the scenario the "cards" tab in the decision room is not active. I checked the rulevars section and it looks like action cards should be enabled. So I don't know what I'm doing wrong. Kinda frustrating. [:o]
Attachments
_CodingTest.zip
(80.97 KiB) Downloaded 13 times
icym
Posts: 152
Joined: Thu Aug 15, 2013 8:42 pm
Location: Australia

RE: Trouble with Action Cards

Post by icym »

Try the following:

In the Event Screen, Event 0, line 2 Set ExecGiveActionCard(0,0) [otherwise you are dealing action card 1 twice].

Main problem: Event 0, change from No check to Early Start Turn Check or Late Start Turn Check.

I don't think you need Line 1 in event 0 - Rule Var 502 should be enabled by default.

Then you should be good to go.
GaryChildress
Posts: 6933
Joined: Sun Jul 17, 2005 3:41 pm
Location: The Divided Nations of Earth

RE: Trouble with Action Cards

Post by GaryChildress »

Many thanks icym! I'll give it a try.
 
Do you happen to know what the third value in ExecSetUnitName is supposed to be? According to the prompts, the first value is the unit#, the second is the "new name" for the unit but it doesn't say what the third value is.
 
Does anyone know?
 
Many thanks.
icym
Posts: 152
Joined: Thu Aug 15, 2013 8:42 pm
Location: Australia

RE: Trouble with Action Cards

Post by icym »

I don't know the answer to that one but it does appear to be related to the use of 'historical' units.

In all the time I've played around with ATG and the editor and read the forums, I have never come across any explanation of what historical unit are, or how they created and used. I too would be interested in an answer to your question.
GaryChildress
Posts: 6933
Joined: Sun Jul 17, 2005 3:41 pm
Location: The Divided Nations of Earth

RE: Trouble with Action Cards

Post by GaryChildress »

So this is what I'm trying to do but I can't figure out a way to do it. I want to play an action card that creates a unit (an infantry division as one example) and I want the unit to receive a name (example: "1st Rifle Div."). Then when I play the create infantry division card again I want it to name the new unit "2nd Rifle Division" and after that 3rd Rifle Division and so on. There is an execute command to set unit name but it requires the unit number and I won't know what the unit number is if it hasn't been created yet. Any ideas  how to do this?
 
Thanks.
Post Reply

Return to “Mods and Scenarios”