WoR_PRC8/_module/nss/s_sethousename1a.nss
Jaysyn904 b5e28e52f4 Initial commit
Initial commit [1.18]
2025-04-03 11:49:34 -04:00

54 lines
1.3 KiB
Plaintext

#include "nw_i0_tool"
int StartingConditional()
{
string House;
int NobelInsignia = FALSE;
if(HasItem(GetPCSpeaker(), "SHA_HOUSE_INSIGNIA_1"))
{
House = "House Alushri";
NobelInsignia = TRUE;
}
else if(HasItem(GetPCSpeaker(), "SHA_HOUSE_INSIGNIA_2"))
{
House = "House Somarish";
NobelInsignia = TRUE;
}
else if(HasItem(GetPCSpeaker(), "SHA_HOUSE_INSIGNIA_3"))
{
House = "House Luentrazen";
NobelInsignia = TRUE;
}
else if(HasItem(GetPCSpeaker(), "SHA_HOUSE_INSIGNIA_4"))
{
House = "House Szithdra";
NobelInsignia = TRUE;
}
else if(HasItem(GetPCSpeaker(), "SHA_HOUSE_INSIGNIA_5"))
{
House = "House Og'elend";
NobelInsignia = TRUE;
}
else if(HasItem(GetPCSpeaker(), "SHA_HOUSE_INSIGNIA_6"))
{
House = "House Mamaluen";
NobelInsignia = TRUE;
}
else if(HasItem(GetPCSpeaker(), "SHA_HOUSE_INSIGNIA_7"))
{
House = "House Kothyrlie";
NobelInsignia = TRUE;
}
else if(HasItem(GetPCSpeaker(), "SHA_HOUSE_INSIGNIA_8"))
{
House = "House Illindith";
NobelInsignia = TRUE;
}
SetCustomToken(1758, House);
int iRandom = d100();
if(iRandom < 30)
{
return NobelInsignia;
}
return FALSE;
}