31 lines
500 B
Plaintext
31 lines
500 B
Plaintext
/* Script generated by
|
|
Lilac Soul's NWN Script Generator, v. 1.2
|
|
|
|
For download info, please visit:
|
|
http://www.angelfire.com/space/lilacsoul */
|
|
|
|
//Put this on action taken in the conversation editor
|
|
|
|
|
|
|
|
void main()
|
|
{
|
|
|
|
object oPC = GetPCSpeaker();
|
|
|
|
int iTax = GetHitDice(oPC);
|
|
|
|
//this line is belt & braces for testing
|
|
if (!GetGold(oPC)>=(iTax*100)) return;
|
|
|
|
AdjustAlignment(oPC, ALIGNMENT_LAWFUL, 10);
|
|
|
|
AdjustReputation(oPC, OBJECT_SELF, 10);
|
|
|
|
TakeGoldFromCreature(iTax*100, oPC, TRUE);
|
|
|
|
|
|
|
|
}
|
|
|