Sylv8
//Dellenari Beastmaster power
#include 159
int gInfoIndex;
int NUM_BLERBS = 11;
bool[] gShown(NUM_BLERBS);
void reset()
{
setMapSeed(10563);
commonReset();
gHumanPlayer.addToHand("Grove");
gHumanPlayer.addToHand("Emerald Spring");
gHumanPlayer.addToHand("Valedune Arborist");
gHumanPlayer.addToHand("Mosslight Slor");
gHumanPlayer.addToHand("Thistle Falcon");
gHumanPlayer.addToHand("Entangle");
gHumanPlayer.addToHand("Bindweed Poultice");
gHumanPlayer.addToDeck("Grove", 1);
gHumanPlayer.addToDeck("Stone Mauler", 2);
gHumanPlayer.addToDeck("Great Oak", 3);
gHumanPlayer.addToDeck("Bamboo Watch Tower", 4);
gHumanPlayer.addToDeck("The Coldstream Guard", 5);
gHumanPlayer.addToDeck("Bindweed Poultice", 6);
gHumanPlayer.addToDeck("Dellenari Beastmaster", 7);
gHumanPlayer.addToDeck("Dimwitted Manticore", 8);
gHumanPlayer.addToDeck("Entangle", 9);
gHumanPlayer.addToDeck("The Coldstream Guard", 10);
gAIPlayer.addToHand("Dwarven Hall");
gAIPlayer.addToHand("Dwarven Hall");
gAIPlayer.addToHand("Craig Scout");
gAIPlayer.addToHand("Axe Captain");
gAIPlayer.addToHand("Apprentice Timesap");
gAIPlayer.addToHand("Dwarven Warrior");
gAIPlayer.addToDeck("Craig Scout", 1);
gAIPlayer.addToDeck("Blunderbuss Squad", 2);
gAIPlayer.addToDeck("Shield Warrior", 3);
gAIPlayer.addToDeck("Axe Captain", 4);
gAIPlayer.addToDeck("Clay Ram", 5);
gAIPlayer.addToDeck("Craig Scout", 6);
gAIPlayer.addToDeck("Blunderbuss Squad", 7);
gAIPlayer.addToDeck("Shield Warrior", 8);
gAIPlayer.addToDeck("Axe Captain", 9);
gAIPlayer.addToDeck("Clay Ram", 10);
createEntity("Flux Well", createLocation(2, 2));
createEntity("Flux Well", createLocation(2, 10));
createEntity("Flux Well", createLocation(6, 6));
createEntity("Flux Well", createLocation(10, 2));
createEntity("Flux Well", createLocation(10, 10));
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, 2, 5);
lightFog(gAIPlayer, 7, 0, 12, 11);
wipeEffect();
showInfo();
}
void onNewRound()
{
if (gHumanPlayer.getGlory() >= 8)
{
if (loadData(gHumanPlayer, 0) < 8)
saveData(gHumanPlayer, 0, 8);
gFinished = true;
endGame(gHumanPlayer);
DlgBox box = createDialog("Victory!", "Congratulations, you passed the last mission. Claim your prize!");
box.addOption("Play Again", "", 3);
box.addOption("Finish", "", 4);
box.show(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);
return (NUM_BLERBS - 1); // nothing
}
void showInfo()
{
//statusMsg(nullPlayer,"showInfo");
int index = getNextDialog();
gShown[index] = true;
switch (index)
{
case 0:
{
string msg = "This is the final Sylvan mission. Do your best to win.";
infoBox("Mission 8.", msg , true, nullEntity, nullCard, nullLocation, nullPlayer, false, 0);
}
break;
}
}