Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: reaction-trigger and transform-unit help  (Read 998 times)

melmarkian

  • Bay Watcher
    • View Profile
reaction-trigger and transform-unit help
« on: March 06, 2016, 11:49:08 am »

Hi,
I tried to replace my stone vapor->syndrome transformations with a dfhack version that uses reaction-trigger and transform-unit. Here it is:

The Reaction
Spoiler (click to show/hide)

The line in the onLoad.init file in the DF root
Spoiler (click to show/hide)

Nothing happens after a dwarf does the reaction in the workshop. The caste DWARF:MALE_WEAVER exists but I´m not really sure the syntax of the command arguments is right. Does the \WORKER_ID equal the dwarf doing the reaction? Is there a errorlog?

EDIT!!:
I´m really sorry. I figured it out. The errorlog inside the dfhack window told me the unit-field wasn´t a number. The argument \WORKER_ID doesn´t work it needs to be \\WORKER_ID. A simple error but it took me a long time to see it. This works:

Spoiler (click to show/hide)
« Last Edit: March 06, 2016, 12:00:07 pm by melmarkian »
Logged