Author Topic: Cast Spell item property  (Read 312 times)

Legacy_WhenTheNightComes

  • Jr. Member
  • **
  • Posts: 53
  • Karma: +0/-0
Cast Spell item property
« on: February 21, 2013, 11:33:32 pm »


               Is there any way I can make it, so that when using a cast spell property from armor, weapons, and shields that it won't take the item away after the one cast?
               
               

               
            

Legacy_Fester Pot

  • Hero Member
  • *****
  • Posts: 1698
  • Karma: +0/-0
Cast Spell item property
« Reply #1 on: February 22, 2013, 12:00:10 am »


               There sure is!

Cast Spell -> Unique Power [EDIT PROPERTY] -> Unlimited Uses/Day.

FP!
               
               

               
            

Legacy_FunkySwerve

  • Hero Member
  • *****
  • Posts: 2325
  • Karma: +0/-0
Cast Spell item property
« Reply #2 on: February 22, 2013, 12:49:59 am »


               And, if you want to limit the uses per day and still do this, you can just set the item to use 2 charges per use, and give it 3 charges - this allows you to do more than 5/day, if you code recharge on rest. If you're interested, I can post the code we use to do that.

Funky
               
               

               
            

Legacy_WhenTheNightComes

  • Jr. Member
  • **
  • Posts: 53
  • Karma: +0/-0
Cast Spell item property
« Reply #3 on: February 22, 2013, 12:57:44 am »


               I should've been more specific! I meant when you have the armor/weapon/whatever and use the spell (I intend for these to be only one cast), that the item will not poof.
               
               

               
            

Legacy_AndarianTD

  • Hero Member
  • *****
  • Posts: 725
  • Karma: +0/-0
Cast Spell item property
« Reply #4 on: February 22, 2013, 01:04:01 am »


               

WhenTheNightComes wrote...

I should've been more specific! I meant when you have the armor/weapon/whatever and use the spell (I intend for these to be only one cast), that the item will not poof.


Funky's answer is the easiest way to do it. Make the power use 2 charges, and give the item 3. It'll be able to be used once, after which charges will decrease from 3 to 1. Then it won't be able to be used anymore, since a second use would require more charges than it has left. Because it has one charge left, it won't be destroyed.
               
               

               
            

Legacy_WhenTheNightComes

  • Jr. Member
  • **
  • Posts: 53
  • Karma: +0/-0
Cast Spell item property
« Reply #5 on: February 22, 2013, 01:32:59 am »


               Seems to not work, even when I set the charged to three, and the spell to 2 charges/use. The item will still poof.