STONKS-9800

Stock Market Simulator

Home Modding Devlog Steam Discord Developer

Modding STONKS-9800 (Catspeak)

This page explains how to create and load simple mods for STONKS-9800 using Catspeak scripts (.meow files).
Basic scripting knowledge is recommended.
The game was made using GameMaker, so knowledge of this engine will also be very helpful.

1. Quick start

2. Minimal example

Smallest useful mod that gives the player 1 000 000 money every in-game day:

mod = {
  name: "Hello mod",
  description: "Smallest useful example",

  // runs once when the game starts
  start_game: fun () {
    mods_notify("Hello!", "Mod started");
  },

  // runs at the beginning of each in-game day
  new_day: fun () {
    global.money += 1_000_000; // simple daily bonus
  }
}

return mod

3. Lifecycle callbacks

These optional functions can be defined inside your mod struct:

4. Core market structure

5. Player & economy data

6. Humans & contacts

7. Helper utilities for mods

8. Practical patterns

9. Using delay_action

The game includes a system called delay_action, which lets you schedule actions to run after a number of in-game days.

To use your own mod functions with this system, you must register them first:

// Register function for delay_action
mod_register_func("my_mod.give_money", give_money)

Example function in your .meow file (note: do NOT use let):

give_money = fun (amount) {
  global.money += amount
}

Then you can schedule it:

delay_action(3, "my_mod.give_money", 500000)

10. Portraits

You can extend the portrait system with new parts or unique sprites.

With these tools you can create story events, custom companies, traits, portraits and more. Check example mods in the game files for additional reference.

Copyright © 1982 TERNOX Corporation

Support