Aller au contenu

Photo

Item spell levels


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

#1
meaglyn

meaglyn
  • Members
  • 812 messages

Hi folks,  I'm confused on this one. In a spell script how does the level from the item property get used?

For example there's IP_CONST_CASTSPELL_CONFUSION_5 and _10.   The confusion script nw_s0_confusion uses  

int nDuration = GetCasterLevel(OBJECT_SELF);

But the lexicon says that only works the get the casting level of PCs and creatures. Presumably the duration of confusion from an item reflects the level of item property. Does the engine set the  item using creature's level temporarily under the covers or am I missing something?

 

Thanks,

meaglyn



#2
Shadooow

Shadooow
  • Members
  • 4 471 messages

Hi folks,  I'm confused on this one. In a spell script how does the level from the item property get used?

For example there's IP_CONST_CASTSPELL_CONFUSION_5 and _10.   The confusion script nw_s0_confusion uses  

int nDuration = GetCasterLevel(OBJECT_SELF);

But the lexicon says that only works the get the casting level of PCs and creatures.

Correct. Yet when the item is cast from an item, it returns the level of the itemproperty


  • henesua et WhiteTiger aiment ceci

#3
meaglyn

meaglyn
  • Members
  • 812 messages

Thanks for verifying that. I figured it had to be doing that or something was really borked :)