Sylv7
//Dellenari Beastmaster power
#include 159
int gInfoIndex;
int NUM_BLERBS = 11;
bool[] gShown(NUM_BLERBS);
void reset()
{
gNextScript = 294;
commonReset();
setMapSeed(28956);
gHumanPlayer.addToHand("Grove");
gHumanPlayer.addToHand("Thistle Falcon");
gHumanPlayer.addToHand("Dellenari Beastmaster");
gHumanPlayer.addToHand("Dimwitted Manticore");
gHumanPlayer.addToHand("Valedune Arborist");
gHumanPlayer.addToHand("Bindweed Poultice");
gHumanPlayer.addToHand("Entangle");
gHumanPlayer.addToDeck("Emerald Spring", 2);
gHumanPlayer.addToDeck("Dellenari Beastmaster", 3);
gHumanPlayer.addToDeck("Grove", 1);
gHumanPlayer.addToDeck("Dimwitted Manticore", 4);
gHumanPlayer.addToDeck("The Coldstream Guard", 5);
gAIPlayer.addToHand("Dwarven Hall");
gAIPlayer.addToHand("Dwarven Hall");
gAIPlayer.addToHand("Craig Scout");
gAIPlayer.addToHand("Axe Captain");
gAIPlayer.addToHand("Apprentice Timesap");
gAIPlayer.addToHand("Clay Ram");
gAIPlayer.addToDeck("Craig Scout", 1);
gAIPlayer.addToDeck("Blunderbuss Squad", 2);
gAIPlayer.addToDeck("Shield Warrior", 3);
gAIPlayer.addToDeck("Axe Captain", 4);
gAIPlayer.addToDeck("Dwarven Warrior", 5);
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) < 7)
saveData(gHumanPlayer, 0, 7);
gFinished = true;
DlgBox box = createDialog("Victory!", "Congratulations, you passed the seventh mission. Keep it up.");
box.addOption("Play Again", "", 3);
box.addOption("Next Scenario", "", 2);
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 = "In this mission you have to fight with a significant part of the Mountain Folk army, try and make good use of {C,Dellenari Beastmaster}'s ability.";
infoBox("Mission 7.", msg , true, nullEntity, nullCard, nullLocation, nullPlayer, false, 0);
}
break;
}
}