You know what a faction is. What if your game had some of them?
What if they were looking to keep track of what the hero's faction has under control?
What if the hero needs to find out what his enemy groups have achieved as of late?
What if you use a menu to check it out at any given moment?
How to Predefine Factions
Here you can take a look at the examples I left in the official demo.
Ruby:
module KFactions
FACTIONS["Centralists"] = faction = {}
faction[:leader] = "Elder Alsemus"
faction[:value] = "Law & Order"
faction[:fame] = 200
faction[:allies] = ["Nobility"]
faction[:enemies] = ["North Star"]
faction[:maps] = [1]
FACTIONS["North Star"] = faction = {}
faction[:leader] = "Cyrus"
faction[:value] = "Lawlessness"
faction[:fame] = 1000
faction[:allies] = ["Merchants"]
faction[:enemies] = ["Centralists"]
faction[:maps] = [2]
DESCRIPTIONS["Centralists"] =
"This faction has always been totally loyal to the king\n" +
"but their current leader has grown quite old.\n" +
"Other groups treat them like mere garbage."
DESCRIPTIONS["North Star"] =
"This faction claim to be the most powerful group of the\n" +
"entire kingdom but it has not been confirmed.\n" +
"Its leader is brave, stubborn and ruthless."
end
复制代码
There is also the possibility to create new factions on the fly via the call script event command.