Author Topic: Unique Power Limitation?  (Read 552 times)

Legacy_Buddywarrior

  • Hero Member
  • *****
  • Posts: 512
  • Karma: +0/-0
Unique Power Limitation?
« on: February 22, 2011, 10:18:10 pm »


               This isn't really a scripting questions, I hope here is an ok place to post this.

I'm making some potions with UniquPower, though not so unique. +1 Char for 30min. But are their any limitations to this? For example, if they log out or zone across areas, will it drop? Or will it only leave the player via death, or some kind of dispell?  
               
               

               
            

Legacy_SHOVA

  • Hero Member
  • *****
  • Posts: 893
  • Karma: +0/-0
Unique Power Limitation?
« Reply #1 on: February 22, 2011, 10:58:04 pm »


               unless you write an ability to the pcskin item, the ability will not be permanant. In the case of what you posted, without looking at your scripting, I would say most likely, when your pc who drinks the potion dies, or rests, the ability will be removed before the 30 minutes. If your running the mod through NWN server, then you can probably log out and in and still have the bonus, provided the 30 min time has not expired. Dispelling could happen depending on what you marked the ability increase as, normal, extraordinary, supernatural. You'll have ot do some testing to see if it can be dispelled. Transitioning between areas should not remove the ability bonus.

               
               

               
            

Legacy_420

  • Sr. Member
  • ****
  • Posts: 370
  • Karma: +0/-0
Unique Power Limitation?
« Reply #2 on: March 01, 2011, 07:27:19 pm »


               Making the effect Supernatural will prevent it from being removed by dispel. Making the effect permanent will prevent it from being removed when resting. Death will still end the effect however.

I use something similar to this on my server:


void main()
{
object oPC = GetItemActivator();
effect eEffect = SupernaturalEffect(EffectAbilityIncrease(ABILITY_CHARISMA, 1));

ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oPC);
DelayCommand(1800.0, RemoveEffect(oPC, eEffect));
}


-420
               
               

               


                     Modifié par 420, 01 mars 2011 - 07:27 .