Hello again,
i will try to clear it out a bit....
the file <abilityDescribe.txt> lists all personal and ship abilities/perks with description.
an example:
.
.
ShipSpeedUp {Increased Naval Speed} <--
first the in program name, in brackets is the displayed name
perkShipSpeedUp { <-- begin of the descripion with {
Increase maximum ship speed by 15%.
} <-- end of the description with }
ShipTurnRateUp {Increased Naval Maneuverability} <-- here begins the next perk
perkShipTurnRateUp {
Increase ship maneuverability by 15%.
}
StormProfessional {Batten the Hatches}
perkStormProfessional {
Decrease storm damage by 30%.
}
.
.
First make a search for the perks you want to add at charactergeneration (the program name i call it, as thats the name used by AOP internaly)
<RPGutility.c> controls the generation of your character and some more. In it the funtion: initNewMainCharacter() controls the generation.
An very short introdution to functions:
void initNewMainCharacter() <-- declaration of the function (Variabletype, Name of funtion, in/output in brackets[here empty])
{ <-- beginn of funtion
ref
ch = GetMainCharacter(); <-- declaration of a variable inside the function. The <ch> here is important as it stores
. <-- a reference to the playercharacter to create
.
. <-- the . stands for all the other programming code in this funtion
} <-- end of function
In my old example i included the Increased Ship Speed perk to the merchant charaters only. thats because it stands in the "Merchant part" of the switch statement. (best is you look at the code)
if you want all your player characters to have these perks do following:
look for these lines of code
ch.skill.freeskill = 0;
ch.Skill.FreeSPECIAL = 0;
After these insert blank lines and then type there following. After that it should look something like this:
ch.skill.freeskill = 0;
ch.Skill.FreeSPECIAL = 0;
ch.perks.list.
ShipSpeedUP = "1"; <-- thats the new instructions to activate the perks
ch.perks.list.
ShipTurnRateUp = "1";
ch.perks.list.
StormProfessional = "1";
sGlobalTemp = "Flag" + NationShortName(sti(pchar.nation));
puh.... so much writing .... i hope you get it.
Hope i cleared it out now... :hmm if not ask further questions...
cu
NW