PDA

View Full Version : Quick Scripting Questions


Marius Fett
12-30-2007, 02:13 PM
First of all in K1 if I wanted to give my PC some xp would it work like this:


void main()
{
GiveXPToCreature(GetFirstPC(), 100);
}


And secondly will this give the PC alignment points:


void main()
{
AdjustAlignment(GetFirstPC(), ALIGNMENT_DARK_SIDE, 100);
}

Thanks

Ferc Kast
12-30-2007, 03:15 PM
The first script looks perfectly good. The second script I'm not entirely sure about.

Marius Fett
12-30-2007, 05:01 PM
Ok thanks :)

Silveredge9
12-30-2007, 05:35 PM
You can use scripts already in the game to give your character alignment points.

k_act_lighthigh
k_act_lightmed
k_act_lightsml

k_act_ldarkhigh
k_act_darkmed
k_act_darksml

Marius Fett
12-30-2007, 06:09 PM
I needed to make the PC fully LS/DS so I made my own :)