Invisible, Inc.

Invisible, Inc.

Talkative Agents (+ Chatty Guards)
Hekateras  [developer] 14 Aug, 2022 @ 12:24pm
Documentation for modders
Information for modders who want the custom agent from their agent mod to work with the TA system.

Reactive oneliners
Oneliners you don't normally get in the game, such as when you select an agent, when an agent attacks or hacks a console, when exiting through the elevator, etc.

Implementation:
Check the FOR_OTHER_MODDERS folder for detailed instructions. Customise the template in modded_agent_template.lua with your custom oneliners. Then check for_modinit.lua and follow the instructions there.

Location-specific lines
START and FINAL_WORDS lines. These lines are in the same category as vanilla lines and trigger at the start of a mission (in the absence of a multi-character banter) and when Delivering Final Words. With this mod, you can add a special subset of these lines that will trigger only in certain corporations, mission types and specific cities.

Implementation:
The lines for this feature need to be a BANTER subtable.

Example:
BANTER = { -- Your agent's regular mandatory start and final words go here. This is likely part of a table in your strings file. START = { "We have arrived." }, FINAL_WORDS = { "Oh no!", }, LOCATION_SPECIFIC = { -- this is a new table that exists as a BANTER sub-table! Everything for this mod goes here. ["ko"] = { --corp short name, as used in serverdefs.MAP_LOCATIONS START = { "Not K&O again", }, FINAL_WORDS = { "Aw crud.", }, }, ["detention_centre"] = { -- mission type short name, as in serverdefs.ESCAPE_MISSION_TAGS START = { "I hope we find somebody useful in here.", "I don't like Detention Centers.", -- more lines are better, to avoid repetition. }, -- we don't have a FINAL_WORDS field here, and that's fine. In all of thee, a missing or empty START or FINAL_WORDS table won't break anything. }, [STRINGS.MAP_NAMES.LONDON] = { -- city-specific subset. START = { "Ugh, London.", }, FINAL_WORDS = { "I can't believe I'm gonna die in London.", }, }, }, }

You cannot have specific combinations of these checks (e.g. you cannot use this to have lines trigger only in Detention Centers that are also Sankaku).

City names must use the same string as in serverdefs.MAP_LOCATIONS.

Mission type names must use the same names as in serverdefs.ESCAPE_MISSION_TAGS, also seen here:
"vault", "ceo_office", "security", "executive_terminals", "server_farm", "nanofab", "cyberlab", "detention_centre"

Custom mission names from the More Missions mod are:
"distress_call", "ea_hostage", "assassination", "ai_terminal", "weapons_expo", "mole_insertion"

Hope this helps!
Last edited by Hekateras; 19 Jan, 2023 @ 8:18am