An event can be restricted to a certain ArtStyle meaning other civilization mods can have this event if their artstyle matches appropriately.
This sample shows that if you are not a European civilization, The Death of a Great Merchant Event cannot be given.
function ArtEventsCanTake(iPlayer, iEvent)
local pPlayer = Players[iPlayer]
local ArtStyle = GameInfo.Civilizations[pPlayer:GetCivilizationType()].ArtStyleType
if not(ArtStyle == "ARTSTYLE_EUROPEAN") then
if iEvent == GameInfoTypes.PLAYER_EVENT_DEATH_OF_A_GREAT_MERCHANT then
return false
end
return true
end
GameEvents.EventCanTake(ArtEventsCanTake)
An event can be restricted to a certain ArtStyle meaning other civilization mods can have this event if their artstyle matches appropriately. This sample shows that if you are not a European civilization, The Death of a Great Merchant Event cannot be given.