# Guildcraft node reference Every Blueprint node, event and setting, from the plugin's headers. The README explains how they fit together. ## Reputation component On each player's PlayerState, and one on the GameState for what guilds share. | | Name | What it does | |---|---|---| | Setting | **Reputation Table** | Factions and characters. Empty uses the table from Project Settings > Guildcraft | | Setting | **Action Table** | Actions with a fixed cost. Empty uses the table from Project Settings > Guildcraft | | Setting | **Auto Save** | The server loads this component when the player joins and saves it after changes. Turn it off when your own save calls SaveToBytes and LoadFromBytes | | Setting | **Recovery Paused** | Server only. While true, reputations with Recovery Per Minute stay where they are: during a fight, a cutscene, a pause | | Setting | **Save Slot Prefix** | Start of the save slot's name. The player's key comes after it | | Event | **On Reputation Changed** | The value moved. Fires on the server and on every client that sees this component | | Event | **On Stage Changed** | The stage went up or down | | Event | **On Reputation Discovered** | A reputation the player did not know became known | | Node | **Set Tables** | Swaps the tables at runtime, for a game that picks them per mode or per map | | Event | **On Team Changed** | The player changed team or guild, so the reputations shared with it are other ones now. A list has to be read again | | Node | **Modify Reputation** | Adds to a reputation (negative takes away) and returns the new value. The reputation becomes known. Server only. | | Node | **Modify Team Reputation** | Adds to a reputation a whole team or guild shares, by its id, with no player in between: a guild quest, a war won. Relations do not move. Returns the new value. Server only. | | Node | **Set Reputation** | Sets a reputation to a value. Relations do not move. Server only. | | Node | **Apply Action** | Applies an action from the action table to a target. False when the action or the target is not in the tables. Server only. | | Node | **Discover Reputation** | Makes a reputation known at its base value, without changing it. Server only. | | Node | **Open Stage Gate** | Opens a gated stage, so the points can take the player into it. Server only. | | Node | **Set Team Id** | Team whose shared reputations this player reads and changes. Server only. | | Node | **Request Action** | A client asks the server to apply an action. The server only takes actions marked Client May Request | | Pure | **Get Reputation** | Current value. A reputation not known yet answers its base value | | Pure | **Get Stage Index** | Index of the current stage in the row's Stages | | Pure | **Get Stage** | The current stage. False when the reputation is not in the table or has no stages | | Pure | **Is At Least Stage** | True at the given stage or any stage above it | | Pure | **Get Stage Index Of Tag** | Where a stage sits in a reputation's list, counting from 0 at the lowest. -1 when the reputation or the stage is not in the table | | Pure | **Get Attitude** | How this faction or character treats the player now | | Pure | **Get Perk** | A perk value of the current stage, or DefaultValue when the stage does not have it | | Pure | **Get Progress To Next Stage** | 0 to 1 from the start of the current stage to the start of the next. 1 at the last stage | | Pure | **Is Waiting On Gate** | True while the next stage is gated and still closed | | Pure | **Get Known Reputations** | Every reputation this player knows, their own and the team's | | Pure | **Get Reputation Info** | The table row of a reputation: name, icon, stages | | Node | **Set Faction Attitude** | Server only, on the reputation component of the GameState. From now on From sees To this way, whatever the table says: a war, a truce, an alliance. Both Ways sets To toward From too. Saved with the shared reputations and sent to every client. Get Attitude Toward and the AI controller use it at once | | Node | **Remove Team Entries** | Server only, on the GameState's component. Forgets every shared reputation of a team: the guild manager calls it when a guild ends | | Node | **Clear Faction Attitude** | Server only. Back to what the table says | | Pure | **Get Faction Attitude Override** | False when nothing was set and the table decides | | Event | **On Faction Attitude Changed** | A war or a peace was set or cleared. Cleared comes with the attitude the table gives. On the server and every client | | Event to override | **Filter Reputation Change** | Server only. Changes a reputation gain or loss before it lands, for every change that adds (Modify Reputation, Apply Action and what spills to relations), not for Set Reputation nor recovery. A perk that doubles gains, a debuff, a cap per day. Answer 0 to cancel the change. It runs on the component Modify Reputation was called on, so a player's filter also covers the values the guild shares (Get Owner is the player) | | Event to override | **Can Client Request Action** | Your own rule for what a client may ask with Request Action, after the table allowed it: is the player near the NPC, is it daytime. False refuses | | Node | **Save To Bytes** | Everything this component knows, for your own save system | | Node | **Load From Bytes** | Replaces what this component knows. False when the bytes are not a Guildcraft save, and then nothing changes. Server only. | | Node | **Save To Slot** | Writes the built in slot now. Server only. | | Node | **Load From Slot** | Reads the built in slot now. False when there is none. Server only. | | Node | **Delete Save Slot** | Deletes the built in slot and its spare copy. Use it, not Delete Game In Slot, which leaves the spare to bring the save back. Server only. | | Pure | **Get Save Slot Name** | Name of the built in slot. Empty while the player has no name or account yet | | Node | **Recover Reputations** | Server only. Walks every reputation with Recovery Per Minute back toward its base, as if this many seconds had passed. The component calls it by itself every 5 seconds | ## Guild manager On the GameState. Holds every guild on the server. | | Name | What it does | |---|---|---| | Setting | **Role Table** | Roles, rows of GDCGuildRoleRow. Empty uses the table from Project Settings, and with none there, Leader, Officer and Member | | Setting | **Level Table** | Levels, rows of GDCGuildLevelRow. Empty uses the table from Project Settings, and with none there, one level of 20 members and 20 vault slots | | Setting | **Auto Save** | The server loads the guilds when the game starts and saves them after changes. Turn it off when your own save calls SaveToBytes and LoadFromBytes | | Setting | **Save Slot Prefix** | Start of the save slot's name | | Event | **On Guild Changed** | Something about this guild changed: members, roles, announcement, level, vault | | Event | **On Guild Added Or Removed** | A guild was founded or is gone | | Event | **On Guild Request Succeeded** | Server only. A player's request went through: the place to charge the founding cost, take the items a deposit counted, give the ones a withdrawal counted. Can Do Guild Request said yes, and so did every rule of Guildcraft. The context is the request as it was done: Context.Tag and Context.Count are the item and how many for the vault. Founding passes the new guild's id | | Event | **On Member Joined** | Server only. Somebody became a member, whatever the way: founding (Create), a public guild (Join), an accepted request (Resolve Join Request) or an invite (Answer Invite). Player is empty when they are offline, as when a request is accepted while they are away. The one place for an entry fee or a welcome | | Event | **On Member Left** | Server only. Somebody is no longer a member: they left, were kicked or removed, or the guild was disbanded. Player is empty when they are offline | | Node | **Force Remove Member** | Server. Takes a member out of their guild, online or not. The leader's place passes on as when a leader leaves. Server only. | | Node | **Force Set Member Role** | Server. Puts a member, online or not, in a role. Not the leader role: use Force Transfer Leadership. Server only. | | Node | **Force Transfer Leadership** | Server. Makes a member the leader, and the leader before takes the role for new members. Server only. | | Node | **Force Disband Guild** | Server. Ends a guild, as if its last member left. Server only. | | Node | **Force Change Vault** | Server. Adds items to a guild's vault, or takes them with a negative count: a quest reward, a tax. Slots by level and the vault log apply. False when it does not fit or there is not enough. Server only. | | Node | **Join Guild** | A public guild takes the player in. A private one keeps a request with the message for somebody with Manage Requests to answer. Server only. | | Node | **Leave Guild** | The leader leaving hands the guild to the highest role left. The last member leaving ends the guild. Server only. | | Node | **Disband Guild** | Only the leader. Server only. | | Node | **Transfer Ownership** | Only the leader, who takes the role the new leader had. Server only. | | Node | **Rename Guild** | Server. A new name for the player's guild, with the same rules as founding. Needs Edit Info. Server only. | | Node | **Add Guild Experience** | Gives the guild experience, which is what raises its level. Contributor is optional: it adds to that member's total. Server only. | | Node | **Deposit To Vault** | Counts items into the vault. Take them out of the player's inventory yourself, before or after, on the server. Server only. | | Node | **Withdraw From Vault** | Counts items out of the vault. On Success, give them to the player's inventory yourself. Server only. | | Node | **Deposit Item To Vault** | Deposit To Vault for an item with its own data (a sword at 72% durability with a fire mod). Item Data is yours, up to 256 characters; the vault keeps it as it is and gives it back on the way out. Can Do Guild Request and On Guild Request Succeeded get it in Context.Text. Server only. | | Node | **Withdraw Item From Vault** | Takes out the stack with this tag and exactly this data. On Success, rebuild the item from Item Data in the player's inventory. Server only. | | Node | **Invite Player By Key** | Invites a player by their key, online or not: online they get the notice at once, offline it waits Offline Invite Days and comes up when they log in. The key is the one Get Player Key gives (their account id, or their name with Save Key Source Player Name). Needs the Invite permission. A guild keeps at most 50 such invites, the oldest go first. Server only. | | Node | **Invite To Guild** | Who has the Invite permission calls a player who is in no guild. The invite waits Invite Seconds (project settings) on the target's Guild Member component. Server only. | | Node | **Answer Invite** | Accepting joins the guild even when it is private. Not Found when the invite ran out. Server only. | | Node | **Set Emblem** | Roles with Edit Info. Symbol up to 2 characters, empty for the first letter of the name; Color and Icon index the lists in the project settings, Icon -1 for none. Server only. | | Node | **Propose Alliance** | Offers an alliance. When the other guild had offered one to this guild already, they are allies at once. Server only. | | Node | **Declare War** | Goes to war, without asking the other guild. An alliance between the two ends. Server only. | | Node | **End Relation** | Ends an alliance or a war, back to neutral. Use Can Do Guild Request when a peace should need both sides. Server only. | | Node | **Set Guild Relation** | Server only, for the game's own logic: sets how two guilds stand, with nobody asking. Neutral removes the line | | Pure | **Get Guild Attitude** | Same guild Friendly, allies Friendly, at war Hostile, anything else Neutral. Any machine | | Pure | **Get Guilds** | Every guild. On a client, members, requests and vault are filled only for the local player's own guild | | Pure | **Find Online Player** | The PlayerState of a player in the game by their key (Get Player Key). Null when offline | | Pure | **Find Guild Of Player** | 0 when the player is in no guild | | Pure | **Has Permission** | True when the player's role in their guild has the permission. The leader role has every permission | | Pure | **Get Guild Level** | The level row the guild is at | | Pure | **Get Progress To Next Level** | 0 to 1 toward the next level, 1 at the last | | Node | **Set Tables** | Swaps the tables at runtime | | Node | **Set Guild Custom Value** | Server only. Keeps a value of yours on the guild, saved and sent to every client. An empty value removes the key | | Pure | **Get Guild Custom Value** | False when the guild or the key is not there | | Node | **Set Guild Private Value** | Server only. Like Set Guild Custom Value, but only the guild's members receive it: a stash location, a raid plan, the guild's gold | | Pure | **Get Guild Private Value** | On the server for any guild, on a client for the local player's own guild | | Node | **Edit Guild Role** | Server. The leader changes a role for their guild only, starting from the role as the guild has it now. Not the leader role. Title: empty keeps it. Permissions: replaced only with Change Permissions on. Withdraw Per Day: below 0 keeps it, 0 has no limit. Back To Table drops the guild's changes to this role and ignores the rest. Server only. | | Pure | **Get Guild Role** | A role as a guild sees it: the table's, with the guild's own changes, or one the guild made. On a client, other guilds show the table's | | Pure | **Get Guild Roles** | Every role of a guild, the table's with its changes and the ones it made, from the highest rank down | | Node | **Create Guild Role** | Server. The leader makes a new role for their guild: a title, a rank below the leader's, permissions from Editable Permissions and the daily vault limit. Max Created Roles Per Guild in the project settings caps how many. Out Role Tag names it from then on (Guildcraft.Role.Created.1 to 8): Set Member Role, Edit Guild Role and Delete Guild Role take it. Server only. | | Node | **Delete Guild Role** | Server. The leader removes a role their guild made. Its members go to the role for new members. Table roles cannot be removed. Server only. | | Node | **Send Guild Chat** | Server. A member writes on their guild's chat. Every member online gets it, and the last Guild Chat History Length lines are saved for the ones who log in later. Can Do Guild Request is asked with Chat and the text, so your game can mute a player; Filter Guild Chat can change the text. Server only. | | Node | **Post Guild Chat Message** | Server. Your game writes on a guild's chat with no player: "The raid starts in 5 minutes". No checks, no filter. Server only. | | Pure | **Get Guild Chat History** | Server. A guild's saved chat lines, the newest last | | Event to override | **Filter Guild Chat** | Asked for every chat line a player sends, after Can Do Guild Request. Return the text to post: stars over a bad word, a link removed. Empty drops the line | | Event to override | **Can Do Guild Request** | Your own rule on top of Guildcraft's, asked on the server after every rule of ours passed and before anything changes: a founding cost, a banned word in a name, a minimum level to invite, no kicks during a raid, does the player hold the items. The context has the text, the target and the other guild. Override it in a Blueprint child; anything but Success refuses with that answer. | | Event to override | **Filter Guild Experience** | Server only. Changes guild experience before it is added: double experience weekends, a perk, a cap. Answer 0 to give none | | Node | **Save To Bytes** | Every guild, for your own save system | | Node | **Load From Bytes** | Replaces every guild. False when the bytes are not a guild save, and then nothing changes. Server only. | | Node | **Save Guild Now** | Server. Writes one guild's file now instead of 2 seconds later: call it right after a vault change your own inventory saves at once too, so a crash in between cannot leave an item in both places or in neither. False with Auto Save off. Server only. | | Node | **Save Guild To Bytes** | One guild, for a backend that keeps a row per guild: write it after On Guild Changed for that guild. Empty when there is no such guild | | Node | **Load Guild From Bytes** | Puts one guild in play from Save Guild To Bytes, replacing the one with its id. The others stay as they are. Server only. | | Node | **Delete Save Slot** | Deletes the built in slot and its spare copy. Use it, not Delete Game In Slot, which leaves the spare to bring the save back. Server only. | | Pure | **Is Guild List Complete** | True once every guild of the server is on this machine. A client joining a server of a thousand guilds gets them over some seconds: show "loading" until then | ## Guild member component On each player's PlayerState. What a player asks for, from any machine. | | Name | What it does | |---|---|---| | Event | **On Request Result** | The server answered a request of this player. Fires on the player's own machine | | Event | **On My Guild Changed** | The player entered, left or changed guild. On the server and on every client | | Event | **On Invites Changed** | An invite came, was answered or ran out. On the server and on this player's machine | | Event | **On Guild Chat** | A new chat line of the player's guild. On this player's machine | | Event | **On Guild Chat History** | The whole chat came again: at login, on joining a guild, emptied on leaving. On this player's machine | | Pure | **Get Guild Chat** | The chat lines this machine has for the player's guild, the newest last | | Pure | **Get Pending Invites** | Invites waiting for this player's answer. Only this player's machine receives them | | Pure | **Get Guild Id** | 0 when in no guild | | Pure | **Get My Guild** | The player's guild. False when in none | | Pure | **Get Manager** | The manager on the GameState. Null on a client for a moment after joining | | Node | **Request Edit Guild Role** | The leader changes a role for their guild. See Edit Guild Role | | Node | **Request Create Guild Role** | The leader makes a new role for their guild. See Create Guild Role | | Node | **Request Delete Guild Role** | The leader removes a role their guild made | | Node | **Request Send Guild Chat** | A line on the guild chat. Guild Chat Cooldown Seconds apart at least | | Node | **Request Deposit To Vault** | Only with Client May Use Vault on in the settings. Check the player's inventory in Can Do Guild Request and move the items in On Guild Request Succeeded | | Node | **Request Withdraw From Vault** | Only with Client May Use Vault on in the settings. Give the items in On Guild Request Succeeded | | Node | **Request Deposit Item To Vault** | Request Deposit To Vault for an item with its own data. Off unless Client May Use Vault is on, like the plain one | | Node | **Request Withdraw Item From Vault** | Request Withdraw From Vault for the stack with this data | | Node | **Request Set Emblem** | Needs Edit Info. Symbol up to 2 characters; Color and Icon index the lists in the project settings, Icon -1 for none | | Node | **Request Propose Alliance** | Needs Diplomacy, the leader's by default | | Node | **Request Invite Player** | Calls a player who is in no guild into this player's guild. Needs the Invite permission | | Node | **Request Invite Player By Key** | Invite By Key from any machine: a player who may be offline, by the key your game knows them by | | Node | **Request Claim** | Claims a chest, a door or a base for this player's guild, from any machine. The server checks Claim Permission and that the player stands within Max Use Distance of it | | Node | **Request Release** | Lets one go, with the same checks | ## Faction component On NPCs and players: which faction they belong to. | | Name | What it does | |---|---|---| | Event | **On Faction Changed** | The faction changed, on the server and on every client | | Setting | **Also Counts As** | More factions this actor belongs to besides its own: a bandit spy who also counts as a villager, a mercenary of two companies. Who shares any of its factions sees it as Friendly; anyone else takes the worst attitude its factions have between them (the spy's bandit side shows to the guards' enemies). Its own faction stays the one reputation counts against | | Node | **Set Also Counts As** | Server only. Replaces the extra factions; the AI looks again | | Pure | **Get All Factions** | The actor's own faction and its extra ones | | Node | **Set Faction** | Server only. Moves the actor to another faction, or to none with an empty tag | | Event to override | **Filter Attitude** | The last word on how this actor sees another, after the faction and reputation tables answered with Attitude. Runs on every machine that asks Get Attitude Toward. A disguise, a charm, a pet that never turns hostile, a guard who ignores the guild leader | | Setting | **Aggression Memory Seconds** | Who damages this actor stays hostile to it this many seconds, whatever the tables say. 0 turns the memory off | | Setting | **Alert Allies Radius** | Members of the same faction this close (cm) remember the attacker too: hit a guard and the guards near him turn on you. 0 only this actor | | Setting | **Remember Damage** | Damage taken (Apply Damage, any damage type) is remembered by itself. Off: call Remember Aggressor from your own combat | | Setting | **Ignore Same Faction** | Damage from a member of the same faction is not remembered: a stray arrow between guards starts no fight | | Event | **On Aggressor Remembered** | An attacker was remembered, on the server | | Node | **Remember Aggressor** | Server only. Aggressor is hostile to this actor for Seconds (Aggression Memory Seconds when 0 or less), and so to the allies around it when bAlertAllies | | Node | **Forget Aggressor** | Server only. Forgives one attacker, or all of them with none | | Pure | **Is Aggressor** | Whether Target attacked this actor and is still remembered. Any machine | | Setting | **Faction Tag** | The faction this actor starts in | ## Attitude solver A Blueprint child of it holds the attitude rule of the project. Picked in the project settings. | | Name | What it does | |---|---|---| | Event to override | **Solve Attitude** | Table Attitude is what the faction and reputation tables said. Return it to keep it. Runs on every machine that asks | ## AI controller Turns faction attitudes into friend or enemy for AI Perception. | | Name | What it does | |---|---|---| | Setting | **Perception Refresh Seconds** | Perception decides who is an enemy when it starts sensing someone. Reputations, wars and attacks move after that: every this many seconds it checks whether anything that sets this NPC's faction's attitudes changed, and only then asks again. 0 never | ## Behavior Tree: Guildcraft Attitude Decorator. Passes when the AI sees the actor in Target Key with the attitude picked. | | Name | What it does | |---|---|---| | Setting | **Target Key** | The actor to judge | | Setting | **Check Interval** | Seconds between checks while it watches, with Observer Aborts set. A new actor in Target Key is checked at once | ## Behavior Tree: Guildcraft Find Target Service. Writes the closest actor with the attitude into Target Key. | | Name | What it does | |---|---|---| | Setting | **Target Key** | Gets the actor found, or nothing | | Setting | **Radius** | How far to look (cm), with or without perception | | Setting | **Attitude Key** | Optional. An enum key (EGDCAttitude) that gets how the pawn sees the actor found: Neutral when there is none | ## Behavior Tree: Guildcraft Apply Action Task. Applies a reputation action to the player in Target Key. | | Name | What it does | |---|---|---| | Setting | **Target Key** | The player's pawn, controller or PlayerState | | Setting | **Action Tag** | A row of the action table | | Setting | **Reputation Tag** | The reputation it counts against. Empty: the AI pawn's own faction | ## Ability System bridge GuildcraftGAS module, on the PlayerState: Gameplay Effects by reputation stage and guild level. | | Name | What it does | |---|---|---| | Setting | **Event Actions** | Gameplay Events that change reputation: the GAS side tells Guildcraft what the player did. On the server | | Node | **Refresh Effects** | Server only. Applies and removes effects to match the player's stages and guild now. Runs by itself on every stage and guild change | | Pure | **Get Ability System** | The Ability System Component it works on, or none yet | ## Guild ownership component On a chest, a door, a base: the guild that owns it and who may use it. | | Name | What it does | |---|---|---| | Setting | **Claim Permission** | The permission a member's role needs to claim it or let it go. Diplomacy by default (leader and officers in the default roles). Empty: any member, even one who joined a minute ago | | Setting | **Allies May Use** | Members of guilds allied with the owner may use it too | | Setting | **Unowned Is Open** | With no owner: anyone may use it (a public chest that opens the user's own guild vault). Off: nobody until a guild claims it | | Setting | **Max Use Distance** | A player has to stand this close (cm) for a request from their machine to claim or release it. 0: from anywhere | | Pure | **Is In Reach** | Whether the player's pawn stands within Max Use Distance | | Setting | **Any Of Rules** | On top of ownership, the rules one of which the user has to pass: only officers, only Honored with the villagers. Empty: ownership alone decides | | Event | **On Owner Guild Changed** | On every machine | | Setting | **Allow Personal Owner** | One player may own it instead of a guild: a solo player's base, a chest with a list of who else may open it. Off: guilds only | | Event | **On Personal Owner Changed** | The owner or the list of who may use it changed, on every machine | | Pure | **Get Owner Player Key** | The player who owns it, by key, or empty | | Pure | **Get Allowed Player Keys** | Who else the owner lets use it | | Node | **Claim For Player** | Server only. With Allow Personal Owner: the player owns it when nobody does, no guild and no player | | Node | **Set Player Allowed** | Server only. The owner lets another player use it (a key from Get Player Key), or takes that back with bAllow off. 20 at most | | Setting | **Save Key** | What the owner is saved under. Empty: the actor's name, which holds for an actor placed in the level. Set one for an actor your game spawns (a base a player built) | | Setting | **Capture Seconds** | Above 0: a guild takes it from its owner by holding it this many seconds (members within Max Use Distance, nobody of the owner there). 0: an owned thing changes hands only when released | | Setting | **Capture Radius** | How near a player stands to count in a capture (cm). 0: Max Use Distance, the same reach as using it | | Setting | **Speed Per Extra Attacker** | Each attacker after the first adds this much speed to a capture: 0.5 makes 3 attackers take it twice as fast as 1 | | Setting | **Max Capture Speed** | The fastest a crowd takes it, as a multiple of one attacker | | Setting | **Allies Count** | On: members of guilds allied to the owner defend it, and allies of the capturing guild help take it | | Setting | **Defenders Push Back** | On: more defenders than attackers push a capture back, instead of only holding it | | Node | **Restore Saved Owner** | Server: reads the owner from the save again, for a component added after play began or a Save Key set late. Server only. | | Event | **On Capture Changed** | A capture runs, stops or ends, on every machine. Progress 0 to 1 | | Pure | **Get Capture Progress** | 0 to 1 while a capture runs | | Event to override | **Can Count For Capture** | Your own say in who counts in a capture, asked on the server for each player within Capture Radius whose guild takes a side: leave out the dead, the invisible, someone mounted. Override it in a Blueprint child. Everyone counts by default | | Pure | **Get Capture Crowd** | Who is near while a capture runs, allies included when Allies Count: for a "3 against 1" on screen | | Node | **Claim For Guild** | Server only. Gives it to the player's guild when their role has Claim Permission. Fails when another guild owns it: release it first, or Set Owner Guild for a capture | | Node | **Release** | Server only. A member of the owner with Claim Permission lets it go | | Node | **Set Owner Guild** | Server only, with no checks: a capture, a load from the save, 0 for nobody | | Pure | **Can Use** | Whether this player may use it now, and the guild whose vault or room it opens (the owner, or the user's own guild when unowned). Any machine | | Setting | **Owner Guild Id** | The guild that owns it at the start, 0 nobody | ## Function library Static nodes, callable from any Blueprint. | | Name | What it does | |---|---|---| | Pure | **Get Reputation Component** | The reputation component of a player, from their pawn, controller or PlayerState. Null when there is none | | Pure | **Get Shared Reputation Component** | The component on the GameState, which keeps the reputations a team shares. Null when there is none | | Pure | **Get Actor Faction** | The faction an actor belongs to: its Guildcraft Faction Member component, or its pawn's or controller's. Empty when it has none | | Pure | **Get Attitude Between Factions** | How one faction treats another by the table, with no player involved. A faction is Friendly to itself | | Pure | **Get Attitude Toward** | How Observer treats Target. Observer is somebody with a faction, usually an NPC. A target with a reputation (a player) is judged by their reputation with the observer's faction, a target with only a faction by the table. | | Node | **Set Player Key** | Server only. Your own login system says who this player is. Best in your GameMode's On Post Login; a login that answers later works too: the player's reputation and guild are reloaded under the new key, and what they earned before it is dropped. Saves and guild membership go by this key from then on, whatever the store account or the name, also after a seamless travel | | Pure | **Get Attitude Between Players** | How two players stand by their guilds: same guild or allies Friendly, at war Hostile, anything else Neutral. For PvP rules, nameplates, friendly fire | | Pure | **Get Emblem Color** | The color of an emblem index from the project settings. White when there is none | | Pure | **Bytes To Base64** | Save To Bytes as text, to send to a web service or keep in a database column | | Pure | **Base64 To Bytes** | The text back to bytes for Load From Bytes. False when the text is not base64 | | Pure | **Get Attitude From Tables** | Get Attitude Toward before the observer's Filter Attitude: only what the faction and reputation tables say | | Node | **Find Closest With Attitude** | The closest actor Observer sees with this attitude within Radius (cm): from what its controller's AI Perception senses when it has one, otherwise from every actor with a Faction Member component and every player's pawn. Never a walk over every actor of the world. The Find Target nodes of the Behavior Tree and the State Tree use it | | Pure | **Get Debug Lines** | What the Guildcraft category of the Gameplay Debugger shows about Subject, seen by Viewer (a pawn or its controller): its faction, how it sees the viewer next to what the tables alone say, the viewer's standing with it, who it remembers attacking it and a player's guild. One line each, for your own debug UI. With Colors the lines keep the debugger's marks ({red}, {green}) | | Pure | **Get Player Key** | What identifies a player across sessions: the store account, or the name where there is none (Project Settings > Guildcraft > Save Key Source). Saves and guild membership go by it | | Pure | **Get Guild Manager** | The guild manager on the GameState. Null when there is none | | Pure | **Get Guild Member Component** | The guild component of a player, from their pawn, controller or PlayerState. Null when there is none | | Pure | **Passes Access Rule** | True when the player meets every condition set in the rule. For a door, a shop, a quest giver | | Pure | **Passes Any Access Rule** | True when the player passes at least one of the rules: officers of the guild OR anyone Honored with the villagers. An empty list lets nobody in | | Pure | **Get Guild Tag** | A player's guild for a nameplate: its emblem symbol (or the first letters of the name), the name and the emblem colour. False when the player is in no guild | | Node | **Apply Reputation Action** | Server only. Applies an action from the action table to what a player did. False when the player has no component or the tags are not in the tables | ## Project settings Project Settings > Plugins > Guildcraft. | | Name | What it does | |---|---|---| | Setting | **Reputation Table** | Factions and characters, rows of GDCReputationRow. A component with its own table set uses that one instead | | Setting | **Action Table** | Actions with a fixed cost, rows of GDCActionRow | | Setting | **Guild Role Table** | Guild roles, rows of GDCGuildRoleRow. Empty gives Leader, Officer and Member | | Setting | **Guild Level Table** | Guild levels, rows of GDCGuildLevelRow from the first level to the last. Empty gives one level of 20 members and 20 vault slots | | Setting | **Guild Shares Reputation** | The guild is the team: reputations with Scope set to Team are shared by the guild. Turn it off when your own team system calls Set Team Id | | Setting | **Guild Text Max Length** | Longest announcement and longest message on a request to join | | Setting | **Max Join Requests Per Guild** | A private guild keeps up to this many requests waiting | | Setting | **Join Request Days** | A request to join a private guild that nobody answered goes away after this many days. 0 keeps them | | Setting | **Emblem Colors** | The colors a guild emblem can have, by index | | Setting | **Emblem Icons** | Pictures a guild emblem can have, by index. Empty: emblems show their symbol | | Setting | **Invite Seconds** | An invite to a guild waits this long for an answer | | Setting | **Rejoin Wait Minutes** | After leaving a guild or being kicked, a player waits this many minutes before joining another (founding one is free). Stops a player hopping between guilds for their shared reputations. 0: no wait | | Setting | **Offline Invite Days** | An invite to a player who is offline waits this many days for them to log in. 0 turns invites to offline players off | | Setting | **Social Request Cooldown Seconds** | Seconds a client waits between two of the same request that reaches other players: invite, ask to join, propose an alliance, declare war, end a relation. Keeps one player from flooding everybody's screen | | Setting | **Vault Log Length** | Vault movements each guild remembers | | Setting | **Activity Log Length** | Guild events each guild remembers: joins, kicks, roles, diplomacy | | Setting | **Max Created Roles Per Guild** | Roles a guild may make for itself with Create Guild Role, on top of the table's. 0 turns it off. 8 at most | | Setting | **Guild Chat Max Length** | Longest line on the guild chat | | Setting | **Guild Chat History Length** | Chat lines each guild keeps and saves, for members who log in later. 0 keeps none: only who is online sees a line | | Setting | **Guild Chat Cooldown Seconds** | Seconds between two chat lines of one player | | Setting | **Client May Use Vault** | Clients may ask to deposit and withdraw with Request Deposit To Vault. Off by default: turn it on once Can Do Guild Request checks the player's inventory, or a client deposits items it does not have | | Setting | **Save Key Source** | What names a player's save slot | | Setting | **Require Account Key** | With Unique Net Id: a player with no account id (no online subsystem, a forged login) gets no key at all, so no guild, no saved reputation, until Set Player Key gives one. Off: they fall back to their typed name, with a warning in the log. Turn it on for a public server | | Setting | **Allow Name Keys On Dedicated Server** | A dedicated server refuses the typed name as a key by default, with or without Require Account Key: anyone can type the guild leader's name. On: it takes names as a listen server does, for a test server with no online subsystem | | Setting | **Items Outside Daily Limit** | Items a role's daily vault limit does not count: gold, so ten coins do not use up a limit of ten swords. A tag here covers the tags under it | | Setting | **Save Delay Seconds** | The server writes the save this long after a change, so a burst of changes is one write | | Setting | **Editable Permissions** | The permissions a guild leader may give a role with Edit Guild Role. Empty: only Guildcraft's own (Guildcraft.Permission.*), so a tag your doors check stays in the role table, out of a player's hands | | Setting | **Attitude Solver Class** | A Blueprint child of GDC Attitude Solver with the project's own attitude rule, asked after the tables. Empty: the tables decide | | Setting | **Max Client Requests Per Second** | Requests one client can make in a second: reputation actions, and every guild, role, chat and ownership request. The rest are dropped and answered Too Many Requests |