• Name:

    mEnergyConservationI

  • Displayed name:

    Energy conservation II

  • Description:

    When performing a successful **Life action** on a creature, this one becomes marked with a **Life mark** for the next 10 secondes. Moreover, when performing a **Life action** on a **Life marked** creature, the character may choose to consume this mark to give to another **Life action** 1 AP charge, however this action cannot apply a **Life mark**. This newly charged action see its SP cost required to activate its effects increased by 1 SP. An action can only gain a charge from this Talent once and cannot benefit from other Talents or effects that grant AP charges to actions.

  • Condition:

  • Cost:

    expCost(500,250)-0
  • Script:

  • Duration:

    -1

  • Type:

    0

  • Recurrent script:

  • Add ons:

    • Condition:

      action:tagsContain([[lifeAction]])
      
    • Description:

      @if [[vLifeAction.string]] == [[None]] then [[If the target is **Life marked**, you can give 1 AP to another Life action]] else [[As the target is **Life marked**, you give 1 AP to the vLifeAction.string action]] end; however its effects cost +vLifeMalus.string SP.

    • Variables:

      vLifeMalus = 1
      actionValues = {[[none]]}
      actionStrings = {[[None]]}
      for _, act in pairs(character.actions) do
      if act:tagsContain([[lifeAction]]) and action.name ~= act.name and not act:tagsContain([[reaction]]) then
      table.insert(actionValues, act.name)
      table.insert(actionStrings, act.displayName.value)
      end
      end
      vLifeAction = ListVariable([[vLifeAction]], [[E. conservation]], actionValues, actionStrings)
      
    • Script:

      if vLifeAction.rawValue ~= [[none]] then
         selectedAction = character.{{vLifeAction.rawValue}}
         selectedAction.currentCharge:add(1)
      end
      
    • Action effects:

      No effects

    • Condition:

      action:tagsContain([[lifeAction]])
      
    • Description:

    • Variables:

    • Script:

    • Action effects:

      • Use case:

        3

      • Name:

        Life mark

      • Description:

      • Script:

        effect = character:createEffect([[mLifeMark]])
        effect.displayName:set([[Life Mark]])
        effect.description:set([[Your are marked by a life energy.]])
        effect.duration:set(10)
        effect:activate()
      • Variables:

  • Upgrades:

    • Name:

      mEnergyConservationII

    • Displayed name:

      Energy conservation II

    • Description:

      Reduce the SP malus of the newly charged action to +1 SP.

    • Condition:

    • Cost:

      expCost(1000,333)-250
    • Script:

      master.displayName:set([[Energy conservation II]])
      master.description:replace([[2 SP]],[[1 SP]])
      master.addOns[1].variables:replace([[vLifeMalus = 2]],[[vLifeMalus = 1]])
      
    • Duration:

      -1

    • Type:

      0

    • Recurrent script:

    • Add ons:

    • Name:

      mEnergyConservationIII

    • Displayed name:

      Energy conservation III

    • Description:

      Remove the SP malus of the newly charged action.

    • Condition:

    • Cost:

      expCost(1500,375)-500
    • Script:

      master.displayName:set([[Energy conservation III]])
      master.description:replace([[This newly charged action see its SP cost required to activate its effects increased by 1 SP. ]],[[]])
      master.addOns[1].variables:replace([[vLifeMalus = 1]],[[vLifeMalus = 0]])
      
    • Duration:

      -1

    • Type:

      0

    • Recurrent script:

    • Add ons: