Skip to content

Stardew Valley mod adding new event commands, mainly involving flow control.

License

Notifications You must be signed in to change notification settings

ichortower/EventCommandCodex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Event Command Codex

This Stardew Valley mod is a framework (of sorts) which adds a bunch of new event commands to the game. These are designed to give you new capabilities when writing events, particularly involving event flow and timing. If you have ever found yourself frustrated or confused by the flow of event scripts, or just by a single command that's difficult to use (*cough* viewport), then this mod may be for you.

Here are some of the things you can do with these commands:

  • Stop some actors' movements, either immediately or at the next stop, and without having to stop all of them
  • Tell an actor to go to a specific tile without having to write up the path instructions yourself, or even know what tile they are standing on
  • Control the viewport with reasonable units and queueing
  • Control the scene's ambient light over time with fading and queueing
  • Set up parallel command lists that run without blocking the event loop
  • Loop, stop, restart, and/or wait for parallel lists to finish executing
  • Execute blocks of commands conditionally with If/ElseIf/Else/EndIf
  • Set, do arithmetic on, and query your own event variables (goes well with conditional execution)
  • Cause an event to "take time" by advancing the world time when it completes (correctly processing machines and advancing NPCs along their schedules)
  • Make temporary map tile changes or apply map overrides that last only until the current event ends

If these things appeal to you, head over to the author guide for details!

How to Use

Whether you're a user or a mod author, all you have to do to use this mod is install it like any other: download it and unzip it into your Mods folder. There's no API or data assets or anything: this just uses built-in code endpoints to register new event commands (and one trigger action, and one game state query), so as long as it's present, the commands will be available.

Building

If you are attempting to build this mod from source, you will need TowerCore, my shared code repository. Clone it alongside this repository and you should have no problems.

About

Stardew Valley mod adding new event commands, mainly involving flow control.

Resources

License

Stars

Watchers

Forks

Packages

No packages published