Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Syndrome problem  (Read 965 times)

Murmur

  • Bay Watcher
    • View Profile
Syndrome problem
« on: August 24, 2012, 05:02:03 pm »

I'm running into a problem with a syndrome that I can't figure out. New to DF modding, and syndromes are confusing me. I'm trying to make an interaction that increases the strengh/speed/size of the creature for a limited time, with the tradeoff that it will cause bleeding and reduced strengh and speed after. The only thing I cannot get working is the bleeding. Here is my code:

Code: [Select]
[SYNDROME]
[CE_SPEED_CHANGE:SPEED_PERC:110:START:0:END:1]
[CE_PHYS_ATT_CHANGE:STRENGTH:200:0:START:0:END:1]
[CE_BLEEDING:SEV:100:PROB:100:BP:BY_CATEGORY:ALL:SKIN:RESISTABLE:START:0:PEAK:1:END:2]
[CE_BODY_APPEARANCE_MODIFIER:APPEARANCE_MODIFIER:HEIGHT:1000:START:0:END:1]
[CE_BODY_APPEARANCE_MODIFIER:APPEARANCE_MODIFIER:BROADNESS:1000:START:0:END:1]
[CE_BODY_APPEARANCE_MODIFIER:APPEARANCE_MODIFIER:LENGTH:1000:START:0:END:1]
[CE_SPEED_CHANGE:SPEED_PERC:25:START:1:END:2]
[CE_PHYS_ATT_CHANGE:STRENGTH:25:0:START:1:END:2]

Like I said, everything works except for the bleeding, and I'm probably doing something absurdly wrong, but I can't figure it out. Can anyone show me how stupid I am? Thanks.
Logged

i2amroy

  • Bay Watcher
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: Syndrome problem
« Reply #1 on: August 24, 2012, 05:17:52 pm »

It's probably ending before it takes effect. Your syndromes are set to end in like one tick, so that's like a tenth of the average dwarf's step.
Logged
Quote from: PTTG
It would be brutally difficult and probably won't work. In other words, it's absolutely dwarven!
Cataclysm: Dark Days Ahead - A fun zombie survival rougelike that I'm dev-ing for.

Murmur

  • Bay Watcher
    • View Profile
Re: Syndrome problem
« Reply #2 on: August 24, 2012, 05:26:50 pm »

Oh really? Hmm that's odd because the other effects last for about 10 steps or so? What's going on there, I didn't think that was right...
Logged

celem

  • Bay Watcher
    • View Profile
Re: Syndrome problem
« Reply #3 on: August 24, 2012, 05:31:26 pm »

Doesnt sound right that the other effects linger that long tbh.  From what I see the guy gets really big, strong and fast for the briefest fraction of a second, then bleeds and shrinks and slows, also for a fraction of a second.

Honestly I would have expected this to 'appear' not to work at all, its all too fast.
Logged
Marksdwarf Pillboxes
I wish I had something cool to say about this.  Because it's really cool.

Murmur

  • Bay Watcher
    • View Profile
Re: Syndrome problem
« Reply #4 on: August 24, 2012, 05:33:59 pm »

Okay this is strange then... what would you suggest for a duration that would allow one or two attacks?
Logged

i2amroy

  • Bay Watcher
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: Syndrome problem
« Reply #5 on: August 24, 2012, 05:38:06 pm »

The average dwarf gets to move once every 10 ticks in fortress mode, so I'd suggest about 10-30 duration.
Logged
Quote from: PTTG
It would be brutally difficult and probably won't work. In other words, it's absolutely dwarven!
Cataclysm: Dark Days Ahead - A fun zombie survival rougelike that I'm dev-ing for.

Murmur

  • Bay Watcher
    • View Profile
Re: Syndrome problem
« Reply #6 on: August 24, 2012, 05:56:45 pm »

Okay thank you all for you help! I think I have it working now.
Logged

Cheesoburgor

  • Bay Watcher
  • [NO_SLEEP]
    • View Profile
Re: Syndrome problem
« Reply #7 on: August 25, 2012, 02:02:51 pm »

id say that you increase every syndrome time to atleast 100 also your bleeding will probably kill most of living things so you should decrease severity to something like 5
Logged
Im alive again after a 4 year break!