LoT_PRC8/_module/nss/pgs_con_new.nss
Jaysyn904 ec287507a1 Initial upload
Initial upload.
2023-09-25 21:32:17 -04:00

28 lines
829 B
Plaintext

//::///////////////////////////////////////////////
//:: Name: pgs_con_new
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
Check if the option to create a new guild is
available to the player.
*/
//:://////////////////////////////////////////////
//:: Created By: Samius Maximus
//:: Created On:
//:://////////////////////////////////////////////
#include "inc_gsystem_cnfg"
int StartingConditional()
{
object oPlayer = GetPCSpeaker();
//--------------------------------------------
//Check if guild creation restriction in effect.
//--------------------------------------------
if (PGS_RESTRICT_GUILD_CREATION)
return GetLocalInt (oPlayer, "Guild_Creation_Access");
else
return (GetLocalInt (oPlayer, "Player_Guild_Number") == 0);
}