Difference between revisions of "Config Functions"
From theFarWilds
(New page: Scripting Config Game Functions. You can only call these from inside configGame(). See Script Functions void addAIPlayer(string PlayerName,string Avatar,int teamID); // all par...) |
(→Methods) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | [[ | + | [[Category:Scripts]] |
− | + | These '''config functions''' may only be called from inside [[Hook Functions|configGame()]]. | |
− | void addAIPlayer(string | + | == 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 | + | void '''setMapSize'''( int x, int y ); |
− | void setNumPlayers(int) | + | // 3 <= x <= 17 |
− | // | + | // 3 <= y <= 17 |
− | void setGloryGoal(int) | + | |
− | void setMapSeed(int | + | void '''setNumPlayers'''( int numPlayers ); |
+ | // 1 <= n <= 4 | ||
+ | |||
+ | void '''setGloryGoal'''( int gloryGoal ); | ||
+ | |||
+ | void '''setMapSeed'''( int mapSeed ); | ||
// 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) | + | |
+ | void '''setNumFluxWells'''( int numFluxWells ); | ||
+ | |||
+ | void '''dontNeedDecks'''(); | ||
+ | // won't ask the player to set a deck when they join | ||
+ | |||
+ | void '''setTurnTime'''(int timeInSec); | ||
+ | void '''setPlayerTimeLimit'''(int timeInSec); | ||
+ | // time limit for the whole game |
Latest revision as of 13:51, 25 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 numPlayers ); // 1 <= n <= 4 void setGloryGoal( int gloryGoal ); void setMapSeed( int mapSeed ); // you can set this if you always want the script to be on the same map void setNumFluxWells( int numFluxWells ); void dontNeedDecks(); // won't ask the player to set a deck when they join void setTurnTime(int timeInSec); void setPlayerTimeLimit(int timeInSec); // time limit for the whole game