Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Syndrome to cause periodic cumulative attribute increases  (Read 986 times)

Iapetus

  • Bay Watcher
    • View Profile
Syndrome to cause periodic cumulative attribute increases
« on: February 08, 2015, 12:33:17 pm »

I want to create a syndrome that causes a periodic cumulative increase in physical attributes.

Is this possible?

I'm new to creating syndromes, but I presume this code will cause a 1% attribute increase on the first of the month:

      
Code: [Select]
[CE_PHYS_ATT_CHANGE:STRENGTH:101:0:TOUGHNESS:101:0:ENDUCANCE:101:0:RECUPERATION:101:0:DISEASE_RESISTANCE:101:0:START:0]
[CE:PERIODIC:MOON_PHASE:1:1]

But will this change be permanent (and cumulative), or will it only apply on one day a month?
Logged
Engraved on the floor is a well-designed image of a kobold and a carp.  The kobold is making a plaintive gesture.  The carp is laughing.

IndigoFenix

  • Bay Watcher
  • All things die, but nothing dies forever.
    • View Profile
    • Boundworlds: A Browser-Based Multiverse Creation and Exploration Game
Re: Syndrome to cause periodic cumulative attribute increases
« Reply #1 on: February 08, 2015, 03:27:42 pm »

This will not be cumulative.

It is possible to do this, at least in fortress mode.  Basically, you use the START and END values for each part of the syndrome to determine when the effects will happen, and make a new line for each cumulative increase.

33600 ticks is one month, so if you wanted to increase 1% each month, you'd do something like this:

Code: [Select]
[CE_PHYS_ATT_CHANGE:STRENGTH:101:0:TOUGHNESS:101:0:ENDUCANCE:101:0:RECUPERATION:101:0:DISEASE_RESISTANCE:101:0:START:33600]
[CE_PHYS_ATT_CHANGE:STRENGTH:101:0:TOUGHNESS:101:0:ENDUCANCE:101:0:RECUPERATION:101:0:DISEASE_RESISTANCE:101:0:START:67200]
[CE_PHYS_ATT_CHANGE:STRENGTH:101:0:TOUGHNESS:101:0:ENDUCANCE:101:0:RECUPERATION:101:0:DISEASE_RESISTANCE:101:0:START:100800]
[CE_PHYS_ATT_CHANGE:STRENGTH:101:0:TOUGHNESS:101:0:ENDUCANCE:101:0:RECUPERATION:101:0:DISEASE_RESISTANCE:101:0:START:134400]

And so on.

Each of these lines will be evaluated separately, so the increase for each will be cumulative.  Since there is no END value, the increase will never end.  But you need to add a new line for every change.

Note that this will only work in fort mode.  In adventure mode, syndromes jump to their 'final' state as soon as you enter fast-travel mode, so you'd get all the power boosts at once the moment you fast-traveled.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Syndrome to cause periodic cumulative attribute increases
« Reply #2 on: February 09, 2015, 04:18:18 am »

First, ENDURANCE.

Second, if you don't have end values there, it won't be cumulative, I'm pretty sure. Last I checked, they don't stack.