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

37 lines
1.1 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Name: pgs_build_messag
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
Build the guild-specific message list.
*/
//:://////////////////////////////////////////////
//:: Created By: Samius Maximus
//:: Created On:
//:://////////////////////////////////////////////
#include "inc_gsystem"
int StartingConditional()
{
object oPlayer = GetPCSpeaker();
int iGuild = GetLocalInt (oPlayer, "Player_Guild_Number");
int iCount = 1;
SetLocalInt (oPlayer, "Token_Position", 1);
SetLocalInt (oPlayer, "List_Built", 2); /*List being built.*/
//--------------------------------------------
//Loop through and save valid guild messages.
//--------------------------------------------
for (; iCount <= 8; iCount++)
{
if (GetModuleGuildTitle (iGuild, iCount) != "")
SetLocalInt (oPlayer, "Temp_List_Position" + IntToString (iCount),
iCount);
else
SetLocalInt (oPlayer, "Temp_List_Position" + IntToString (iCount), 0);
}
return TRUE; /*Conditional.*/
}