Files
HeroesStone_PRC8/_module/nss/de1_swrdshldchk4.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

21 lines
878 B
Plaintext

/////////////////////////////////////
// Dragon's Edge
// by Charly Carlos
/////////////////////////////////////
// Checks if the sword card has the same color and number with the shield card.
/////////////////////////////////////
int StartingConditional()
{
int iResult;
string sSword = GetLocalString(OBJECT_SELF, "sSwordSuit");
string sShield = GetLocalString(OBJECT_SELF, "sShieldSuit");
iResult = ((GetLocalString(OBJECT_SELF, "sSwordNumber") == GetLocalString(OBJECT_SELF, "sShieldNumber")) &&
(((sSword == "Diamonds") && ((sShield == "Hearts") || (sShield == "Diamonds"))) ||
((sSword == "Hearts") && ((sShield == "Hearts") || (sShield == "Diamonds"))) ||
((sSword == "Spades") && ((sShield == "Spades") || (sShield == "Clovers"))) ||
((sSword == "Clovers") && ((sShield == "Spades") || (sShield == "Clovers")))));
return iResult;
}