PRC8_fork/nwn/trunk/scripts/prc_ai_con_death.nss
Jaysyn904 5914ed2ab5 Updated Release Archive
Updated Release Archive.  Fixed Mage-killer prereqs.  Removed old LETO & ConvoCC related files.  Added organized spell scroll store.  Fixed Gloura spellbook. Various TLK fixes.  Reorganized Repo.  Removed invalid user folders. Added DocGen back in.
2023-08-22 10:00:21 -04:00

27 lines
928 B
Plaintext

#include "inc_pers_array"
void main()
{
//ExecuteScript("nw_ch_ac7", OBJECT_SELF);
//dont fire the bioware one, it does odd things
//remove golem from masters list
object oPC = GetMaster(OBJECT_SELF);
int i;
string sResRef = GetResRef(OBJECT_SELF);
for(i=0;i<persistant_array_get_size(oPC, "GolemList");i++)
{
string sArrayResRef = persistant_array_get_string(oPC, "GolemList",i);
if(sArrayResRef == sResRef)
{
persistant_array_set_string(oPC, "GolemList", i, "");
int j;
for(j=i+1;j<persistant_array_get_size(oPC, "GolemList");j++)
{
persistant_array_set_string(oPC, "GolemList", i, persistant_array_get_string(oPC, "GolemList",j));
}
persistant_array_shrink(oPC, "GolemList",persistant_array_get_size(oPC, "GolemList")-1);
break; //exit for
}
}
}