MF4
//fast and tough Clay Ram or Strong Axe Capitan vs theherds
#include 159
int gInfoIndex;
int NUM_BLERBS = 11;
bool[] gShown(NUM_BLERBS);
void reset()
{
commonReset();
setMapSeed(25791);
gHumanPlayer.addToHand("Dwarven Hall");
gHumanPlayer.addToHand("Walled Outpost");
gHumanPlayer.addToHand("Ord Stone");
gHumanPlayer.addToHand("Craig Scout");
gHumanPlayer.addToHand("Axe Captain");
gHumanPlayer.addToHand("Clay Ram");
gHumanPlayer.addToDeck("Dwarven Hall", 1);
gHumanPlayer.addToDeck("Clay Ram", 2);
gHumanPlayer.addToDeck("Axe Captain", 3);
gHumanPlayer.addToDeck("Earthworks", 4);
gHumanPlayer.addToDeck("Clay Ram", 5);
gAIPlayer.addToHand("Grove");
gAIPlayer.addToHand("Elven Scout");
gAIPlayer.addToHand("Tenderfoot Archer");
gAIPlayer.addToHand("Elven Scout");
gAIPlayer.addToHand("Treeherd");
gAIPlayer.addToHand("Dellenari Beastmaster");
gAIPlayer.addToHand("Ascent");
gAIPlayer.addToDeck("Grove", 1);
gAIPlayer.addToDeck("Treeherd", 2);
gAIPlayer.addToDeck("Dellenari Beastmaster", 3);
gAIPlayer.addToDeck("Bindweed Poultice", 4);
gAIPlayer.addToDeck("Grove", 5);
gAIPlayer.addToDeck("Tree Mother", 6);
createEntity("Flux Well", createLocation(1, 1));
createEntity("Flux Well", createLocation(1, 6));
createEntity("Flux Well", createLocation(7, 1));
createEntity("Flux Well", createLocation(7, 6));
for (int n = 0; n < NUM_BLERBS; n++) gShown[n] = false;
gAIPlayer.addFlux(-gAIPlayer.getFlux() + 10);
gHumanPlayer.addFlux(-gHumanPlayer.getFlux() + 10);
gAIPlayer.addGlory(-gAIPlayer.getGlory());
gHumanPlayer.addGlory(-gHumanPlayer.getGlory());
fogMap();
lightFog(gHumanPlayer, 0, 0, 1, 5);
lightFog(gAIPlayer, 4, 0, 8, 7);
wipeEffect();
showInfo();
}
void onNewRound()
{
if (gHumanPlayer.getGlory() >= 4)
{
if (loadData(gHumanPlayer, 0) < 4)
saveData(gHumanPlayer, 0, 4);
gFinished = true;
DlgBox box = createDialog("Victory!", "Congratulations, you passed the fourth mission. Now you can start the second part of the campaign.");
box.addOption("Play Again", "", 3);
box.addOption("Finish", "", 4);
box.show(gHumanPlayer);
endGame(gHumanPlayer);
}
else if (gAIPlayer.getGlory() > 2)
{
gFinished = true;
DlgBox box = createDialog("", "You lost. Your enemy reached 4 Glory. That's ok you can just try again.");
box.addOption("Try Again", "", 3);
box.show(gHumanPlayer);
}
}
void onPlayersTurn(Player player)
{
if (player == gHumanPlayer)
showInfo();
}
int getNextDialog()
{
if (!gShown[0]) return (0);
if (!gShown[1]) return (1);
return (NUM_BLERBS - 1); // nothing
}
void showInfo()
{
//statusMsg(nullPlayer,"showInfo");
int index = getNextDialog();
gShown[index] = true;
switch (index)
{
case 0:
{
string msg = "Now you have two second domain level creatures with 3 flux cost. {C,Axe Captain} and {C,Clay Ram}";
infoBox("Mission 4.", msg , true, nullEntity, nullCard, nullLocation, nullPlayer, false, 0);
}
break;
case 1:
{
string msg = "Decide yourself which creature in which case is more useful.";
infoBox("", msg, false, nullEntity, nullCard, nullLocation, nullPlayer, false, 0);
}
break;
}
}