Adds Ami/X style "rumors" to your system.
You can keep up to date with changes if you clone this project into a
subdirectory of your scriptpath
:
$ cd /path/to/scripts
$ git clone https://github.com/x84-extras/rumors
The rumors script is now being exposed as its own Python module.
When you use gosub
, reference it like this:
gosub('rumors/rumors')
If your scriptpath
is already a git repo unto itself, then you can make it
very easy to stay up to date with various x/84 mods if you add them as
git submodules:
$ cd /path/to/scripts
$ git submodule add https://github.com/x84-extras/rumors rumors
It clones the repo just like git clone
would do. However, it's been flagged
as a submodule, and so the batch commands that act on submodules can now
be used to do things like update all of your submodules at once:
$ cd /path/to/scripts
$ git submodule update --init --remote --recursive
You don't have to use git to use this script. Simply download the raw files
from the github website. Copy rumors.py
into your scriptpath
and copy
art/rumors.ans
into your art
folder.
To launch the rumors menu, use gosub
:
gosub('rumors')
To pull a rumor at random for display in your menu:
from rumors import get_rumor
rumor = get_rumor()
This method will work if you're using this script as a git project or not.
There are a number of options you can use to customize the rumors script to
your system. Use the following options in the [rumors]
section of your
default.ini
file:
default_rumor
- The rumor to use when the database is emptyart_file
- The path to the ANSI banner for the rumors menushow_menu_entries
- Whether or not menu entries should be sent to outputmenu_highlight_color
- Highlight color for the menu entriesmenu_lowlight_color
- Lowlight color for the menu entriesmenu_command_text
- Text for the command promptmenu_command_color
- Color for the command prompt textmenu_prompt_color
- Color for the command prompt editorlist_border_color
- Border color for the rumors list lightbarlist_highlight_color
- Highlight color for the rumors list lightbaradd_prompt_color
- Color for the 'add rumor' editordelete_prompt_color
- Color for the 'delete a rumor' editor