bane_
Howardianism High-Priest
- Joined
- Nov 27, 2013
- Messages
- 1,559
Code:
<GameData>
<Traits>
<Row>
<Type>TRAIT_SEKAWA_PEACE</Type>
<Description>TXT_KEY_TRAIT_SEKAWA_PEACE</Description>
<ShortDescription>TXT_KEY_TRAIT_SEKAWA_PEACE_SHORT</ShortDescription>
<DOFGreatPersonModifier>10</DOFGreatPersonModifier>
<GreatArtistRateModifier>15</GreatArtistRateModifier>
<GreatMusicianRateModifier>15</GreatMusicianRateModifier>
<GreatWriterRateModifier>15</GreatWriterRateModifier>
<RequiresPeace>true</RequiresPeace>
</Row>
</Traits>
</GameData>
Code:
function GreatPersonModifierIfAtPeace(playerID)
local pPlayer = Players[playerID]
if (Teams[pPlayer:GetTeam()]:IsAtWar() ~= true)
and (pPlayer:GetCivilizationType() == GameInfoTypes.CIVILIZATION_YOURCIV) then [...]
Now, how do I do the rest? There is no problem if someone just come up and do the code, but I want more: Where should I look for syntaxes, parameters, events and whatever else I need to know to start making my own codes and stop nagging you all for them.

Thanks in advance.
