Making action Cards to remove units

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

Moderator: Vic

User avatar
ernieschwitz
Posts: 4654
Joined: Tue Sep 15, 2009 3:46 pm
Location: Denmark

RE: Making action Cards to remove units

Post by ernieschwitz »

Sorry I meant ExecGiveActionCard :)
Creator of High Quality Scenarios for:
  • Advanced Tactics Gold
    DC: Warsaw to Paris
    DC: Community Project.
Try this Global WW2 Scenario: https://www.vrdesigns.net/scenario.php?nr=280
User avatar
ernieschwitz
Posts: 4654
Joined: Tue Sep 15, 2009 3:46 pm
Location: Denmark

RE: Making action Cards to remove units

Post by ernieschwitz »

Also I would like the engine to announce to other player what player X removed if possible, so the removal is transparent to all players.
So could you get me the revised code for that please?

Not sure its possible to make it exactly what has been removed. At least not without some very lengthy code.

EDIT: I think I figured out how to present it to the players what has been removed, ... but still requires abit of code.
Creator of High Quality Scenarios for:
  • Advanced Tactics Gold
    DC: Warsaw to Paris
    DC: Community Project.
Try this Global WW2 Scenario: https://www.vrdesigns.net/scenario.php?nr=280
User avatar
ernieschwitz
Posts: 4654
Joined: Tue Sep 15, 2009 3:46 pm
Location: Denmark

RE: Making action Cards to remove units

Post by ernieschwitz »

Oh #### i think it is a bit harder to make this event than originally anticipated. I think we need to make a PreSelectEvent...

Thats what i get for drinking beer and programming at the same time... :P
Creator of High Quality Scenarios for:
  • Advanced Tactics Gold
    DC: Warsaw to Paris
    DC: Community Project.
Try this Global WW2 Scenario: https://www.vrdesigns.net/scenario.php?nr=280
User avatar
gazfun
Posts: 734
Joined: Wed Jun 30, 2004 9:59 pm
Location: Australia

RE: Making action Cards to remove units

Post by gazfun »

Your previous comments
The first line is not something you need. Unless you want to execute the card, when the event is run.

The second line should read ExecRemoveTroops(tempvar2, tempvar3, -1, 100)

I am guessing tempvar2 and tempvar3 are transfered with the card command.


Ok, that card looks nice.

What you need is to add a line of code to deal the card (and remove it if unused so they don´t get loads and loads of the card)...

Most likely you will need to make an event. Something like.

Event Name: Add new card, execute: Early turn check

