You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 7, 2023. It is now read-only.
// If you have a FPlayer you can get the Faction it belongs to// If the player has no faction Wilderness will be returnedFPlayerfPlayer = FPlayers.getInstance().getByPlayer(Player);
// FPlayer RolesRolerole = fPlayer.getRole();
if (role == Role.MODERATOR){
// Do something
}
Getting the Faction
// Getting the faction by FLocation/Location & tagFactionfaction = null;
// By FLocation/LocationFLocationfLoc = newFLocation(location);
faction = Board.getInstance().getFactionAt(fLoc);
// By Faction Name/Tagfaction = Factions.getInstance().getByTag(String)
// Get relation to factionRelationrel = faction.getRelationTo(targetFaction);
// Set relation wish to factionfaction.setRelationWish(targetFaction, Relation.ALLY);
// If you wish to force set the relation then simply do the same for targetFaction to faction, like sotargetFaction.setRelationWish(faction, Relation.ALLY);