Login    Forum    Search    FAQ

Board index » Scenarios & Scripting




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Raid on Dunmar
 Post Posted: Tue Mar 23, 2010 2:16 am 
Offline

Joined: Tue Jan 08, 2008 2:07 am
Posts: 1045
This is meant for 2 people vs the AI.

{Script,Raid on Dunmar,17} to try it out.

Code:
void configGame()
{
   setMapSeed(20);
   setNumPlayers(3);
   addAIPlayer("Evil Fish","Crypt Doctor",0);
}

void beforeStart()
{
   infoBox("Raid!","Can you destroy Castle Dunmar?");   
   Player aiPlayer=getAIPlayer(0);
   createEntity("Foul Obelisk",4,10,aiPlayer);
   createEntity("Foul Obelisk",10,3,aiPlayer);
   createEntity("Foul Obelisk",5,6,aiPlayer);
   createEntity("Belfry of the Restless",6,7,aiPlayer);
   createEntity("Bloodling",7,10,aiPlayer);
   createEntity("Bloodling",5,9,aiPlayer);
   createEntity("Bloodling",9,10,aiPlayer);
   createEntity("Bloodling",8,5,aiPlayer);
   createEntity("Vampiric Manticore",8,4,aiPlayer);
   createEntity("Duchess of Dunmar",7,6,aiPlayer);
   createEntity("Castle Dunmar",6,6,aiPlayer);
   createEntity("Graveyard",6,5,aiPlayer);
   createEntity("Graveyard",7,5,aiPlayer);
   createEntity("Graveyard",7,6,aiPlayer);

   setTerrain(createLocation(5,5),1,1);
   createEntity("Ghost Ship",5,5,aiPlayer);


   int ds=aiPlayer.deckSize();
   for(int n=0; n<ds; n++)
   {
      aiPlayer.removeDeckCard(0);
   }

   aiPlayer.addToDeck("Lysis",0);
   aiPlayer.addToDeck("Lysis",0);
   aiPlayer.addToDeck("Lysis",0);
   aiPlayer.addToDeck("Lysis",0);
}


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 1 post ] 

Board index » Scenarios & Scripting


Who is online

Users browsing this forum: No registered users and 12 guests

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron