Aller au contenu

Photo

Unique Power Limitation?


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
Buddywarrior

Buddywarrior
  • Members
  • 256 messages
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?  

#2
SHOVA

SHOVA
  • Members
  • 522 messages
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.


#3
420

420
  • Members
  • 190 messages
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 .