Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Someone said.  (Read 617 times)

Urist McCoder

  • Bay Watcher
    • View Profile
Someone said.
« on: March 15, 2015, 05:56:18 pm »

Someone said that you can call a dfhack script from a reaction, how does this work, and is there a reason not to
Logged

BlackFlyme

  • Bay Watcher
  • BlackFlyme cancels Work: Interrupted by bird.
    • View Profile
Re: Someone said.
« Reply #1 on: March 15, 2015, 05:59:23 pm »

May want to ask in the DFHack thread.

I don't actually know, as I do not mod or script for DFHack, but the method of calling a script or plug-in would likely vary depending on the script/plug-in itself.

The only reason I can see to not do it would be if you are against using DFHack or if there are bugs or errors with the scripts used.
Logged

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Re: Someone said.
« Reply #2 on: March 16, 2015, 05:34:07 am »

The name of the tool you probably want is "reaction-trigger"

http://www.bay12forums.com/smf/index.php?topic=147341.msg5936504#msg5936504

Roses explains the syntax in 2nd post.