proudmac
Landlubber
*****NOTE***** VERY IMPORTANT******
DO NOT CHANGE ANY GAME FILES BEFORE SAVING OIRGINAL COPIES OF THE FILES YOU ARE MAKING CHANGES TOO.
**Starting Money**
Open the [ RPGUtilite.c ] text file located in C:\Program Files\Playlogic\Age of Pirates 2\Program\characters. From here use ctrl+f to search for the code line [ pchar.money ]. Simply just change the number value that follows to the desired amount of starting funds. Here you will notice
it will only show money amounts for the Adventure and Merchant characters, but you can add the code line [ pchar.money = 99999999; ] between the [ EquipCharacterbyItem ] and [ break: ] for
the Corsair character as well.
**Starting Sword, Spyglass, And Pistol**
Open the [ RPGUtilite.c ] text file located in C:\Program Files\Playlogic\Age of Pirates 2\Program\characters. From here use ctrl+f to search for the code line [ void initMainCharacterItem() ]. Here you will notice it will show the starting items for the al 3 starting characters. Anywere you see [ pistol# ] and [ blade# ] and [ spyglass# ] you can change # to change the weapon. The weapon list in located in the text file [ initItems.c ] located in C:\Program Files\Playlogic\Age of Pirates 2\Program\ITEMS.
**Starting Stats = All 10**
Open the [ RPGUtilite.c ] text file located in C:\Program Files\Playlogic\Age of Pirates 2\Program\characters. From here use ctrl+f to search for the code line [ case "Merchant": ] , [ case
"Corsair": ] or [ case "Adventurer": ] depending on the character you want to change if not all 3. Right below the code line listed you should see [ SetSPECIAL(ch, #,#,#,#,#,#,#); , Here simply
just change the numbers in the brackets to 10's. Values above 10 do not work.
**Starting Ship**
Open the [ RPGUtilite.c ] text file located in C:\Program Files\Playlogic\Age of Pirates 2\Program\characters. From here use ctrl+f to search for the code line [ pchar.Ship.Type = GenerateShip ]. Here you will see the oirginal code line is [ pchar.Ship.Type = GenerateShip((SHIP_LUGGER + rand(2) - 1), 0); ]. Here simply replace [ LUGGER ] with the desired ship name (note that all ships are listed in the [ Ships_init.c ] text file located in C:\Program Files\Playlogic\Age of Pirates 2\Program\Ships.). But unlike in Age of Pirates 1 there is this little addon to the code [ + rand(2) - 1) ], This was added to randomly give you a ship within 3 slots of your starting ship... its stupid I know. So you can erase it so you know what ship you get everytime. When your done you code line will look like this [ pchar.Ship.Type = GenerateShip(SHIP_SHIPNAME, 0); ].
**Ship Stats**
Open the [ Ships_init.c ] text file located in C:\Program Files\Playlogic\Age of Pirates 2\Program\Ships. From here all ship classes in the game are listed from worst to best. Simply scroll down threw the list and change any stats on the ship or ships of your choice. ******NOTE****** WHEN CHANGING THE STATS OF A SHIP PLEASE UNDERSTAND YOU ARE CHANGING IT FOR THE ENTIRE GAME, THIS MEANS THE GAME CONTROLLED SHIPS WILL HAVE ALL THE CHANGES AS YOUR OWN SHIPS.
**Cannon Stats**
Open the [ Cannons_init.c ] text file located in C:\Program Files\Playlogic\Age of Pirates 2\Program\CANNONS. From here all cannons in the game are listed from smallest to largest starting will the CULVERINE type cannon and then the CANNON type cannon. Simply scroll down threw the list and change the stats on the cannon or cannons of your choice. ******NOTE****** WHEN CHANGING THE STATS OF A CANNON PLEASE UNDERSTAND YOU ARE CHANGING IT FOR THE ENTIRE GAME, THIS MEANS THE GAME CONTROLLED CANNONS ON SHIPS AND FORTS WILL HAVE ALL THE CHANGES AS YOUR OWN SHIPS AND FORTS.
**Weapon Stats**
Open the [ initItems.c ] text file located in C:\Program Files\Playlogic\Age of Pirates 2\Program\ITEMS. From here all the weapons in the game will be listed. Simply change the stats on the weapon or weapons of your choice. ******NOTE****** WHEN CHANGING THE STATS OF A WEAPON PLEASE UNDERSTAND YOU ARE CHANGING IT FOR THE ENTIRE GAME, THIS MEANS THE GAME CONTROLLED WEAPONS ON ENEMY CREW AND PORT SOLDIERS WILL HAVE ALL THE CHANGES AS YOUR OWN WEAPONS.
**No Stat Penility For High Class Ships**
Open the [ RPGUtilite.c ] text file located in C:\Program Files\Playlogic\Age of Pirates 2\Program\characters. From here use ctrl+f to search for the code line [ switch (shipClass) ]. Here you will see [ case 1 : needSkill = 95; break; ] right down to [ case 7 : needSkill = 0; break; ]. Simply change the # after the = sign to 0, and now you will have no stat penility for having a high class
ship. ******NOTE****** I WENT LOOKING FOR THIS BECAUSE IF YOU CHANGE THE CLASS OF THE SHIP IN THE SHIPS TEXT FILE TO 7 SO YOU WONT HAVE A STAT PENILITY YOU CANNOT UPGRADE IT AT THE PIRATE HAVEN IN BERMUDES AND IF YOUR SHIP IS SUPPOSED TO HAVE A WARDROOM DUE TO ITS CLASS SIZE, NOW IT WILL NOT BECUASE IT IS PROGRAMMED AS CLASS 7.
**Item Stats**
Open the [ initGoods.c ] text file located in C:\Program Files\Playlogic\Age of Pirates 2\Program\STORE. Here all the items are listed in the game. Simply just edit the item or items you want. Usually I have just changed the weight of some items.
**All Abilities At Start Of Game**
Open the [ RPGUtilite.c ] text file located in C:\Program Files\Playlogic\Age of Pirates 2\Program\characters. From here use ctrl+f to search for the code line [ SetCharacterPerk(pchar, sGlobalTemp); // ïåðê ôëàãà íàöèè ]. Right After that code line add
SetCharacterPerk(pchar, "FlagPir");
SetCharacterPerk(pchar, "FlagEng");
SetCharacterPerk(pchar, "FlagFra");
SetCharacterPerk(pchar, "FlagSpa");
SetCharacterPerk(pchar, "FlagHol");
SetCharacterPerk(pchar, "BasicDefense");
SetCharacterPerk(pchar, "AdvancedDefense");
SetCharacterPerk(pchar, "Ciras");
SetCharacterPerk(pchar, "CriticalHit");
SetCharacterPerk(pchar, "HPPlus");
SetCharacterPerk(pchar, "HardHitter");
SetCharacterPerk(pchar, "Tireless");
SetCharacterPerk(pchar, "EnergyPlus");
SetCharacterPerk(pchar, "BladeDancer");
SetCharacterPerk(pchar, "SwordplayProfessional");
SetCharacterPerk(pchar, "Rush");
SetCharacterPerk(pchar, "Sliding");
SetCharacterPerk(pchar, "Gunman");
SetCharacterPerk(pchar, "GunProfessional");
SetCharacterPerk(pchar, "Grus");
SetCharacterPerk(pchar, "Medic");
SetCharacterPerk(pchar, "SharedExperience");
SetCharacterPerk(pchar, "IronWill");
SetCharacterPerk(pchar, "ShipEscape");
SetCharacterPerk(pchar, "Trustworthy");
SetCharacterPerk(pchar, "Brander");
SetCharacterPerk(pchar, "Aboard");
SetCharacterPerk(pchar, "Troopers");
SetCharacterPerk(pchar, "LongRangeGrappling");
SetCharacterPerk(pchar, "GrapplingProfessional");
SetCharacterPerk(pchar, "MusketsShoot");
SetCharacterPerk(pchar, "BasicCommerce");
SetCharacterPerk(pchar, "AdvancedCommerce");
SetCharacterPerk(pchar, "FastReload");
SetCharacterPerk(pchar, "ImmediateReload");
SetCharacterPerk(pchar, "HullDamageUp");
SetCharacterPerk(pchar, "SailsDamageUp");
SetCharacterPerk(pchar, "CrewDamageUp");
SetCharacterPerk(pchar, "CriticalShoot");
SetCharacterPerk(pchar, "LongRangeShoot");
SetCharacterPerk(pchar, "CannonProfessional");
SetCharacterPerk(pchar, "Carpenter");
SetCharacterPerk(pchar, "Builder");
SetCharacterPerk(pchar, "LightRepair");
SetCharacterPerk(pchar, "InstantRepair");
SetCharacterPerk(pchar, "BasicBattleState");
SetCharacterPerk(pchar, "AdvancedBattleState");
SetCharacterPerk(pchar, "ShipDefenseProfessional");
SetCharacterPerk(pchar, "ShipSpeedUp");
SetCharacterPerk(pchar, "ShipTurnRateUp");
SetCharacterPerk(pchar, "StormProfessional");
SetCharacterPerk(pchar, "WindCatcher");
SetCharacterPerk(pchar, "SailsMan");
SetCharacterPerk(pchar, "Turn180");
SetCharacterPerk(pchar, "SandbankManeuver");
SetCharacterPerk(pchar, "SailingProfessional");
SetCharacterPerk(pchar, "Doctor1");
SetCharacterPerk(pchar, "Doctor2");
Or just the ones you want, and when your done it should look like this:
ch.skill.freeskill = 0;
ch.Skill.FreeSPECIAL = 0;
sGlobalTemp = "Flag" + NationShortName(sti(pchar.nation));
SetCharacterPerk(pchar, sGlobalTemp); // ïåðê ôëàãà íàöèè
SetCharacterPerk(pchar, "FlagPir");
SetCharacterPerk(pchar, "FlagEng");
SetCharacterPerk(pchar, "FlagFra");
SetCharacterPerk(pchar, "FlagSpa");
SetCharacterPerk(pchar, "FlagHol");
SetCharacterPerk(pchar, "BasicDefense");
SetCharacterPerk(pchar, "AdvancedDefense");
SetCharacterPerk(pchar, "Ciras");
SetCharacterPerk(pchar, "CriticalHit");
SetCharacterPerk(pchar, "HPPlus");
SetCharacterPerk(pchar, "HardHitter");
SetCharacterPerk(pchar, "Tireless");
SetCharacterPerk(pchar, "EnergyPlus");
SetCharacterPerk(pchar, "BladeDancer");
SetCharacterPerk(pchar, "SwordplayProfessional");
SetCharacterPerk(pchar, "Rush");
SetCharacterPerk(pchar, "Sliding");
SetCharacterPerk(pchar, "Gunman");
SetCharacterPerk(pchar, "GunProfessional");
SetCharacterPerk(pchar, "Grus");
SetCharacterPerk(pchar, "Medic");
SetCharacterPerk(pchar, "SharedExperience");
SetCharacterPerk(pchar, "IronWill");
SetCharacterPerk(pchar, "ShipEscape");
SetCharacterPerk(pchar, "Trustworthy");
SetCharacterPerk(pchar, "Brander");
SetCharacterPerk(pchar, "Aboard");
SetCharacterPerk(pchar, "Troopers");
SetCharacterPerk(pchar, "LongRangeGrappling");
SetCharacterPerk(pchar, "GrapplingProfessional");
SetCharacterPerk(pchar, "MusketsShoot");
SetCharacterPerk(pchar, "BasicCommerce");
SetCharacterPerk(pchar, "AdvancedCommerce");
SetCharacterPerk(pchar, "FastReload");
SetCharacterPerk(pchar, "ImmediateReload");
SetCharacterPerk(pchar, "HullDamageUp");
SetCharacterPerk(pchar, "SailsDamageUp");
SetCharacterPerk(pchar, "CrewDamageUp");
SetCharacterPerk(pchar, "CriticalShoot");
SetCharacterPerk(pchar, "LongRangeShoot");
SetCharacterPerk(pchar, "CannonProfessional");
SetCharacterPerk(pchar, "Carpenter");
SetCharacterPerk(pchar, "Builder");
SetCharacterPerk(pchar, "LightRepair");
SetCharacterPerk(pchar, "InstantRepair");
SetCharacterPerk(pchar, "BasicBattleState");
SetCharacterPerk(pchar, "AdvancedBattleState");
SetCharacterPerk(pchar, "ShipDefenseProfessional");
SetCharacterPerk(pchar, "ShipSpeedUp");
SetCharacterPerk(pchar, "ShipTurnRateUp");
SetCharacterPerk(pchar, "StormProfessional");
SetCharacterPerk(pchar, "WindCatcher");
SetCharacterPerk(pchar, "SailsMan");
SetCharacterPerk(pchar, "Turn180");
SetCharacterPerk(pchar, "SandbankManeuver");
SetCharacterPerk(pchar, "SailingProfessional");
SetCharacterPerk(pchar, "Doctor1");
SetCharacterPerk(pchar, "Doctor2");
SetCharacterPerk(pchar, "Energaiser"); // ñêðûòûé ïåðê äàåò 1.5 ê ïðèðîñòó ýíåðãèè, äàåòñÿ ÃÃ è áîññàì óðîâíåé
// íà÷àëüíûå ñêèëû çàäàòü
**Starting Items**
Open the [ RPGUtilite.c ] text file located in C:\Program Files\Playlogic\Age of Pirates 2\Program\characters. From here use ctrl+f to search for the code line [ case "Adventurer": ] , [ case "Corsair": ] ,or [ case "Merchant": ] depending on your desired class, Below you will see the code lines TakenItems(Pchar, "potion1", 5); and TakeNItems(Pchar, "bullet", 10); or something close depending what class your looking at. Simply change where you see "potion1" to the desired item name also the following # as shown above it was 5, just indicates the amount of that item you start with, and all items are listed in [ initItems.c ] located in C:\Program Files\Playlogic\Age of Pirates 2\Program\ITEMS. Also the code line can be added multiple times to give multiple items. For example my own personal mod looks like this.
TakenItems(Pchar, "blade21", 4);
TakenItems(Pchar, "potion2", 100);
TakenItems(Pchar, "pistol5", 4);
TakenItems(Pchar, "cirass5", 5);
TakeNItems(Pchar, "bullet", 400);
**Don't lose Starting Items and Money with Blood** (Credit for this Mod goes to NeonMouko from GameFAQS)
Open the [ reaction_functions.c ] text file located in C:\Program Files\Playlogic\Age of Pirates 2\Program\Quests. From here use ctrl+f to search for the code line [ void CapBloodLineInit(string qName) ]. In this section, you'll see this:
void CapBloodLineInit(string qName)
{
//Âîçâðàùàåì âñå ïîñëå ïëåíà
LAi_SetCurHPMax(Pchar);
LAi_SetPlayerType(Pchar);
//Ðàáñòâî
LAi_SetImmortal(Pchar, false);
DeleteAttribute(Pchar, "items");
DeleteAttribute(Pchar, "equip");
DeleteAttribute(Pchar, "ship");
DeleteAttribute(Pchar, "ShipSails.gerald_name");
Pchar.ship.type = SHIP_NOTUSED;
/*GiveItem2Character(Pchar, "unarmed");
EquipCharacterByItem(Pchar, "unarmed");*/
Pchar.money = 0;
This is what deletes your inventory, items AND money. Delete the "items" line and adjust the number beside Pchar.money. This is what I have:
void CapBloodLineInit(string qName)
{
//Âîçâðàùàåì âñå ïîñëå ïëåíà
LAi_SetCurHPMax(Pchar);
LAi_SetPlayerType(Pchar);
//Ðàáñòâî
LAi_SetImmortal(Pchar, false);
DeleteAttribute(Pchar, "equip");
DeleteAttribute(Pchar, "ship");
DeleteAttribute(Pchar, "ShipSails.gerald_name");
Pchar.ship.type = SHIP_NOTUSED;
/*GiveItem2Character(Pchar, "unarmed");
EquipCharacterByItem(Pchar, "unarmed");*/
Pchar.money = 999999999;
Now I have money and my items are not taken from me. However, the second you step in town, you'll be accosted by a guard. What's the point of having weapons in the mod if you can't keep any of them, hm? This means you have to edit one more place, which will be in the next message.
use ctrl+f to search for the code line [ void DetectBlades() ]
This is what the game normally has:
bool bblades = ( sweapon != "unarmed") && (sweapon != "blade5" ) && (sweapon!= "");
bool bguns = (FindCharacterItemByGroup(pchar, GUN_ITEM_TYPE) != "");
if(bblades || bguns)
This is what I edited it to:
bool bblades = ( sweapon != "unarmed") && (sweapon != "blade5" ) && (sweapon != "blade27" ) && (sweapon != "blade28" ) && (sweapon != "blade32" ) && (sweapon!= "");
if(bblades)
With this edit, the guards do not harass me at all over my weapons - or, in fact, any weapons. I'm not sure how necessary most of the data I inputted in actually is, as the guards now ignore ALL weapons and not just the exceptions, but it makes it so that the guards do not take any of my weapons from me.
DO NOT CHANGE ANY GAME FILES BEFORE SAVING OIRGINAL COPIES OF THE FILES YOU ARE MAKING CHANGES TOO.
**Starting Money**
Open the [ RPGUtilite.c ] text file located in C:\Program Files\Playlogic\Age of Pirates 2\Program\characters. From here use ctrl+f to search for the code line [ pchar.money ]. Simply just change the number value that follows to the desired amount of starting funds. Here you will notice
it will only show money amounts for the Adventure and Merchant characters, but you can add the code line [ pchar.money = 99999999; ] between the [ EquipCharacterbyItem ] and [ break: ] for
the Corsair character as well.
**Starting Sword, Spyglass, And Pistol**
Open the [ RPGUtilite.c ] text file located in C:\Program Files\Playlogic\Age of Pirates 2\Program\characters. From here use ctrl+f to search for the code line [ void initMainCharacterItem() ]. Here you will notice it will show the starting items for the al 3 starting characters. Anywere you see [ pistol# ] and [ blade# ] and [ spyglass# ] you can change # to change the weapon. The weapon list in located in the text file [ initItems.c ] located in C:\Program Files\Playlogic\Age of Pirates 2\Program\ITEMS.
**Starting Stats = All 10**
Open the [ RPGUtilite.c ] text file located in C:\Program Files\Playlogic\Age of Pirates 2\Program\characters. From here use ctrl+f to search for the code line [ case "Merchant": ] , [ case
"Corsair": ] or [ case "Adventurer": ] depending on the character you want to change if not all 3. Right below the code line listed you should see [ SetSPECIAL(ch, #,#,#,#,#,#,#); , Here simply
just change the numbers in the brackets to 10's. Values above 10 do not work.
**Starting Ship**
Open the [ RPGUtilite.c ] text file located in C:\Program Files\Playlogic\Age of Pirates 2\Program\characters. From here use ctrl+f to search for the code line [ pchar.Ship.Type = GenerateShip ]. Here you will see the oirginal code line is [ pchar.Ship.Type = GenerateShip((SHIP_LUGGER + rand(2) - 1), 0); ]. Here simply replace [ LUGGER ] with the desired ship name (note that all ships are listed in the [ Ships_init.c ] text file located in C:\Program Files\Playlogic\Age of Pirates 2\Program\Ships.). But unlike in Age of Pirates 1 there is this little addon to the code [ + rand(2) - 1) ], This was added to randomly give you a ship within 3 slots of your starting ship... its stupid I know. So you can erase it so you know what ship you get everytime. When your done you code line will look like this [ pchar.Ship.Type = GenerateShip(SHIP_SHIPNAME, 0); ].
**Ship Stats**
Open the [ Ships_init.c ] text file located in C:\Program Files\Playlogic\Age of Pirates 2\Program\Ships. From here all ship classes in the game are listed from worst to best. Simply scroll down threw the list and change any stats on the ship or ships of your choice. ******NOTE****** WHEN CHANGING THE STATS OF A SHIP PLEASE UNDERSTAND YOU ARE CHANGING IT FOR THE ENTIRE GAME, THIS MEANS THE GAME CONTROLLED SHIPS WILL HAVE ALL THE CHANGES AS YOUR OWN SHIPS.
**Cannon Stats**
Open the [ Cannons_init.c ] text file located in C:\Program Files\Playlogic\Age of Pirates 2\Program\CANNONS. From here all cannons in the game are listed from smallest to largest starting will the CULVERINE type cannon and then the CANNON type cannon. Simply scroll down threw the list and change the stats on the cannon or cannons of your choice. ******NOTE****** WHEN CHANGING THE STATS OF A CANNON PLEASE UNDERSTAND YOU ARE CHANGING IT FOR THE ENTIRE GAME, THIS MEANS THE GAME CONTROLLED CANNONS ON SHIPS AND FORTS WILL HAVE ALL THE CHANGES AS YOUR OWN SHIPS AND FORTS.
**Weapon Stats**
Open the [ initItems.c ] text file located in C:\Program Files\Playlogic\Age of Pirates 2\Program\ITEMS. From here all the weapons in the game will be listed. Simply change the stats on the weapon or weapons of your choice. ******NOTE****** WHEN CHANGING THE STATS OF A WEAPON PLEASE UNDERSTAND YOU ARE CHANGING IT FOR THE ENTIRE GAME, THIS MEANS THE GAME CONTROLLED WEAPONS ON ENEMY CREW AND PORT SOLDIERS WILL HAVE ALL THE CHANGES AS YOUR OWN WEAPONS.
**No Stat Penility For High Class Ships**
Open the [ RPGUtilite.c ] text file located in C:\Program Files\Playlogic\Age of Pirates 2\Program\characters. From here use ctrl+f to search for the code line [ switch (shipClass) ]. Here you will see [ case 1 : needSkill = 95; break; ] right down to [ case 7 : needSkill = 0; break; ]. Simply change the # after the = sign to 0, and now you will have no stat penility for having a high class
ship. ******NOTE****** I WENT LOOKING FOR THIS BECAUSE IF YOU CHANGE THE CLASS OF THE SHIP IN THE SHIPS TEXT FILE TO 7 SO YOU WONT HAVE A STAT PENILITY YOU CANNOT UPGRADE IT AT THE PIRATE HAVEN IN BERMUDES AND IF YOUR SHIP IS SUPPOSED TO HAVE A WARDROOM DUE TO ITS CLASS SIZE, NOW IT WILL NOT BECUASE IT IS PROGRAMMED AS CLASS 7.
**Item Stats**
Open the [ initGoods.c ] text file located in C:\Program Files\Playlogic\Age of Pirates 2\Program\STORE. Here all the items are listed in the game. Simply just edit the item or items you want. Usually I have just changed the weight of some items.
**All Abilities At Start Of Game**
Open the [ RPGUtilite.c ] text file located in C:\Program Files\Playlogic\Age of Pirates 2\Program\characters. From here use ctrl+f to search for the code line [ SetCharacterPerk(pchar, sGlobalTemp); // ïåðê ôëàãà íàöèè ]. Right After that code line add
SetCharacterPerk(pchar, "FlagPir");
SetCharacterPerk(pchar, "FlagEng");
SetCharacterPerk(pchar, "FlagFra");
SetCharacterPerk(pchar, "FlagSpa");
SetCharacterPerk(pchar, "FlagHol");
SetCharacterPerk(pchar, "BasicDefense");
SetCharacterPerk(pchar, "AdvancedDefense");
SetCharacterPerk(pchar, "Ciras");
SetCharacterPerk(pchar, "CriticalHit");
SetCharacterPerk(pchar, "HPPlus");
SetCharacterPerk(pchar, "HardHitter");
SetCharacterPerk(pchar, "Tireless");
SetCharacterPerk(pchar, "EnergyPlus");
SetCharacterPerk(pchar, "BladeDancer");
SetCharacterPerk(pchar, "SwordplayProfessional");
SetCharacterPerk(pchar, "Rush");
SetCharacterPerk(pchar, "Sliding");
SetCharacterPerk(pchar, "Gunman");
SetCharacterPerk(pchar, "GunProfessional");
SetCharacterPerk(pchar, "Grus");
SetCharacterPerk(pchar, "Medic");
SetCharacterPerk(pchar, "SharedExperience");
SetCharacterPerk(pchar, "IronWill");
SetCharacterPerk(pchar, "ShipEscape");
SetCharacterPerk(pchar, "Trustworthy");
SetCharacterPerk(pchar, "Brander");
SetCharacterPerk(pchar, "Aboard");
SetCharacterPerk(pchar, "Troopers");
SetCharacterPerk(pchar, "LongRangeGrappling");
SetCharacterPerk(pchar, "GrapplingProfessional");
SetCharacterPerk(pchar, "MusketsShoot");
SetCharacterPerk(pchar, "BasicCommerce");
SetCharacterPerk(pchar, "AdvancedCommerce");
SetCharacterPerk(pchar, "FastReload");
SetCharacterPerk(pchar, "ImmediateReload");
SetCharacterPerk(pchar, "HullDamageUp");
SetCharacterPerk(pchar, "SailsDamageUp");
SetCharacterPerk(pchar, "CrewDamageUp");
SetCharacterPerk(pchar, "CriticalShoot");
SetCharacterPerk(pchar, "LongRangeShoot");
SetCharacterPerk(pchar, "CannonProfessional");
SetCharacterPerk(pchar, "Carpenter");
SetCharacterPerk(pchar, "Builder");
SetCharacterPerk(pchar, "LightRepair");
SetCharacterPerk(pchar, "InstantRepair");
SetCharacterPerk(pchar, "BasicBattleState");
SetCharacterPerk(pchar, "AdvancedBattleState");
SetCharacterPerk(pchar, "ShipDefenseProfessional");
SetCharacterPerk(pchar, "ShipSpeedUp");
SetCharacterPerk(pchar, "ShipTurnRateUp");
SetCharacterPerk(pchar, "StormProfessional");
SetCharacterPerk(pchar, "WindCatcher");
SetCharacterPerk(pchar, "SailsMan");
SetCharacterPerk(pchar, "Turn180");
SetCharacterPerk(pchar, "SandbankManeuver");
SetCharacterPerk(pchar, "SailingProfessional");
SetCharacterPerk(pchar, "Doctor1");
SetCharacterPerk(pchar, "Doctor2");
Or just the ones you want, and when your done it should look like this:
ch.skill.freeskill = 0;
ch.Skill.FreeSPECIAL = 0;
sGlobalTemp = "Flag" + NationShortName(sti(pchar.nation));
SetCharacterPerk(pchar, sGlobalTemp); // ïåðê ôëàãà íàöèè
SetCharacterPerk(pchar, "FlagPir");
SetCharacterPerk(pchar, "FlagEng");
SetCharacterPerk(pchar, "FlagFra");
SetCharacterPerk(pchar, "FlagSpa");
SetCharacterPerk(pchar, "FlagHol");
SetCharacterPerk(pchar, "BasicDefense");
SetCharacterPerk(pchar, "AdvancedDefense");
SetCharacterPerk(pchar, "Ciras");
SetCharacterPerk(pchar, "CriticalHit");
SetCharacterPerk(pchar, "HPPlus");
SetCharacterPerk(pchar, "HardHitter");
SetCharacterPerk(pchar, "Tireless");
SetCharacterPerk(pchar, "EnergyPlus");
SetCharacterPerk(pchar, "BladeDancer");
SetCharacterPerk(pchar, "SwordplayProfessional");
SetCharacterPerk(pchar, "Rush");
SetCharacterPerk(pchar, "Sliding");
SetCharacterPerk(pchar, "Gunman");
SetCharacterPerk(pchar, "GunProfessional");
SetCharacterPerk(pchar, "Grus");
SetCharacterPerk(pchar, "Medic");
SetCharacterPerk(pchar, "SharedExperience");
SetCharacterPerk(pchar, "IronWill");
SetCharacterPerk(pchar, "ShipEscape");
SetCharacterPerk(pchar, "Trustworthy");
SetCharacterPerk(pchar, "Brander");
SetCharacterPerk(pchar, "Aboard");
SetCharacterPerk(pchar, "Troopers");
SetCharacterPerk(pchar, "LongRangeGrappling");
SetCharacterPerk(pchar, "GrapplingProfessional");
SetCharacterPerk(pchar, "MusketsShoot");
SetCharacterPerk(pchar, "BasicCommerce");
SetCharacterPerk(pchar, "AdvancedCommerce");
SetCharacterPerk(pchar, "FastReload");
SetCharacterPerk(pchar, "ImmediateReload");
SetCharacterPerk(pchar, "HullDamageUp");
SetCharacterPerk(pchar, "SailsDamageUp");
SetCharacterPerk(pchar, "CrewDamageUp");
SetCharacterPerk(pchar, "CriticalShoot");
SetCharacterPerk(pchar, "LongRangeShoot");
SetCharacterPerk(pchar, "CannonProfessional");
SetCharacterPerk(pchar, "Carpenter");
SetCharacterPerk(pchar, "Builder");
SetCharacterPerk(pchar, "LightRepair");
SetCharacterPerk(pchar, "InstantRepair");
SetCharacterPerk(pchar, "BasicBattleState");
SetCharacterPerk(pchar, "AdvancedBattleState");
SetCharacterPerk(pchar, "ShipDefenseProfessional");
SetCharacterPerk(pchar, "ShipSpeedUp");
SetCharacterPerk(pchar, "ShipTurnRateUp");
SetCharacterPerk(pchar, "StormProfessional");
SetCharacterPerk(pchar, "WindCatcher");
SetCharacterPerk(pchar, "SailsMan");
SetCharacterPerk(pchar, "Turn180");
SetCharacterPerk(pchar, "SandbankManeuver");
SetCharacterPerk(pchar, "SailingProfessional");
SetCharacterPerk(pchar, "Doctor1");
SetCharacterPerk(pchar, "Doctor2");
SetCharacterPerk(pchar, "Energaiser"); // ñêðûòûé ïåðê äàåò 1.5 ê ïðèðîñòó ýíåðãèè, äàåòñÿ ÃÃ è áîññàì óðîâíåé
// íà÷àëüíûå ñêèëû çàäàòü
**Starting Items**
Open the [ RPGUtilite.c ] text file located in C:\Program Files\Playlogic\Age of Pirates 2\Program\characters. From here use ctrl+f to search for the code line [ case "Adventurer": ] , [ case "Corsair": ] ,or [ case "Merchant": ] depending on your desired class, Below you will see the code lines TakenItems(Pchar, "potion1", 5); and TakeNItems(Pchar, "bullet", 10); or something close depending what class your looking at. Simply change where you see "potion1" to the desired item name also the following # as shown above it was 5, just indicates the amount of that item you start with, and all items are listed in [ initItems.c ] located in C:\Program Files\Playlogic\Age of Pirates 2\Program\ITEMS. Also the code line can be added multiple times to give multiple items. For example my own personal mod looks like this.
TakenItems(Pchar, "blade21", 4);
TakenItems(Pchar, "potion2", 100);
TakenItems(Pchar, "pistol5", 4);
TakenItems(Pchar, "cirass5", 5);
TakeNItems(Pchar, "bullet", 400);
**Don't lose Starting Items and Money with Blood** (Credit for this Mod goes to NeonMouko from GameFAQS)
Open the [ reaction_functions.c ] text file located in C:\Program Files\Playlogic\Age of Pirates 2\Program\Quests. From here use ctrl+f to search for the code line [ void CapBloodLineInit(string qName) ]. In this section, you'll see this:
void CapBloodLineInit(string qName)
{
//Âîçâðàùàåì âñå ïîñëå ïëåíà
LAi_SetCurHPMax(Pchar);
LAi_SetPlayerType(Pchar);
//Ðàáñòâî
LAi_SetImmortal(Pchar, false);
DeleteAttribute(Pchar, "items");
DeleteAttribute(Pchar, "equip");
DeleteAttribute(Pchar, "ship");
DeleteAttribute(Pchar, "ShipSails.gerald_name");
Pchar.ship.type = SHIP_NOTUSED;
/*GiveItem2Character(Pchar, "unarmed");
EquipCharacterByItem(Pchar, "unarmed");*/
Pchar.money = 0;
This is what deletes your inventory, items AND money. Delete the "items" line and adjust the number beside Pchar.money. This is what I have:
void CapBloodLineInit(string qName)
{
//Âîçâðàùàåì âñå ïîñëå ïëåíà
LAi_SetCurHPMax(Pchar);
LAi_SetPlayerType(Pchar);
//Ðàáñòâî
LAi_SetImmortal(Pchar, false);
DeleteAttribute(Pchar, "equip");
DeleteAttribute(Pchar, "ship");
DeleteAttribute(Pchar, "ShipSails.gerald_name");
Pchar.ship.type = SHIP_NOTUSED;
/*GiveItem2Character(Pchar, "unarmed");
EquipCharacterByItem(Pchar, "unarmed");*/
Pchar.money = 999999999;
Now I have money and my items are not taken from me. However, the second you step in town, you'll be accosted by a guard. What's the point of having weapons in the mod if you can't keep any of them, hm? This means you have to edit one more place, which will be in the next message.
use ctrl+f to search for the code line [ void DetectBlades() ]
This is what the game normally has:
bool bblades = ( sweapon != "unarmed") && (sweapon != "blade5" ) && (sweapon!= "");
bool bguns = (FindCharacterItemByGroup(pchar, GUN_ITEM_TYPE) != "");
if(bblades || bguns)
This is what I edited it to:
bool bblades = ( sweapon != "unarmed") && (sweapon != "blade5" ) && (sweapon != "blade27" ) && (sweapon != "blade28" ) && (sweapon != "blade32" ) && (sweapon!= "");
if(bblades)
With this edit, the guards do not harass me at all over my weapons - or, in fact, any weapons. I'm not sure how necessary most of the data I inputted in actually is, as the guards now ignore ALL weapons and not just the exceptions, but it makes it so that the guards do not take any of my weapons from me.