detecting a players level

Post » Mon Oct 26, 2009 9:54 pm

Hey there,

is it possible to detect a players level, if so is it possible through dialogue?

For example when you talk to someone and ask about something, i want the person to give the player an item if they are above level 5


=MA=
User avatar
Love iz not
 
Posts: 3377
Joined: Sat Aug 25, 2007 8:55 pm

Post » Tue Oct 27, 2009 2:35 am

Player->GetLevel

If I remember correctly. :) Not sure if it works from dialogue, but You could call a script from dialogue (also IIRC) and put it in there.
User avatar
Tanya Parra
 
Posts: 3435
Joined: Fri Jul 28, 2006 5:15 am

Post » Mon Oct 26, 2009 4:31 pm

Hey there,

is it possible to detect a players level, if so is it possible through dialogue?

For example when you talk to someone and ask about something, i want the person to give the player an item if they are above level 5


=MA=


You could use 'getlevel' in a small script in the result box or simply use the 'Function' and 'PC level' filter in the function/variable box in the dialogue window.

Edit: Kiteflyer beat me to the 'player->getlevel' but I think that for dialogue the filters are more useful as they will prevent the whole piece of dialogue unless requirements are met.
User avatar
Setal Vara
 
Posts: 3390
Joined: Thu Nov 16, 2006 1:24 pm

Post » Mon Oct 26, 2009 2:06 pm

ahh thanks :)

for some reason i couldnt find it at all in the dialogue functions :S but now i know what iam looking at its all clear now :D


thanks guys,


=MA=
User avatar
Nomee
 
Posts: 3382
Joined: Thu May 24, 2007 5:18 pm


Return to III - Morrowind