TheHordeOrcs_PRC8/_module/nss/ho_lvlup_pc.nss

23 lines
607 B
Plaintext
Raw Permalink Normal View History

#include "x0_i0_partywide"
void main()
{
//:: Declare major variables
object oPC = GetEnteringObject();
string sTag = GetTag(OBJECT_SELF);
int iParty = GetNumberPartyMembers(oPC);
int iXP = GetXP(oPC);
//:: Parties larger than 2 shouldn't need a boost.
if (iParty >= 2) return;
//:: This boost is only availible to new characters
if (iXP > 0 ) return;
//:: Make sure they can only get the boost once if they are solo.
if (GetLocalInt(oPC, sTag) >= 1) return;
//ActionStartConversation(oPC, "ho_lvlup_pc", TRUE, FALSE);
BeginConversation("ho_lvlup_pc", oPC);
}