OBBLM Question
Moderator: TFF Mods
-
- Rookie
- Posts: 38
- Joined: Fri Oct 31, 2014 4:10 pm
- Location: USA
- Contact:
OBBLM Question
How can I add a few new Star Players that were created/developed specifically for our league?
Reason: ''
-
- Rookie
- Posts: 38
- Joined: Fri Oct 31, 2014 4:10 pm
- Location: USA
- Contact:
- Darkson
- Da Spammer
- Posts: 24047
- Joined: Mon Aug 12, 2002 9:04 pm
- Location: The frozen ruins of Felstad
- Contact:
Re: OBBLM Question
Share for anyone else wanting to know?
Reason: ''
Currently an ex-Blood Bowl coach, most likely to be found dying to Armoured Skeletons in the frozen ruins of Felstad, or bleeding into the arena sands of Rome or burning rubber for Mars' entertainment.
- elde
- Rookie
- Posts: 33
- Joined: Mon Jan 19, 2015 4:36 pm
Re: OBBLM Question
Star Players are located in the game data files, in
/lib/game_data.php
They're in the $stars -array, and you can copy-paste your own at the end of the list. Each is listed with their unique id (might need to check the other datafiles too to get this right), ma/st/ag/av, skills as another array (skill id's are listed in the same file) and the array containing all the races that can hire that particular star player.
After modifying game_data.php, upload it to your site, log in as an admin, and in the core panel synchronize database with game files. You're all set!
An example of the star player array:
/lib/game_data.php
They're in the $stars -array, and you can copy-paste your own at the end of the list. Each is listed with their unique id (might need to check the other datafiles too to get this right), ma/st/ag/av, skills as another array (skill id's are listed in the same file) and the array containing all the races that can hire that particular star player.
After modifying game_data.php, upload it to your site, log in as an admin, and in the core panel synchronize database with game files. You're all set!
An example of the star player array:
Code: Select all
'Barik Farblast' => array (
'id' => -5,
'ma' => 6,
'st' => 3,
'ag' => 3,
'av' => 8,
'def' => array (99, 42, 45, 105, 58, 12, 59),
'cost' => 60000,
'icon' => 'star',
'races' => array(4),
),
Reason: ''