Can't deal Action Card

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

Moderator: Vic

Post Reply
mtvaill
Posts: 117
Joined: Fri Jul 06, 2007 7:29 pm

Can't deal Action Card

Post by mtvaill »

I'm trying to use an event to deal an action card, but I just can't get it to work. The action card is created and linked to an event, but I can't even deal it to the player for some reason. [:@] This is driving me nuts! What did I miss?

AC#0 to regime#1

0) EXECUTE: ExecGiveActionCard(0, 1)
1) EXECUTE: BlockEvent

???
Operation Merkur: Germany Invades Crete v1.0 available here
User avatar
gingerbread
Posts: 3075
Joined: Thu Jan 04, 2007 1:25 am
Location: Sweden

RE: Can't deal Action Card

Post by gingerbread »

What data have you entered for Action Card #0?

g
mtvaill
Posts: 117
Joined: Fri Jul 06, 2007 7:29 pm

RE: Can't deal Action Card

Post by mtvaill »

I gave it a title, descriptive text, a PPCost of 1, ExecuteEvent of 1, EventPicNr is 0 (a custom pic I downloaded), then colorscheme and AIlabel are both default of 0. I know the event the card is linked to works, as I've tried it on its own. This is still driving me nuts. Is there some global setting I need to change to allow action cards maybe?
Operation Merkur: Germany Invades Crete v1.0 available here
mtvaill
Posts: 117
Joined: Fri Jul 06, 2007 7:29 pm

RE: Can't deal Action Card

Post by mtvaill »

I added a line to the event that is supposed to deal the action card.  The line adds 2 PP to the same regime, and that part works just fine, but still no action card...?
Operation Merkur: Germany Invades Crete v1.0 available here
tweber
Posts: 1411
Joined: Wed Jun 27, 2007 1:32 pm

RE: Can't deal Action Card

Post by tweber »

Action cards are disabled by default.  Go to editor - settings - rules vars - Disable Features sheet and enable them.
mtvaill
Posts: 117
Joined: Fri Jul 06, 2007 7:29 pm

RE: Can't deal Action Card

Post by mtvaill »

Okay I tried that, but the setting keeps reverting every time I load the scenario. How do I make it permanent?

EDIT: Never mind, I figured it out; had to get rid of the masterfile. Thanks!
Operation Merkur: Germany Invades Crete v1.0 available here
User avatar
Vic
Posts: 9931
Joined: Mon May 17, 2004 2:17 pm
Contact:

RE: Can't deal Action Card

Post by Vic »

@mtvail,
 
either that (get rid of masterfile) or you use a ExecSetRulevar ( x ) = y in an initial event to enable the actioncards.
 
Visit www.vrdesigns.net for the latest news, polls, screenshots and blogs on Shadow Empire, Decisive Campaigns and Advanced Tactics
Post Reply

Return to “Mods and Scenarios”