Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: addReactionToShop - new reactions always red (question for experienced modders )  (Read 676 times)

Raidau

  • Bay Watcher
    • View Profile

The reactions that appear in workshop reaction list after adding them are always unavaliable, even if i have all required reagents (I checked that very carefully).

Code: [Select]
local e = require "plugins.eventful"

function main()

e.removeNative("KITCHEN")
e.addReactionToShop("LUA_HOOK_NB_KITCHEN_BREAD","KITCHEN")

end

Does this part of the plugin work properly? Btw, is there any way to exclude individual reactions from choice list? (Using dfhack)
« Last Edit: January 01, 2015, 02:32:51 am by Raidau »
Logged
Marital status manipulator
Custom item descriprions
Natural Balance Mod (2013-2015) development suspended...

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile

http://www.bay12forums.com/smf/index.php?board=29.0

Also, function main()? this ain't C. Are you properly calling main() after defining it?

Raidau

  • Bay Watcher
    • View Profile

http://www.bay12forums.com/smf/index.php?board=29.0

Also, function main()? this ain't C. Are you properly calling main() after defining it?

This is Lua. It works, no errors, new reaction appear in side menu, but they are always unavaliable (red). I think some flag is not added by the plugin
« Last Edit: January 01, 2015, 06:31:21 am by Raidau »
Logged
Marital status manipulator
Custom item descriprions
Natural Balance Mod (2013-2015) development suspended...