Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ Xedra Evolved ] Zebra badges and the hub #68615

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
97 changes: 97 additions & 0 deletions data/mods/Xedra_Evolved/npc/hub_intercom.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
[
{
"type": "talk_topic",
"id": "TALK_ROBOFAC_INTERCOM",
"insert_before_standard_exits": true,
"dynamic_line": {
"u_is_wearing": "badge_zebra",
"yes": "Our cameras identified that you're wearing a zebra badge. Are you a federal agent?"
},
"responses": [
{
"text": "Have we met before?",
"topic": "TALK_PERCHANCE_WE_HAVE",
"effect": "npc_thankful",
"opinion": { "trust": 20, "value": 20 },
"condition": {
"and": [
{ "u_is_wearing": "badge_zebra" },
{
"or": [
{ "compare_string": [ "xe_inventor", { "context_val": "avatar_profession" } ] },
{ "compare_string": [ "xe_dreamsmith", { "context_val": "avatar_profession" } ] },
{ "compare_string": [ "xe_eater", { "context_val": "avatar_profession" } ] },
{ "compare_string": [ "xe_dreamer", { "context_val": "avatar_profession" } ] }
]
}
]
}
},
{
"text": "Where else would I get all this hardware?",
"topic": "TALK_OFFWORLD_TEAM",
"condition": {
"and": [
{ "u_is_wearing": "badge_zebra" },
{
"or": [
{ "compare_string": [ "xe_jotunn_hunter", { "context_val": "avatar_profession" } ] },
{ "compare_string": [ "xe_specter", { "context_val": "avatar_profession" } ] },
{ "compare_string": [ "xe_troll_slayer", { "context_val": "avatar_profession" } ] }
]
}
]
}
},
{
"text": "Yeah, I'm a Marshal, and I require access to this facility!",
"topic": "TALK_SPY_ROBOFAC",
"opinion": { "trust": -20, "value": -20 },
"condition": {
"and": [ { "u_is_wearing": "badge_zebra" }, { "compare_string": [ "spy", { "context_val": "avatar_profession" } ] } ]
}
},
{
"text": "Yeah, I'm a agent. Scan me.",
"topic": "TALK_AGENT_ROBOFAC",
"opinion": { "trust": -20, "value": -20 },
Comment on lines +55 to +57
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this one negative but "Oh yeah, I've been an agent for years… You guys should be glad that I'm here now." positive 🤔

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I got distracted by the conditions not working and haven't removed all my copy-pastes.

"condition": {
"and": [
{ "u_is_wearing": "badge_zebra" },
{ "compare_string": [ "zebra_investigator", { "context_val": "avatar_profession" } ] }
]
}
},
{
"text": "Oh yeah, I've been an agent for years… You guys should be glad that I'm here now.",
"topic": "TALK_FAKER",
"effect": "npc_thankful",
"opinion": { "trust": 20, "value": 20 },
"condition": {
"and": [
{ "u_is_wearing": "badge_zebra" },

Check failure on line 72 in data/mods/Xedra_Evolved/npc/hub_intercom.json

View workflow job for this annotation

GitHub Actions / Basic Build and Test (Clang 10, Ubuntu, Curses)

(all_mods)=> unrecognized condition in { "not": [ { "compare_string": [ "xe_inventor", { "context_val": "avatar_profession" } ] }, { "compare_string": [ "xe_dreamsmith", { "context_val": "avatar_profession" } ] }, { "compare_string": [ "xe_eater", { "context_val": "avatar_profession" } ] }, { "compare_string": [ "xe_dreamer", { "context_val": "avatar_profession" } ] }, { "compare_string": [ "zebra_investigator", { "context_val": "avatar_profession" } ] }, { "compare_string": [ "spy", { "context_val": "avatar_profession" } ] }, { "compare_string": [ "xe_jotunn_hunter", { "context_val": "avatar_profession" } ] }, { "compare_string": [ "xe_troll_slayer", { "context_val": "avatar_profession" } ] }, { "compare_string": [ "xe_specter", { "context_val": "avatar_profession" } ] } ] } "condition": { "and": [ { "u_is_wearing": "badge_zebra" }, ▲▲▲ { "not": [

Check failure on line 72 in data/mods/Xedra_Evolved/npc/hub_intercom.json

View workflow job for this annotation

GitHub Actions / Basic Build and Test (Clang 10, Ubuntu, Curses)

(all_mods)=> unrecognized condition in { "not": [ { "compare_string": [ "xe_inventor", { "context_val": "avatar_profession" } ] }, { "compare_string": [ "xe_dreamsmith", { "context_val": "avatar_profession" } ] }, { "compare_string": [ "xe_eater", { "context_val": "avatar_profession" } ] }, { "compare_string": [ "xe_dreamer", { "context_val": "avatar_profession" } ] }, { "compare_string": [ "zebra_investigator", { "context_val": "avatar_profession" } ] }, { "compare_string": [ "spy", { "context_val": "avatar_profession" } ] }, { "compare_string": [ "xe_jotunn_hunter", { "context_val": "avatar_profession" } ] }, { "compare_string": [ "xe_troll_slayer", { "context_val": "avatar_profession" } ] }, { "compare_string": [ "xe_specter", { "context_val": "avatar_profession" } ] } ] } "condition": { "and": [ { "u_is_wearing": "badge_zebra" }, ▲▲▲ { "not": [
{
"not": [
{ "compare_string": [ "xe_inventor", { "context_val": "avatar_profession" } ] },
{ "compare_string": [ "xe_dreamsmith", { "context_val": "avatar_profession" } ] },
{ "compare_string": [ "xe_eater", { "context_val": "avatar_profession" } ] },
{ "compare_string": [ "xe_dreamer", { "context_val": "avatar_profession" } ] },
{ "compare_string": [ "zebra_investigator", { "context_val": "avatar_profession" } ] },
{ "compare_string": [ "spy", { "context_val": "avatar_profession" } ] },
{ "compare_string": [ "xe_jotunn_hunter", { "context_val": "avatar_profession" } ] },
{ "compare_string": [ "xe_troll_slayer", { "context_val": "avatar_profession" } ] },
{ "compare_string": [ "xe_specter", { "context_val": "avatar_profession" } ] }
]
}
]
}
},
{
"text": "…",
"topic": "TALK_WOULDNT_WEAR_THAT",
"opinion": { "trust": -20, "value": -20 },
"condition": { "u_is_wearing": "badge_zebra" }
}
]
}
]
Loading