Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Item Syndrome Help  (Read 1185 times)

pikachu17

  • Bay Watcher
  • PADORU PADORU
    • View Profile
Item Syndrome Help
« on: June 28, 2017, 09:31:45 am »

I want to make a item put a syndrome when it's picked up\equipped, and remove all traces of the syndrome when the item is dropped\unequipped.
I have little idea how to do this, as I know little to nothing about DFhack.
I've posted this question at least three times on the DFhack thread, but every time, either everyone ignored it, or posted something I didn't understand, and then ignored my follow-up question.
If someone fixes my problem, I will create my artifact mod.
Logged
Sigtext!
dwarf 4tress from scratch
The Pikachu revolution!
Thank you NatureGirl19999 for the avatar switcher at http://signavatar.com

A warforged bard named Gender appears and says"Hello. I am a social construct."

Atkana

  • Bay Watcher
  • [CURIOUSBEAST]
    • View Profile
Re: Item Syndrome Help
« Reply #1 on: June 29, 2017, 01:36:17 am »

Sounds like a job for DFhack's item-trigger. My best unhelpful advice is: If you want to learn how to use DFhack, you should learn how to use DFhack :P

pikachu17

  • Bay Watcher
  • PADORU PADORU
    • View Profile
Re: Item Syndrome Help
« Reply #2 on: June 29, 2017, 01:27:14 pm »

I've tried item-trigger, but it didn't remove the syndrome when speed boots were dropped. Well, it did, but the speed increase didn't get removed with the syndrome. Where can I learn to use DFhack properly?
Logged
Sigtext!
dwarf 4tress from scratch
The Pikachu revolution!
Thank you NatureGirl19999 for the avatar switcher at http://signavatar.com

A warforged bard named Gender appears and says"Hello. I am a social construct."

bloop_bleep

  • Bay Watcher
    • View Profile
Re: Item Syndrome Help
« Reply #3 on: June 29, 2017, 11:10:25 pm »

Perhaps when the boots are unequipped, remove the syndrome and then apply a second syndrome which cancels out the speed boost exactly?
Logged
Quote from: KittyTac
The closest thing Bay12 has to a flamewar is an argument over philosophy that slowly transitioned to an argument about quantum mechanics.
Quote from: thefriendlyhacker
The trick is to only make predictions semi-seriously.  That way, I don't have a 98% failure rate. I have a 98% sarcasm rate.

milo christiansen

  • Bay Watcher
  • Something generic here
    • View Profile
Re: Item Syndrome Help
« Reply #4 on: June 30, 2017, 09:20:29 am »

Rubble comes with an item syndrome script that should work. If I remember correctly it doesn't require any of the Rubble DFHack support code, so it won't need to be modified for use without Rubble.

Look in the addons in the "Libs" category.
Logged
Rubble 8 - The most powerful modding suite in existence!
After all, coke is for furnaces, not for snorting.
You're not true dwarven royalty unless you own the complete 'Signature Collection' baby-bone bedroom set from NOKEAS

pikachu17

  • Bay Watcher
  • PADORU PADORU
    • View Profile
Re: Item Syndrome Help
« Reply #5 on: June 30, 2017, 12:39:43 pm »

Rubble comes with an item syndrome script that should work. If I remember correctly it doesn't require any of the Rubble DFHack support code, so it won't need to be modified for use without Rubble.

Look in the addons in the "Libs" category.
Thanks! I will try this. Uh, could you post anything after this so it goes back to my new reply list, so I will remember to do this?
Logged
Sigtext!
dwarf 4tress from scratch
The Pikachu revolution!
Thank you NatureGirl19999 for the avatar switcher at http://signavatar.com

A warforged bard named Gender appears and says"Hello. I am a social construct."

milo christiansen

  • Bay Watcher
  • Something generic here
    • View Profile
Re: Item Syndrome Help
« Reply #6 on: June 30, 2017, 03:45:23 pm »

Sure :P
Logged
Rubble 8 - The most powerful modding suite in existence!
After all, coke is for furnaces, not for snorting.
You're not true dwarven royalty unless you own the complete 'Signature Collection' baby-bone bedroom set from NOKEAS

pikachu17

  • Bay Watcher
  • PADORU PADORU
    • View Profile
Re: Item Syndrome Help
« Reply #7 on: July 25, 2017, 10:08:35 am »

I would like to thank Milo Christiansen for the use of his awesome item_syndrome.lua, but it doesn't seem to work for my purposes.
It seems to remove the syndrome itself, but it still doesn't seem to remove the
speed-bonus/zapping-interaction (granted from the speed-boots/gauntlets of zapping respectively) from the wearer.
Is there any way to remove the use of a interaction from a unit? If so, maybe I can just use good ol' item-trigger to remove the speed-bonus/zapping-interaction through speed-slowing/interaction-removal respectively.
Logged
Sigtext!
dwarf 4tress from scratch
The Pikachu revolution!
Thank you NatureGirl19999 for the avatar switcher at http://signavatar.com

A warforged bard named Gender appears and says"Hello. I am a social construct."