0). TempVar0 = CheckTurn
1). ExecRemoveActionCard (relevant data using tempvar0 as regime)
2). ExecAddActionCard (relevant data using tempvar0 as regime

Is this all code for the one Card?
User avatar
gazfun
Posts: 734
Joined: Wed Jun 30, 2004 9:59 pm
Location: Australia

RE: Making action Cards to remove units

Post by gazfun »

ORIGINAL: ernieschwitz

Oh #### i think it is a bit harder to make this event than originally anticipated. I think we need to make a PreSelectEvent...

Thats what i get for drinking beer and programming at the same time... :P
I really appreciate, your effort. perhaps we could have a beer together LOL
User avatar
ernieschwitz
Posts: 4654
Joined: Tue Sep 15, 2009 3:46 pm
Location: Denmark

RE: Making action Cards to remove units

Post by ernieschwitz »

Ok, i made a card that does what you want.

I can´t make it say what has been removed, BUT I can make it say how many powerpoints has been removed and how many subformations it consisted of.

First the events, i made 3, they are seen in the following screenshot. Their names doesn´t have to be exact, but the contents does, but we have yet to come to that.





Image
Attachments
PreSelectRemoveUnit.jpg
PreSelectRemoveUnit.jpg (30.99 KiB) Viewed 196 times
Creator of High Quality Scenarios for:
  • Advanced Tactics Gold
    DC: Warsaw to Paris
    DC: Community Project.
Try this Global WW2 Scenario: https://www.vrdesigns.net/scenario.php?nr=280
User avatar
ernieschwitz
Posts: 4654
Joined: Tue Sep 15, 2009 3:46 pm
Location: Denmark

RE: Making action Cards to remove units

Post by ernieschwitz »

Here is the event the card needs to execute

Image
Attachments
EventRemoveUnit.jpg
EventRemoveUnit.jpg (72.65 KiB) Viewed 196 times
Creator of High Quality Scenarios for:
  • Advanced Tactics Gold
    DC: Warsaw to Paris
    DC: Community Project.
Try this Global WW2 Scenario: https://www.vrdesigns.net/scenario.php?nr=280
User avatar
ernieschwitz
Posts: 4654
Joined: Tue Sep 15, 2009 3:46 pm
Location: Denmark

RE: Making action Cards to remove units

Post by ernieschwitz »

Please note the text message in the lowest part of the screen. It has to be

[regimename][tempvar]1[/tempvar][/regimename][stringlist]1[/stringlist]
Creator of High Quality Scenarios for:
  • Advanced Tactics Gold
    DC: Warsaw to Paris
    DC: Community Project.
Try this Global WW2 Scenario: https://www.vrdesigns.net/scenario.php?nr=280
User avatar
ernieschwitz
Posts: 4654
Joined: Tue Sep 15, 2009 3:46 pm
Location: Denmark

RE: Making action Cards to remove units

Post by ernieschwitz »

And finally the deal cards event...

Image
Attachments
DealCardsRemoveUnit.jpg
DealCardsRemoveUnit.jpg (9.98 KiB) Viewed 201 times
Creator of High Quality Scenarios for:
  • Advanced Tactics Gold
    DC: Warsaw to Paris
    DC: Community Project.
Try this Global WW2 Scenario: https://www.vrdesigns.net/scenario.php?nr=280
User avatar
ernieschwitz
Posts: 4654
Joined: Tue Sep 15, 2009 3:46 pm
Location: Denmark

RE: Making action Cards to remove units

Post by ernieschwitz »

Finally the card itself:



Image
Attachments
CardOvervi..moveUnit.jpg
CardOvervi..moveUnit.jpg (24.32 KiB) Viewed 196 times
Creator of High Quality Scenarios for:
  • Advanced Tactics Gold
    DC: Warsaw to Paris
    DC: Community Project.
Try this Global WW2 Scenario: https://www.vrdesigns.net/scenario.php?nr=280
User avatar
ernieschwitz
Posts: 4654
Joined: Tue Sep 15, 2009 3:46 pm
Location: Denmark

RE: Making action Cards to remove units

Post by ernieschwitz »

Note that you can set it to 0 PPs, so no player is forced to pay for lossing his troops.

Note also that you can switch those numbers around as you like.

Just remember that 0 is where you are going to put the PreSelect ALL units event
and that 1 is where you are going to put the RemoveUnit event.
Creator of High Quality Scenarios for:
  • Advanced Tactics Gold
    DC: Warsaw to Paris
    DC: Community Project.
Try this Global WW2 Scenario: https://www.vrdesigns.net/scenario.php?nr=280
User avatar
gazfun
Posts: 734
Joined: Wed Jun 30, 2004 9:59 pm
Location: Australia

RE: Making action Cards to remove units

Post by gazfun »

Oh wow thats great........So when and where can we have that beer [:)]
Ill get to it, and get back to you in a couple of days
User avatar
ernieschwitz
Posts: 4654
Joined: Tue Sep 15, 2009 3:46 pm
Location: Denmark

RE: Making action Cards to remove units

Post by ernieschwitz »

You come to Denmark, and we will have a Danish Beer :) ...

Better yet, if I was to be in the neighborhood, you owe me one ;)
Creator of High Quality Scenarios for:
  • Advanced Tactics Gold
    DC: Warsaw to Paris
    DC: Community Project.
Try this Global WW2 Scenario: https://www.vrdesigns.net/scenario.php?nr=280
User avatar
gazfun
Posts: 734
Joined: Wed Jun 30, 2004 9:59 pm
Location: Australia

RE: Making action Cards to remove units

Post by gazfun »

your on, just send me a email, PM here
Ill send you my email by PM
User avatar
ernieschwitz
Posts: 4654
Joined: Tue Sep 15, 2009 3:46 pm
Location: Denmark

RE: Making action Cards to remove units

Post by ernieschwitz »

Please note, this code only selects the first unit of all units. In other words my coding was flawed...

However I have made a version that works, and emailed it to Gazfun :) I will post the code if someone wants to know.
Creator of High Quality Scenarios for:
  • Advanced Tactics Gold
    DC: Warsaw to Paris
    DC: Community Project.
Try this Global WW2 Scenario: https://www.vrdesigns.net/scenario.php?nr=280
Post Reply

Return to “Mods and Scenarios”