GetCampaignDBLocation

From NWN Lexicon


Contents

[edit] GetCampaignDBLocation(object, string)

Get a campaign location on a player in the default database for this module.

[edit] Parameters

oPC

Player this variable is attached to.

sVarname

Name of the variable to search for.


[edit] Description

Get a campaign location on a player in the default database for this module.



[edit] Remarks

This is a wrapper for GetCampaignDBName as the first parameter.


[edit] Requirements

#include " x0_i0_campaign "


[edit] Version

???

[edit] Example

// Send the calling object to their saved home location, if they have one.
#include "x0_i0_campaign"
 
void main()
{
    location lSpot = GetCampaignDBLocation(OBJECT_SELF, "HOME_LOC");
 
    // Validate that we have a good location to move to.
    if(OBJECT_INVALID != GetAreaFromLocation(lSpot))
    {
        // Move 'em.
        AssignCommand(OBJECT_SELF, ActionJumpToLocation(lSpot));
    }
}

[edit] See Also

functions: 

SetCampaignDBLocation



author: Baragg, editor: Mistress

Personal tools
Categories