Skip to content

Commit

Permalink
Update foreign scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Tkael committed May 22, 2021
1 parent 06d8a4e commit 7a72130
Show file tree
Hide file tree
Showing 9 changed files with 141 additions and 406 deletions.
65 changes: 19 additions & 46 deletions SpeechResponder/eddi.cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -308,15 +308,6 @@
"name": "Cockpit breached",
"description": "Triggered when your ship's cockpit is broken"
},
"Combat promotion": {
"enabled": true,
"priority": 3,
"responder": true,
"script": "{_ Context }\r\n{SetState('eddi_context_last_subject', 'rank')}\r\n{SetState('eddi_context_last_action', 'promotion')}\r\n{SetState('eddi_context_rank_name', 'combat')}\r\n{SetState('eddi_context_rank_amount', event.rating)}\r\n\r\nYou have been recognised for your combat skills, {F(\"Honorific\")}.",
"default": true,
"name": "Combat promotion",
"description": "Triggered when your combat rank increases"
},
"Commander continued": {
"enabled": true,
"priority": 3,
Expand Down Expand Up @@ -344,6 +335,15 @@
"name": "Commander progress",
"description": "Triggered when your progress is reported"
},
"Commander promotion": {
"enabled": true,
"priority": 3,
"responder": true,
"script": "{_ Context }\r\n{SetState('eddi_context_last_subject', 'rank')}\r\n{SetState('eddi_context_last_action', 'promotion')}\r\n{SetState('eddi_context_rank_name', lower(event.rank_type))}\r\n{SetState('eddi_context_rank_amount', event.rating)}\r\n\r\n{if event.rank_type = \"Combat\":\r\n You have been recognised for your valor as a combat pilot, {F(\"Honorific\")}.\r\n|elif event.rank_type = \"CQC\":\r\n You have been recognised for your valor as a close quarters combat pilot, {F(\"Honorific\")}.\r\n|elif event.rank_type = \"Trade\":\r\n You have been recognised for your trading acumen, {F(\"Honorific\")}.\r\n|elif event.rank_type = \"Exploration\":\r\n You have been recognised for your work as an explorer, {F(\"Honorific\")}.\r\n|elif event.rank_type = \"Federation\":\r\n {set plainHonorific to when(cmdr.gender = 'Female', 'Madam', 'Sir')}\r\n Congratulations {OneOf('Commander {CommanderName()}', plainHonorific)}! You have\r\n {OneOf('achieved', 'been promoted to', 'been granted')}\r\n the rank of {event.rank}\r\n {Occasionally(2, OneOf('within the Federal Navy', 'for your service to the Federation'))}.\r\n {if event.rating = 3:\r\n You now qualify to purchase the Federal Dropship.\r\n |elif event.rating = 4:\r\n This grants you access to the {P('Sol', 'starsystem')} system.\r\n |elif event.rating = 5:\r\n You now qualify to purchase the Federal Assault Ship, and have access to the {P('Vega', 'starsystem')} and {P('Beta Hydri', 'starsystem')} systems.\r\n |elif event.rating = 6:\r\n This grants you access to the {P('PLX 695', 'starsystem')} system.\r\n |elif event.rating = 7:\r\n You now qualify to purchase the Federal Gunship, and have access to the {P('Ross 128', 'starsystem')} system.\r\n |elif event.rating = 8:\r\n This grants you access to the {P('Exbeur', 'starsystem')} system.\r\n |elif event.rating = 10:\r\n This grants you access to the {P('Hors', 'starsystem')} system.\r\n |elif event.rating = 12:\r\n You now qualify to purchase the Federal Corvette.\r\n |elif event.rating = 14:\r\n This is the highest rank available to a member of the Federal Naval Reserve.\r\n } \r\n|elif event.rank_type = \"Empire\":\r\n Congratulations {F(\"Empire honorific\")},\r\n the Imperial Navy has \r\n {OneOf(\"granted you a promotion\", \"promoted you\", \"advanced you\", \"named you\")}\r\n to the rank of {event.rank}\r\n {Occasionally(2, OneOf(\"within the Imperial Navy\", \"for your service to the Empire\"))}.\r\n {if event.rating = 1:\r\n You may now purchase the Imperial Eagle.\r\n |elif event.rating = 3:\r\n You may now purchase the Imperial Courier.\r\n |elif event.rating = 4:\r\n This grants you the honour of entering the {P(\"Achenar\", \"starsystem\")} system.\r\n |elif event.rating = 7:\r\n This allows you to purchase the Imperial Clipper, and the honour of entering the {P(\"Summerland\", \"starsystem\")} system.\r\n |elif event.rating = 10:\r\n This grants you the honour of entering the {P(\"Facece\", \"starsystem\")} system\r\n |elif event.rating = 12:\r\n You may now purchase the Imperial Cutter.\r\n |elif event.rating = 14:\r\n This is the highest {OneOf(\"rank\", \"honor\")} available to a member of the Imperial Naval Reserve.\r\n }\r\n|elif event.rank_type = \"Mercenary\":\r\n You have been recognised for your skills as a mercenary, {F(\"Honorific\")}.\r\n|elif event.rank_type = \"Exobiologist\":\r\n You have been recognised for your work as an exobiologist, {F(\"Honorific\")}.\r\n}",
"default": true,
"name": "Commander promotion",
"description": "Triggered when one of your commander ranks increases"
},
"Commander ratings": {
"enabled": true,
"priority": 3,
Expand Down Expand Up @@ -754,15 +754,6 @@
"name": "Empire honorific",
"description": "Function to provide a suitable honorific for your commander when in the empire"
},
"Empire promotion": {
"enabled": true,
"priority": 3,
"responder": true,
"script": "Congratulations {F(\"Empire honorific\")},\r\nthe Imperial Navy has \r\n{OneOf(\"granted you a promotion\", \"promoted you\", \"advanced you\", \"named you\")}\r\nto the rank of\r\n{when(cmdr.gender = \"Female\", event.femininerank, event.rank)}\r\n{Occasionally(2, OneOf(\"within the Imperial Navy\", \"for your service to the Empire\"))}.\r\n\r\n{if event.rating = 1:\r\n You may now purchase the Imperial Eagle.\r\n|elif event.rating = 3:\r\n You may now purchase the Imperial Courier.\r\n|elif event.rating = 4:\r\n This grants you the honour of entering the {P(\"Achenar\", \"starsystem\")} system.\r\n|elif event.rating = 7:\r\n This allows you to purchase the Imperial Clipper, and the honour of entering the {P(\"Summerland\", \"starsystem\")} system.\r\n|elif event.rating = 10:\r\n This grants you the honour of entering the {P(\"Facece\", \"starsystem\")} system\r\n|elif event.rating = 12:\r\n You may now purchase the Imperial Cutter.\r\n|elif event.rating = 14:\r\n This is the highest {OneOf(\"rank\", \"honor\")} available to a member of the Imperial Naval Reserve.\r\n}\r\n",
"default": true,
"name": "Empire promotion",
"description": "Triggered when your rank increases with the Empire"
},
"Engineer contributed": {
"enabled": true,
"priority": 3,
Expand All @@ -785,7 +776,7 @@
"enabled": true,
"priority": 3,
"responder": false,
"script": "{_ Fetch from Context, if a context is set _}\r\n{if state.eddi_context_system_name:\r\n {set systemname to state.eddi_context_system_name}\r\n|else:\r\n {set systemname to system.systemname}\r\n}\r\n\r\n{if !systemname || systemname = \"\":\r\n\r\n I'm not sure which system you are asking about.\r\n\r\n|else:\r\n\r\n {set reportEngineer to EngineerDetails(systemname)}\r\n {if reportEngineer:\r\n This system is home to {reportEngineer.name}, who\r\n {if len(reportEngineer.majorspecialties) > 0:\r\n specializes in {OneOf(\"improving\", \"upgrading\")}\r\n {List(reportEngineer.majorspecialties)}\r\n {if len(reportEngineer.minorspecialties) > 0:. They also}\r\n }\r\n {if len(reportEngineer.minorspecialties) > 0:\r\n {OneOf(\"improve\", \"upgrade\")} {List(reportEngineer.minorspecialties)}\r\n }.\r\n You can find {reportEngineer.name} at {P(reportEngineer.stationname, \"station\")}.\r\n }\r\n}",
"script": "{_ Fetch from Context, if a context is set _}\r\n{if state.eddi_context_system_name:\r\n {set systemname to state.eddi_context_system_name}\r\n|else:\r\n {set systemname to system.systemname}\r\n}\r\n\r\n{if !systemname || systemname = \"\":\r\n\r\n I'm not sure which system you are asking about.\r\n\r\n|else:\r\n\r\n {set reportEngineer to EngineerDetails(systemname)}\r\n {if reportEngineer:\r\n This system is home to {reportEngineer.name}\r\n {if len(reportEngineer.majorspecialties) + len(reportEngineer.minorspecialties) > 0 :, who}\r\n {if len(reportEngineer.majorspecialties) > 0:\r\n specializes in {OneOf(\"improving\", \"upgrading\")}\r\n {List(reportEngineer.majorspecialties)}\r\n {if len(reportEngineer.minorspecialties) > 0:. They also}\r\n }\r\n {if len(reportEngineer.minorspecialties) > 0:\r\n {OneOf(\"improve\", \"upgrade\")} {List(reportEngineer.minorspecialties)}\r\n }.\r\n You can find {reportEngineer.name} at {P(reportEngineer.stationname, \"station\")}.\r\n }\r\n}",
"default": true,
"name": "Engineer report",
"description": "Report on the engineer in a contextual system"
Expand Down Expand Up @@ -844,24 +835,6 @@
"name": "Exploration data sold",
"description": "Triggered when you sell exploration data"
},
"Exploration promotion": {
"enabled": true,
"priority": 3,
"responder": true,
"script": "You have been recognised for your exploration skills, {F(\"Honorific\")}.",
"default": true,
"name": "Exploration promotion",
"description": "Triggered when your exploration rank increases"
},
"Federation promotion": {
"enabled": true,
"priority": 3,
"responder": true,
"script": "{set plainHonorific to when(cmdr.gender = 'Female', 'Madam', 'Sir')}\r\n\r\nCongratulations {OneOf('Commander {CommanderName()}', plainHonorific)}! You have\r\n{OneOf('achieved', 'been promoted to', 'been granted')}\r\nthe rank of {event.rank}\r\n{Occasionally(2, OneOf('within the Federal Navy', 'for your service to the Federation'))}.\r\n\r\n{if event.rating = 3:\r\n You now qualify to purchase the Federal Dropship.\r\n|elif event.rating = 4:\r\n This grants you access to the {P('Sol', 'starsystem')} system.\r\n|elif event.rating = 5:\r\n You now qualify to purchase the Federal Assault Ship, and have access to the {P('Vega', 'starsystem')} and {P('Beta Hydri', 'starsystem')} systems.\r\n|elif event.rating = 6:\r\n This grants you access to the {P('PLX 695', 'starsystem')} system.\r\n|elif event.rating = 7:\r\n You now qualify to purchase the Federal Gunship, and have access to the {P('Ross 128', 'starsystem')} system.\r\n|elif event.rating = 8:\r\n This grants you access to the {P('Exbeur', 'starsystem')} system.\r\n|elif event.rating = 10:\r\n This grants you access to the {P('Hors', 'starsystem')} system.\r\n|elif event.rating = 12:\r\n You now qualify to purchase the Federal Corvette.\r\n|elif event.rating = 14:\r\n This is the highest rank available to a member of the Federal Naval Reserve.\r\n}\r\n",
"default": true,
"name": "Federation promotion",
"description": "Triggered when your rank increases with the Federation"
},
"Fighter docked": {
"enabled": true,
"priority": 3,
Expand Down Expand Up @@ -2185,6 +2158,15 @@
"name": "Statistics",
"description": "Statistics provided at the beginning of a game session"
},
"Suit purchased": {
"enabled": true,
"priority": 3,
"responder": true,
"script": null,
"default": true,
"name": "Suit purchased",
"description": "Triggered when you buy a space suit"
},
"Surface signals detected": {
"enabled": true,
"priority": 3,
Expand Down Expand Up @@ -2293,15 +2275,6 @@
"name": "Trade data purchased",
"description": "Triggered when you purchase trade data"
},
"Trade promotion": {
"enabled": true,
"priority": 3,
"responder": true,
"script": "You have been recognised for your trading ability, {F(\"Honorific\")}.",
"default": true,
"name": "Trade promotion",
"description": "Triggered when your trade rank increases"
},
"Trade voucher redeemed": {
"enabled": true,
"priority": 3,
Expand Down
Loading

0 comments on commit 7a72130

Please sign in to comment.