logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
AddKnownSpell questions

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development
View previous topic :: View next topic  
Author Message
max196



Joined: 26 Jun 2008
Posts: 30

PostPosted: Sat Dec 13, 2008 16:21    Post subject: AddKnownSpell questions Reply with quote

example:

I add a new spell at a sorc lvl 1

AddKnownSpell (oPC, CLASS_TYPE_SORCERER, 9, SPELL_TIME_STOP);

it appears in the book
I cant cast because I dont have slot

If I equip an item with extra spell slot for lvl 9 and the rest, I can cast the spell without problems.

If I use SetRemainingSpellSlots (oPC, CLASS_TYPE_SORCERER, 9, 3);

it doesn't work.

SetRemainingSpellSlots has more limitations than AddKnownSpell or should I use a different way to give a PC extra spell slot?
Back to top
View user's profile Send private message
acaos



Joined: 08 May 2007
Posts: 153

PostPosted: Sat Dec 13, 2008 23:09    Post subject: Reply with quote

SetRemainingSpellSlots can't give them more spell slots available than GetMaximumSpellSlots would return.

Acaos
Back to top
View user's profile Send private message
Nob



Joined: 16 Apr 2005
Posts: 21

PostPosted: Tue Feb 10, 2009 1:26    Post subject: Reply with quote

On the same function:
Does the spell level variable actually do anything? So far in my testing it doesn't seem to influence what level in the spellbook that known spell is placed under.

Is there a way to make this work like cleric domain spells where we can add known spells not normally part of that caster's class spells list or at a different level than usual?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group