Aschbourne_PRC8/_module/nss/_c_set_menu.nss

25 lines
824 B
Plaintext
Raw Permalink Normal View History

2024-06-14 10:48:20 -04:00
#include "_c_inc_message"
//><><><><><><><><><><><><><><><><><><><><><><><><>*
//:: Name: _c_set_menu
//:: Function: StartingConditional
//><><><><><><><><><><><><><><><><><><><><><><><><>*
/*
"Cough"
*/
//><><><><><><><><><><><><><><><><><><><><><><><><>*
//:: Created By: RagE aka Napalm-uk-RTW
//:: Created On: 25/9/05
//:: Copyright (c) 2002 *RTW* corp.
//><><><><><><><><><><><><><><><><><><><><><><><><>*
int StartingConditional()
{
int nHit = GetLocalInt(OBJECT_SELF,M_HIT);
int nIndex = GetDataBaseInt(_INDEX_)+1;
int nPage = GetDataBaseInt(_PAGE_)+1;
string sName = GetDataBaseString(M_NAME);
SetCustomToken(112,"<c<><63><EFBFBD>>"+sName);
SetCustomToken(111,"<c<><63><EFBFBD>>"+IntToString(nHit));
SetCustomToken(100,"<c<><63><EFBFBD>>"+IntToString(nPage)+"<c<01>> of <c<><63><EFBFBD>>"+IntToString(nIndex));
return TRUE;
}