Ice coating I

Talent Permanent

When you perform an action that uses Ice, you can use Ice Coating Points (ICP) in one of two ways, depending on whether you currently possess any ICP. If you have no Ice Coating Points, you can spend 2 SP one time to generate 1 ICP for a duration of 8 seconds. If you have one or more Ice Coating Points, you can instead spend all of them to increase the action result by 2 SP per ICP.

Upgrades 1

Technical details
  • Tags:

    No tags

  • Name:

    mIceCoatingI

  • Displayed name:

    Ice coating I

  • Description:

    When you perform an action that uses Ice, you can use Ice Coating Points (ICP) in one of two ways, depending on whether you currently possess any ICP. If you have no Ice Coating Points, you can spend 2 SP one time to generate 1 ICP for a duration of 8 seconds. If you have one or more Ice Coating Points, you can instead spend all of them to increase the action result by 2 SP per ICP.

  • Condition:

  • Cost:

    expCost(250,100)-0
  • Script:

    master.description:add("\n\nIce coating: When you perform an action that uses Ice, you can use Ice Coating Points (ICP) in one of two ways, depending on whether you currently possess any ICP.\nIf you have no Ice Coating Points, you can spend 2 SP one time to generate 1 ICP for a duration of 8 seconds.\nIf you have one or more Ice Coating Points, you can instead spend all of them to increase the action result by 2 SP per ICP.")
    sICP = character:createStat([[sICP]])
    sICP.displayName:set([[Ice coating]])
  • Duration:

    -1

  • Type:

    0

  • Recurrent script:

  • Add ons:

    • Condition:

      action:tagsContain([[iceDamage]]) or action:tagsContain([[ice]])
      
    • Description:

    • Variables:

      vMaxICP = 1
      vICPDuration = 8
      
    • Script:

    • Action effects:

      • Use case:

        vICPAmount!=0

      • Name:

        Ice coating

      • Description:

        if character.sICP.current > 0 then [[You can consume all your ICP to add {character.sICP*2} SP to this action.]] else [[You generate vICPAmount.string ICP for vICPDuration.string seconds by spending 2 SP for each.]] end

      • Script:

        if character.sICP.current > 0 then
           character.mICPTracking:delete()
        else
           character.sICP:changeCurrent(vICPAmount.value)
           mICPTracking = character:createEffect([[mICPTracking]])
           mICPTracking.displayName:set([[Ice coating points]])
           mICPTracking.duration:set({{vICPDuration}})
           mICPTracking:activate()
           mICPTracking.undoScript:add([[character.sICP:setCurrent(0)]])
        end
        
      • Variables:

        if character.sICP.current > 0 then
        vICPAmount = ToggleVariable([[vICPAmount]],[[ICP]])
        else
        vICPAmount = NumberVariable([[vICPAmount]],[[ICP]],[[0]],[[vMaxICP]])
        end
        
  • Upgrades:

    • Tags:

      No tags

    • Name:

      mIceCoatingII

    • Displayed name:

      Ice coating II

    • Description:

      You can now spend up to 4 SP to generate 2 ICP. Moreover, the Ice coating points last for an extra 2 seconds.

    • Condition:

    • Cost:

      expCost(750,400)-125
    • Script:

      master.description:replace([[Ice coating: When you perform an action that uses Ice, you can use Ice Coating Points (ICP) in one of two ways, depending on whether you currently possess any ICP.
      If you have no Ice Coating Points, you can spend 2 SP one time to generate 1 ICP for a duration of 8 seconds.
      If you have one or more Ice Coating Points, you can instead spend all of them to increase the action result by 2 SP per ICP.]],[[Ice coating: When you perform an action that uses Ice, you can use Ice Coating Points (ICP) in one of two ways, depending on whether you currently possess any ICP.
      If you have no Ice Coating Points, you can spend 2 SP one time to generate 2 ICP for a duration of 10 seconds.
      If you have one or more Ice Coating Points, you can instead spend all of them to increase the action result by 2 SP per ICP.]])
      character.mIceCoatingI.addOns[1].variables:replace([[vMaxICP = 1]],[[vMaxICP = 2]])
      character.mIceCoatingI.addOns[1].variables:replace([[vICPDuration = 8]],[[vICPDuration = 10]])
      
    • Duration:

      -1

    • Type:

      0

    • Recurrent script:

    • Add ons: