View previous topic :: View next topic |
Author |
Message |
Valgav
Joined: 28 Aug 2010 Posts: 53
|
Posted: Thu Feb 12, 2015 15:14 Post subject: Delevel event |
|
|
I know that there's method to catch levelup event but is there any method to catch when character loses level? I need that for clearing some variables I'm setting after level up to prevent extra bonuses after losing feats etc. |
|
Back to top |
|
|
ShaDoOoW
Joined: 20 Aug 2005 Posts: 584
|
Posted: Fri Feb 13, 2015 10:21 Post subject: Re: Delevel event |
|
|
Valgav wrote: | I know that there's method to catch levelup event but is there any method to catch when character loses level? I need that for clearing some variables I'm setting after level up to prevent extra bonuses after losing feats etc. |
You need to use SetXP for all XP modifications, and replace all SetXP calls by your custom function like MySetXP. In this function you can check level before and level after which allow you to execute a new script if level pre xp change was higher than level after xp change and vice versa. _________________ Community Patch / NWNX Patch / NWNX Files / NWNX Connect |
|
Back to top |
|
|
Valgav
Joined: 28 Aug 2010 Posts: 53
|
Posted: Fri Feb 13, 2015 14:05 Post subject: |
|
|
What about DM actions? I'm forced to use some custom ways to give or take xp from player? |
|
Back to top |
|
|
ShaDoOoW
Joined: 20 Aug 2005 Posts: 584
|
Posted: Fri Feb 13, 2015 14:17 Post subject: |
|
|
Valgav wrote: | What about DM actions? I'm forced to use some custom ways to give or take xp from player? |
either custom ways or use nwnx_dmactions (which im not sure if exists for windows) anyway using custom DM wand isnt so big deal and I definitely recommend it _________________ Community Patch / NWNX Patch / NWNX Files / NWNX Connect |
|
Back to top |
|
|
Valgav
Joined: 28 Aug 2010 Posts: 53
|
Posted: Fri Feb 13, 2015 14:54 Post subject: |
|
|
nwnx_dmactions exists for windows at least it used to, but since axs and his uploads disappeared I couldn't find any copy of that plugin. So I'm forced to use same crappy items |
|
Back to top |
|
|
|