At the moment, I have an event which triggers at any point in Anno Domini, but I only want it to trigger once the civilization has discovered Nobility.
Currently, the code is this:
I'm adding a one-liner so it becomes this:
Is that correct?
Currently, the code is this:
Code:
local Event_LapisLazuli = {}
Event_LapisLazuli.Name = "TXT_KEY_EVENT_LAPIS_LAZULI"
Event_LapisLazuli.Desc = "TXT_KEY_EVENT_LAPIS_LAZULI_DESC"
Event_LapisLazuli.Weight = 5
Event_LapisLazuli.CanFunc = (
function(pPlayer)
return true
end
)
Event_LapisLazuli.Outcomes = {}
I'm adding a one-liner so it becomes this:
Code:
local Event_LapisLazuli = {}
Event_LapisLazuli.Name = "TXT_KEY_EVENT_LAPIS_LAZULI"
Event_LapisLazuli.Desc = "TXT_KEY_EVENT_LAPIS_LAZULI_DESC"
Event_LapisLazuli.Weight = 5
Event_LapisLazuli.CanFunc = (
function(pPlayer)
if not(Teams[pPlayer:GetTeam()]:IsHasTech(GameInfoTypes.TECH_NOBILITY)) then return false end
return true
end
)
Event_LapisLazuli.Outcomes = {}
Is that correct?