Hi, how to link worship building to a specific religion (cathedral to catholicism, etc.)
I create table
CREATE TABLE "Belief_RequiredReligion" (
"BeliefType" TEXT NOT NULL,
"ReligionType" TEXT NOT NULL,
PRIMARY KEY(BeliefType, ReligionType),
FOREIGN KEY (BeliefType) REFERENCES Beliefs(BeliefType) ON DELETE CASCADE ON UPDATE CASCADE,
FOREIGN KEY (ReligionType) REFERENCES Religions(ReligionType) ON DELETE CASCADE ON UPDATE CASCADE);
and
INSERT INTO Belief_RequiredReligion (BeliefType, ReligionType) VALUES ('BELIEF_CATHEDRAL', 'RELIGION_CATHOLICISM');
but I cannot write lua script.
Is it possible or not?
I create table
CREATE TABLE "Belief_RequiredReligion" (
"BeliefType" TEXT NOT NULL,
"ReligionType" TEXT NOT NULL,
PRIMARY KEY(BeliefType, ReligionType),
FOREIGN KEY (BeliefType) REFERENCES Beliefs(BeliefType) ON DELETE CASCADE ON UPDATE CASCADE,
FOREIGN KEY (ReligionType) REFERENCES Religions(ReligionType) ON DELETE CASCADE ON UPDATE CASCADE);
and
INSERT INTO Belief_RequiredReligion (BeliefType, ReligionType) VALUES ('BELIEF_CATHEDRAL', 'RELIGION_CATHOLICISM');
but I cannot write lua script.
Is it possible or not?
Last edited: