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 
 
how to restore spell slots?

 
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 14:43    Post subject: how to restore spell slots? Reply with quote

As you know when a druid-shifter shift we lost all the memorized spell slots gained from extra spell slots items..

I'm trying to use the new nwnx funcs functions to restore the lost spells slots but im having some problems.

What is the right way to do it?

Thanks,
Max
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

You need to use GetMemorizedSpellSlot() to get the contents of the spell slots and record those, then use SetMemorizedSpellSlot() later to restore them.

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



Joined: 26 Jun 2008
Posts: 30

PostPosted: Sun Dec 14, 2008 0:52    Post subject: Reply with quote

thanks, I guessed it was the functions to use.

What is the best way to manage it?
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