aliens

Author Topic: [Documentation][y-script] Ufopedia custom info  (Read 2278 times)

Offline Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3350
    • View Profile
[Documentation][y-script] Ufopedia custom info
« on: January 04, 2021, 01:45:13 am »
In recent nightly I added option for scripts to add custom info to `INFO` button from ufopedia.
For now supported is:
Code: [Select]
extended:
  scripts:
    statsForNerdsArmor:
      - offset: 1
        code: |
          # rule <- name of variable that have given rule object, every script hook use same names.
          # geoscape_game <- current game, you can check if you have research to show some info
          return;
    statsForNerdsItem:
      - offset: 1
        code: |
          #current available operations.
          stats_state.addIntRow "The Answer to the Ultimate Question of Life, The Universe, and Everything" 42;
          stats_state.addTextRow "Can run Crisis?" "STR_TRUE";
          stats_state.addTextRow "Can run CyberPunk 2077?" "STR_FALSE";
          stats_state.addTextFormatRow "Format" "test1 {0}%" 1;
          stats_state.addTextFormatRow "Format" "test2 {0}% - {1}%" 1 2;
          return;
    statsForNerdsCraft:
      - offset: 1
        code: |
          return;
    statsForNerdsUfo:
      - offset: 1
        code: |
          return;

Offline Finnik

  • Commander
  • *****
  • Posts: 508
  • Finnik#0257
    • View Profile
Re: [Documentation][y-script] Ufopedia custom info
« Reply #1 on: January 12, 2021, 04:54:03 pm »
I like the addition, I hope now I can finally  describe what flashbang does!  ;D