Initial upload. PRC8 has been added. Module compiles, PRC's default AI & treasure scripts have been integrated. Started work on top hak for SLA / Ability / Scripting modifications.
28 lines
427 B
Plaintext
28 lines
427 B
Plaintext
#include "stx_inc_craft"
|
|
|
|
int StartingConditional()
|
|
{
|
|
object oPC = GetPCSpeaker();
|
|
|
|
|
|
object oHelmet = GetItemInSlot(INVENTORY_SLOT_HEAD, oPC);
|
|
if (!GetIsObjectValid(oHelmet) || GetPlotFlag(oHelmet))
|
|
return FALSE;
|
|
|
|
|
|
// check the PC has their dye
|
|
|
|
|
|
|
|
object oDye=GetLocalObject(oPC,"dye_con_obj");
|
|
if (GetItemPossessor(oDye)==oPC)
|
|
{
|
|
return TRUE;
|
|
}
|
|
else
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
}
|