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 
 
Event on XP gain?

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows technical support
View previous topic :: View next topic  
Author Message
Wallack



Joined: 30 Apr 2012
Posts: 27

PostPosted: Sat Apr 16, 2016 20:22    Post subject: Event on XP gain? Reply with quote

Hi.

żIs there a way to create a script that fires when the character gains XP?

Normally when killing monsters you gain XP and I want a script that when the character gets xp, do some checks.

I know I could do something in the ondeath script of the creatures but that would give me the killer and not anyone who got xp from kiilling it.

I basically want to level up characters from 41 to 80 and while they can get XP by killing monsters now, they won't level up, so I want to check the xp they have and the xp required for the next level so if that happens, I can fire the event to show the actual level up interface.

Is there any way to work with such event?

thanks.
Back to top
View user's profile Send private message
pethrowilo



Joined: 21 Dec 2014
Posts: 7
Location: China

PostPosted: Sun Apr 17, 2016 0:48    Post subject: Reply with quote

Just scale module xp to 0, and hook all xp modification script, make something you want on your hook.
It'll be over kill for a plugin to do something script alone can handle quite well.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows technical support 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