• Tags:

    Item
  • Name:

    aMinorRingOfInvisibility

  • Displayed name:

    Minor ring of invisibility

  • Description:

  • Cast description:

    | AP: vAP.string | CD: vCD.strings | | :---: | :---: | | **Flux: 0** | **Range: vRange.string** | if not character:has([[mRoI]]) then [[**You become invisible While in that state you consume 1 charge of the ring of invisibility every second.**]] else [[You put a stop to your invisibility]] end

  • Condition:

    assert(character.s{{action.item.name}}Charge.current > 0, [[You don't have enough Charge]])
  • AP cost:

    2

  • Cooldown:

    5

  • Flux cost:

    0
  • Variables:

    vRange = ListVariable([[vRange]], [[Range]], {[[selfMod]]}, {[[Self]]})
  • On used script:

    character.sFlux:changeCurrent(-vFluxCost.value)
  • On post script:

    if (success) then
        action.currentCD.value = vCD.value
    end
    
  • Type:

    2

  • Action effects:

    • Use case:

      1

    • Name:

      Minor ring of invisibility

    • Description:

    • Script:

      if (not character:has([[mRoI]])) then
          effect = character:createEffect([[mRoI]])
          effect.displayName:set([[Invisibility (Ring)]])
          effect.description:set([[Your are invisible thanks to your {{action.item.displayName.value}}. Every second you use a charge to maintain this state.]])
          effect.recurrentScript:set([=[if (character.s{{action.item.name}}Charge.current <= 0) then
          display([[{{action.item.displayName.value}}]], [[The invisibility has ended because their is no charge left.]])
          modifier:delete()
      else
          character.s{{action.item.name}}Charge:changeCurrent(-1)
      end]=])
          effect:activate()
      else
          character.mRoI:delete()
      end
    • Variables: