Initial commit

Adding all of the current content for Anphillia Unlimited.
This commit is contained in:
Jaysyn904
2024-01-04 07:49:38 -05:00
parent df18cd54c8
commit 28cdb617b3
12943 changed files with 9727121 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
void main()
{
object oPC = GetLastUsedBy();
string sSubrace = GetName(OBJECT_SELF);
// don't allow multiple selection
if (GetLocalInt(oPC, "SubraceSelected") == TRUE)
{
SendMessageToPC(oPC, "You alread selected a Subrace.");
return;
}
// check for alignment
if ((GetAlignmentGoodEvil(oPC) != ALIGNMENT_EVIL) &&
(sSubrace == "Drow" || sSubrace == "Duergar")
)
{
SendMessageToPC(oPC, "Only evil " + sSubrace + " are allowed.");
}
SetSubRace(oPC, sSubrace);
SendMessageToPC(oPC, "Your subrace is now defined as " + GetName(OBJECT_SELF) + ".");
SetLocalInt(oPC, "SubraceSelected", TRUE);
}