NWN2 Toolset

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

help with script

 
Post new topic   Reply to topic    NWN2 Toolset Forum Index -> NWN2 Scripting Help
View previous topic :: View next topic  
Author Message
marsdo



Joined: 06 Mar 2008
Posts: 2
Location: In the Underdark

PostPosted: Wed Mar 12, 2008 5:39 am    Post subject: help with script Reply with quote

HI i'm new to the forum and i have a question to ask.is there something wrong with my script.i've set it on two kobolds and are meant to give me tons of exp to level up.but they only give me 20.here is my script can someone check it.

void main()
{
object oPC = GetPCSpeaker();
SetXP(oPC,99999);
}

Please help me?
Back to top
View user's profile Send private message
Jinker



Joined: 01 Dec 2006
Posts: 24

PostPosted: Mon Apr 21, 2008 12:42 am    Post subject: Reply with quote

It's much better to edit the Challenge Rating of the creature instead of making a script, but if you want to use a script, try this:

Code:

//Put this script OnDeath
#include "nw_i0_tool"
void main()
{

object oPC = GetLastKiller();

while (GetIsObjectValid(GetMaster(oPC)))
   {
   oPC=GetMaster(oPC);
   }

if (!GetIsPC(oPC)) return;

RewardPartyXP(99999, oPC, FALSE);

}
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NWN2 Toolset Forum Index -> NWN2 Scripting Help All times are GMT
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 phpBB Group

Chronicles phpBB2 theme by Jakob Persson (http://www.eddingschronicles.com). Stone textures by Patty Herford.

Abuse - Report Abuse
Powered by forumup.com free forum, create your free forum!
Created by Raulken of Hyarbor S.r.l.
TOS & Privacy.

Page generation time: 0.023