SetPCLike(object, object)

Causes a creature to "like" a PC.

void SetPCLike(
    object oPlayer,
    object oTarget
);

Parameters

oPlayer

Player to like.

oTarget

Target to alter the feelings of.


Description

Sets oPlayer and oTarget to like each other.

"Like" is a neutral, non-hostile stance towards the oTarget and vice-versa.



Remarks

This obviously will not work if the PC's are in the same party, as they already like each other.


Version

1.29

Example

// The PC who entered the trigger is set to like all the PC's in the module
void main()
{
    // Get entering PC
    object oEnterer = GetEnteringObject();

    // make sure they are not a DM
    if(GetIsPC(oEnterer) && !GetIsDM(oEnterer))
    {
        // Loop all PC's in the module and set this PC to like them
        object oPC = GetFirstPC();
        while(GetIsObjectValid(oPC))
        {
            // Set to like
            SetPCLike(oEnterer, oPC);

            // Get next PC
            oPC = GetNextPC();
        }
    }
}

See Also

functions: SetPCDislike
categories: Reputation/Faction Functions


 author: Charles Feduke, editor: Jasperre, additional contributor(s): Harald Schuster