Difference between revisions of "Config Functions"

From theFarWilds
Jump to: navigation, search
Line 1: Line 1:
[[Scripting]]
+
[[Category:Scripts]]
Config Game Functions. You can only call these from inside configGame(). See [[Script Functions]]
+
These '''config functions''' may only be called from inside [[Hook Functions|configGame()]].
  
  void '''addAIPlayer'''(string PlayerName,string Avatar,int teamID);  
+
== Methods ==
 +
  void '''addAIPlayer'''( string name, string avatar, int team );
 
  // all parameters are ignored for now
 
  // all parameters are ignored for now
  void '''setMapSize'''(int x,int y)
+
  // 3 to 17
+
  void '''setMapSize'''( int x, int y );
  void '''setNumPlayers'''(int)
+
  // 3 <= x <= 17
  // from 1 to 4
+
// 3 <= y <= 17
  void '''setGloryGoal'''(int)
+
  void '''setMapSeed'''(int seed)
+
  void '''setNumPlayers'''( int n );
 +
  // 1 <= n <= 4
 +
 +
  void '''setGloryGoal'''( int n );
 +
 +
  void '''setMapSeed'''( int seed );
 
  // you can set this if you always want the script to be on the same map
 
  // you can set this if you always want the script to be on the same map
  void '''setNumFluxWells'''(int numberOfWells)
+
  void '''dontNeedDecks'''();  
+
  void '''setNumFluxWells'''( int numberOfWells );
  // wont ask the player to set a deck when they join
+
 +
  void '''dontNeedDecks'''();
 +
  // won't ask the player to set a deck when they join

Revision as of 21:10, 3 April 2010

These config functions may only be called from inside configGame().

Methods

void addAIPlayer( string name, string avatar, int team );
// all parameters are ignored for now

void setMapSize( int x, int y );
// 3 <= x <= 17
// 3 <= y <= 17

void setNumPlayers( int n );
// 1 <= n <= 4

void setGloryGoal( int n );

void setMapSeed( int seed );
// you can set this if you always want the script to be on the same map

void setNumFluxWells( int numberOfWells );

void dontNeedDecks();
// won't ask the player to set a deck when they join