generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit
This commit is contained in:
31
_module/nss/good_rollplay.nss
Normal file
31
_module/nss/good_rollplay.nss
Normal file
@@ -0,0 +1,31 @@
|
||||
/* Script generated by
|
||||
Lilac Soul's NWN Script Generator, v. 1.6
|
||||
|
||||
For download info, please visit:
|
||||
http://www.lilacsoul.revility.com */
|
||||
|
||||
//Put this on action taken in the conversation editor
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
if (GetAlignmentGoodEvil(oPC) == ALIGNMENT_GOOD)
|
||||
{
|
||||
FloatingTextStringOnCreature("You have been awarded for good rollplay", oPC);
|
||||
CreateItemOnObject("faithdrink", oPC);
|
||||
return;
|
||||
}
|
||||
else if (GetAlignmentGoodEvil(oPC) == ALIGNMENT_EVIL)
|
||||
{
|
||||
FloatingTextStringOnCreature("You have been penalised for poor rollplay", oPC);
|
||||
AdjustAlignment(oPC, ALIGNMENT_GOOD, 10);
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
FloatingTextStringOnCreature("Alignment shifted towards good", oPC);
|
||||
AdjustAlignment(oPC, ALIGNMENT_GOOD, 10);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user