This might be a dumb question, proving my incredible n00bness in coding using NWNscript. But, what exactly does this command do and when can you use it?? I see it all the time in scripts but never know what its used for.
For example, its used in this script to define the oSourceFactionMember to adjust the reputation of an attacking creature by -35:
Code: Select all
// this function will lower by 35 points how the attackee's
// faction will view the attacker.
main()
{
object oAttacker = GetLastAttacker();
if(GetIsObjectValid(oAttacker))
{
AdjustReputation(oAttacker, OBJECT_SELF, -35);
}
}
In order for OBJECT_SELF to work, does it have to be assigned to an object itself somehow, mabye on some event in the object?
"Many make a trade of delusions and false miracles, deceiving the stupid multitude." -Leonardo Da Vinci